WO2021129537A1 - Method for controlling electronic device and electronic device - Google Patents

Method for controlling electronic device and electronic device Download PDF

Info

Publication number
WO2021129537A1
WO2021129537A1 PCT/CN2020/137676 CN2020137676W WO2021129537A1 WO 2021129537 A1 WO2021129537 A1 WO 2021129537A1 CN 2020137676 W CN2020137676 W CN 2020137676W WO 2021129537 A1 WO2021129537 A1 WO 2021129537A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
video call
input
call window
camera
Prior art date
Application number
PCT/CN2020/137676
Other languages
French (fr)
Chinese (zh)
Inventor
李家凯
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=70238893&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=WO2021129537(A1) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021129537A1 publication Critical patent/WO2021129537A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting

Definitions

  • the embodiments of the present application relate to the field of communication technologies, and in particular, to an electronic device control method and an electronic device.
  • the electronic device can display a video window floating to display images of other users in the video call, so as to realize communication between users.
  • the embodiments of the present application provide an electronic device control method and an electronic device, which can solve the problem of low efficiency of the electronic device in performing video call-related actions.
  • the first aspect of the embodiments of the present application provides an electronic device control method applied to an electronic device.
  • the electronic device control method includes: receiving a user's first input to a video call window; in response to the first input, controlling the electronic device
  • the camera or the video call window is in a target state, and the target state is a state corresponding to the first input.
  • an electronic device in a second aspect of the embodiments of the present application, includes a receiving module and a control module.
  • the receiving module is used to receive the user's first input to the video call window.
  • the control module is used for controlling the camera or the video call window of the electronic device to be in a target state in response to the first input received by the receiving module, and the target state is a state corresponding to the first input.
  • an electronic device in a third aspect of the embodiments of the present application, includes a processor, a memory, and a computer program stored on the memory and running on the processor.
  • the computer program When the computer program is executed by the processor, the computer program On the one hand, the steps of the electronic device control method.
  • a computer-readable storage medium is provided, and a computer program is stored on the computer-readable storage medium.
  • the control method of the electronic device as described in the first aspect is implemented. step.
  • the electronic device can control the camera or the video call window of the electronic device to be in the target state corresponding to the first input according to the first input of the user to the video call window. Since the user can directly input the first input to the video call window, so that the electronic device can quickly control the camera or the video call window in the target state (that is, perform related actions in the video process) without the user having to input multiple times, thus simplifying the user
  • the operation of the video process can improve the efficiency of the electronic device to perform the related actions of the video process.
  • FIG. 1 is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the application
  • FIG. 2 is one of the schematic diagrams of an electronic device control method provided by an embodiment of this application.
  • FIG. 3 is one of the schematic diagrams of an example of an interface of a mobile phone provided by an embodiment of the application
  • FIG. 4 is a second schematic diagram of an example of an interface of a mobile phone provided by an embodiment of this application.
  • FIG. 5 is the third schematic diagram of an example of an interface of a mobile phone provided by an embodiment of this application.
  • FIG. 6 is a second schematic diagram of an electronic device control method provided by an embodiment of this application.
  • FIG. 7 is a fourth schematic diagram of an example of an interface of a mobile phone provided by an embodiment of this application.
  • FIG. 8 is the third schematic diagram of an electronic device control method provided by an embodiment of this application.
  • FIG. 9 is the fifth example of a schematic diagram of an interface of a mobile phone provided by an embodiment of this application.
  • FIG. 10 is a fourth schematic diagram of an electronic device control method provided by an embodiment of this application.
  • FIG. 11 is a sixth schematic diagram of an example of an interface of a mobile phone provided by an embodiment of this application.
  • FIG. 12 is one of the schematic structural diagrams of an electronic device provided by an embodiment of this application.
  • FIG. 13 is the second structural diagram of an electronic device provided by an embodiment of this application.
  • FIG. 14 is the third structural diagram of an electronic device provided by an embodiment of this application.
  • FIG. 15 is a schematic diagram of hardware of an electronic device provided by an embodiment of the application.
  • first and second in the description and claims of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order of objects.
  • first input and the second input are used to distinguish different inputs, rather than to describe a specific order of input.
  • plural means two or more.
  • a plurality of elements refers to two elements or more than two elements.
  • words such as “exemplary” or “for example” are used as examples, illustrations, or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiments of the present application should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as “exemplary” or “for example” are used to present related concepts in a specific manner.
  • the embodiments of the present application provide an electronic device control method and electronic device.
  • the electronic device can control the camera or the video call window of the electronic device to be in a target state corresponding to the first input according to the user's first input to the video call window. Since the user can directly input the first input to the video call window, so that the electronic device can quickly control the camera or the video call window in the target state (that is, perform related actions in the video process) without the user having to input multiple times, thus simplifying the user
  • the operation of the video process can improve the efficiency of the electronic device to perform the related actions of the video process.
  • the electronic device control method and electronic device provided by the embodiments of the present application can be applied to the process of making a video call through the electronic device.
  • the electronic device in the embodiment of the present application may be an electronic device with an operating system.
  • the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
  • the following uses the Android operating system as an example to introduce the software environment to which the electronic device control method provided in the embodiments of the present application is applied.
  • FIG. 1 it is a schematic structural diagram of a possible Android operating system provided by an embodiment of this application.
  • the architecture of the Android operating system includes 4 layers, which are: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
  • the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
  • the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
  • the system runtime layer includes a library (also called a system library) and an Android operating system runtime environment.
  • the library mainly provides various resources needed by the Android operating system.
  • the Android operating system operating environment is used to provide a software environment for the Android operating system.
  • the kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level.
  • the kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
  • a developer can develop a software program that implements the electronic device control method provided by the embodiment of the application based on the system architecture of the Android operating system as shown in FIG.
  • the electronic device control method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the electronic device can implement the electronic device control method provided in the embodiments of the present application by running the software program in the Android operating system.
  • the electronic device in the embodiment of the present application may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). Assistant, PDA), etc.
  • the non-mobile electronic device may be a personal computer (PC), television (television, TV), teller machine, or self-service machine, etc., which are not specifically limited in the embodiment of the present application.
  • the user when a user makes a video call through an electronic device, when the user needs to show his environment or certain items to other users during the video call, the user can The call window performs the first input, so that the electronic device can quickly update the state of the camera of the electronic device, for example, switch the front camera to the rear camera, so as to prevent the user from switching the front and rear cameras through multiple inputs.
  • the call window performs the first input to make the electronic device update the state of the video call window, such as reducing the display size of the video call window or hiding the video call window, so as to prevent the content of the video call window from appearing in the screenshot after the screenshot of the electronic device, or Avoid blocking the video screen or picture by the video call window.
  • FIG. 2 shows a flowchart of an electronic device control method provided in an embodiment of the present application. The method can be applied to an Android operating system as shown in FIG. Electronic equipment. As shown in FIG. 2, the electronic device control method provided by the embodiment of the present application may include the following steps 201 and 202.
  • Step 201 The electronic device receives the user's first input to the video call window.
  • the user when the electronic device displays a video call window, the user can make a first input to the video call window.
  • the electronic device when the electronic device runs the target application, the electronic device may display a video call window.
  • the above-mentioned target application may be an application with a video function (for example, a video call function), for example, the target application may be a social application, a video application, or a short video application. Wait.
  • a video function for example, a video call function
  • the target application may be a social application, a video application, or a short video application. Wait.
  • the electronic device displays a video call window on any interface of the electronic device, such as the desktop of the electronic device, the interface of the target application, or the interface of other applications.
  • the electronic device may display the video call window in a floating display form.
  • the user can set permissions in the electronic device (for example, in a video-related application) in advance to trigger the electronic device to open the permission of the floating window, so as to open the gesture shortcut operation (that is, the video call window Related gesture operations) permissions.
  • the gesture shortcut operation that is, the video call window Related gesture operations
  • the user can input (for example, double-click input) into the video call window to trigger the electronic device to open the permission of the floating window.
  • the above-mentioned first input may be used to trigger the electronic device to switch between the front camera and the rear camera (for example, the front camera is in the on state or the rear camera is in the on state).
  • the above-mentioned first input may be a user's flip input to the video call window.
  • the above-mentioned first input may specifically be a pressing input and a sliding input of the user in the operable area of the video call window to trigger the electronic device to perform a flip operation on the video call window.
  • the electronic device is a mobile phone as an example for description.
  • the user can press input on the operable area of the video call window (such as the floating window 10) (such as the two black filled regions in the floating window 10 (such as the lower left corner area 11 and the lower right corner area 12)).
  • sliding input for example, the user can press the lower right corner area 12 of the floating window 10 and drag to the left direction 13, or press the lower left corner area 11 of the floating window 10 and drag the right direction 14) to make the video call window flip (with Flip effects).
  • the above-mentioned first input may be used to trigger the electronic device to turn off the camera function (for example, the front camera is in the closed state or the rear camera is in the closed state).
  • the above-mentioned first input is a sliding input of the user on the video call window.
  • the user can perform sliding input (for example, sliding input from top to bottom) on the video call window (for example, the floating window 10), so that the mobile phone can cover the video call window (with Covering special effects, as shown in the black filled area in Figure 4), until the video call window is completely covered, the phone can turn off the camera function, and update the display of the video call window with a preset display effect (such as the effect of darkening the edge line color of the window). To remind the user of the video call window as a cover state.
  • a preset display effect such as the effect of darkening the edge line color of the window.
  • the above-mentioned first input may be used to trigger the electronic device to adjust the display size of the video call window (for example, minimize the display).
  • the above-mentioned first input is a drag input of the user on the video call window.
  • the above-mentioned first input may specifically be a user's zoom input on the video call window.
  • the user can drag the video call window (for example, the floating window 10) to input (for example, drag the floating window 10 to fit the uppermost boundary line of the mobile phone screen), so that the mobile phone can be zoomed out.
  • the display size of the video call window (with a special effect that shrinks upward) until the video call window is in a minimized state (for example, it shrinks to a thick line at the top of the mobile phone screen).
  • Step 202 In response to the first input, the electronic device controls the camera or the video call window of the electronic device to be in the target state.
  • the above-mentioned target state is a state corresponding to the first input.
  • the user can update the camera of the electronic device to a different state or update the video call window to a different state through different inputs, that is, different inputs correspond to different states, that is, the input type of the first input is different , The state of the camera of the electronic device is different or the state of the video call window is different.
  • the input type of the first input may be any one of the following: flip input, sliding input, and drag input.
  • the above-mentioned first input is a user's flip input of the video call window.
  • the above-mentioned step 202 may be specifically implemented by the following step 202a.
  • Step 202a In response to the first input, the electronic device controls the camera of the electronic device to switch to the target state when the flip angle value of the video call window is greater than or equal to the preset angle value.
  • the above-mentioned target state is the front camera on state or the rear camera on state.
  • the electronic device when the front camera of the electronic device is turned on, when the flip angle value of the video call window is greater than or equal to the preset angle value, the electronic device can turn off the front camera, and Turn on the rear camera (that is, control the rear camera to be turned on) to realize the conversion between the front camera and the rear camera.
  • the electronic device when the rear camera of the electronic device is in the open state, when the flip angle value of the video call window is greater than or equal to the preset angle value, the electronic device can turn off the rear camera, and Turn on the front camera (that is, control the front camera to be turned on) to realize the conversion between the front camera and the rear camera.
  • the electronic device can restore the display state of the video call window.
  • the aforementioned preset angle value may be 90°.
  • the user can press the lower right corner of the floating window 10 to slide to the left (denoted as the front).
  • the floating window 10 continues to flip.
  • the flip angle value of the floating window 10 is When the angle is not 90°, if the first input ends (for example, the user releases the finger), the mobile phone can control the floating window 10 to return to the unturned state; if the user continues to flip input, the mobile phone can control the floating window 10 to continuously turn (For example, flip from the front to the back), and after the first input ends (for example, the user releases the finger) (at this time the floating window 10 has been flipped for a week), the mobile phone can control the camera of the electronic device to be in the target state (ie, switch the camera) ).
  • the user can flip and input the video call window, so that the electronic device can quickly realize the conversion between the front camera and the rear camera.
  • the above-mentioned first input is a sliding input of the user on the video call window.
  • the electronic device control method provided by the embodiment of the present application may further include the following step 301, And the above step 202 can be specifically implemented by the following step 202b.
  • Step 301 In response to the first input, the electronic device updates the video call window to be displayed with a preset display effect.
  • the above-mentioned preset display effect includes at least one of the following: the effect of darkening the edge line color of the window, the effect of covering the window, the effect of hiding the window, and the like.
  • Step 202b The electronic device controls the camera of the electronic device to switch to the target state according to the display effect of the video call window.
  • the above-mentioned target state is the front camera closed state or the rear camera closed state.
  • the electronic device can detect the display effect of the video call window in real time, and after detecting that the video call window is displayed with a preset display effect, the front camera or the rear camera can be turned off.
  • the electronic device when the front camera of the electronic device is in the on state, the electronic device may turn off the front camera in response to the first input (that is, control the front camera to be in the off state);
  • the electronic device can turn off the rear camera in response to the first input (that is, control the rear camera to be in the off state).
  • the user can slide the video call window so that the electronic device can quickly close the front camera or the rear camera.
  • the electronic device control method provided in the embodiment of the present application may further include the following steps 401 and 402.
  • Step 401 The electronic device receives a second input from the user.
  • the above-mentioned second input is used to trigger the electronic device to turn on the front camera or the rear camera.
  • the above-mentioned second input may be a sliding input of the user on the video call window.
  • Step 402 In response to the second input, the electronic device cancels displaying the video call window with a preset display effect, and controls the camera of the electronic device to switch to the first state.
  • the above-mentioned first state is the front camera on state or the rear camera on state.
  • the electronic device closes the front camera or the rear camera according to the first input, and can save the information of the closed camera in the electronic device, and after receiving the second input, it can restart the closed camera. webcam.
  • the electronic device can turn on the front camera again; if the electronic device turns off according to the first input
  • the camera of is a rear camera. After receiving the second input, the electronic device can turn on the rear camera again.
  • the user may perform a second input (for example, sliding input from bottom to top) to the floating window 10, so that the mobile phone can cancel the display of the floating window 10 with a preset display effect (for example, Cancel the cover of the floating window 10), and restart the front camera or the rear camera, so that the user can continue the video call.
  • a second input for example, sliding input from bottom to top
  • a preset display effect for example, Cancel the cover of the floating window 10
  • the user can make a second input to the video call window, so that the electronic device can quickly restart the front camera or the rear camera.
  • the above-mentioned first input is a drag input of the user on the video call window.
  • the above-mentioned step 202 may be specifically implemented by the following step 202c.
  • Step 202c In response to the first input, the electronic device adjusts the display size of the video call window, so that the video call window is in the target state.
  • the aforementioned target state is a preset size display state.
  • the electronic device may reduce the display size of the video call window according to the first input.
  • the above-mentioned target state may be a minimum size display state (for example, a minimized display state).
  • the video call window when the video call window is in a display state of a preset size, the video call window blocks the content currently displayed on the electronic device to the minimum, and the user can take a screenshot input or view a full-screen picture (for example, Images of other users during a video call).
  • the user can drag and input the video call window so that the electronic device can quickly adjust the display size of the video call window, thereby reducing the degree of occlusion of the content displayed on the current interface of the electronic device by the video call window.
  • the electronic device control method provided in the embodiment of the present application may further include the following step 501, step 502, and step 503 (or step 504).
  • Step 501 The electronic device receives a third input from the user.
  • the aforementioned third input is used to trigger the electronic device to restore the display size of the video call window.
  • the above-mentioned third input may be a click input or a pull input of the user on the video call window.
  • Step 502 In response to the third input, the electronic device restores the display size of the video call window.
  • the electronic device may increase the display size of the video call window to the initial display size according to the user's input.
  • Step 503 If the user's fourth input to the video call window is received within the preset time period, the electronic device displays the video call window in the target area at the display size of the restored video call window.
  • the above-mentioned target area is an area corresponding to the fourth input.
  • the user can make a fourth input to the video call window to obtain that the electronic device displays the video call window in the corresponding area with the restored display size.
  • the foregoing fourth input may be a drag input of the user on the video call window.
  • Step 504 If any input from the user is not received within the preset time period, the electronic device cancels and restores the display size of the video call window.
  • the electronic device can adjust the display size of the video call window again, so that the video call window is in the preset size display state.
  • the user can click and input the floating window 10 in the minimized state (for example, the state of shrinking to a thick line at the top of the mobile phone screen), so that the mobile phone can restore the floating window
  • the display size of 10 that is, exit the minimized state
  • the phone can respond to the fourth input
  • the area of ?? displays the floating window 10 in the restored display size.
  • An embodiment of the present application provides a method for controlling an electronic device.
  • the electronic device can control the camera or the video call window of the electronic device to be in a target state corresponding to the first input according to the first input of the user to the video call window. Since the user can directly input the first input to the video call window, the electronic device can quickly control the camera or the video call window in the target state (that is, perform the related actions of the video process) without the user having to input multiple times, thus simplifying the user , Which can improve the efficiency of the electronic device to perform the related actions of the video process.
  • the embodiments of this application provide a way to quickly interact with the floating window during a video call, and combine with specific video applications to abstract out the related functions of the video in the video application (such as video special effects, picture-in-picture, left and right split screen, etc.) , User-defined gesture operations are added. Users can quickly control video call related operations such as flipping the camera, temporarily closing the camera, or hiding the floating window through simple operations such as sliding input, dragging input, or tapping input. Convenient, it can avoid switching back and forth between the video picture of the whole screen and the video picture of the floating window, so as to reduce the cumbersome operation of the user.
  • the user can input (for example, double-click input) to the video call window to trigger the electronic device to close the floating window permission, so that the user can no longer use gestures to perform related operations on the video call window to prevent User misoperation of the video call window.
  • FIG. 12 shows a schematic diagram of a possible structure of an electronic device involved in an embodiment of the present application.
  • the electronic device 80 may include: a receiving module 81 and a control module 82.
  • the receiving module 81 is configured to receive the user's first input to the video call window.
  • the control module 82 is configured to control the camera or the video call window of the electronic device to be in a target state in response to the first input received by the receiving module 81, and the target state is a state corresponding to the first input.
  • the above-mentioned first input is a user's flip input of the video call window.
  • the above-mentioned control module 82 is specifically configured to control the camera of the electronic device to switch to a target state when the flip angle value of the video call window is greater than or equal to the preset angle value, and the target state is the front camera on state or the rear camera Open state.
  • the above-mentioned first input is a sliding input of the user on the video call window.
  • the electronic device 80 provided in the embodiment of the present application further includes a processing module 83.
  • the processing module 83 is configured to update the video call window to be displayed with a preset display effect before the control module 82 controls the camera or the video call window of the electronic device to be in the target state.
  • the aforementioned control module 82 is specifically configured to control the camera of the electronic device to switch to a target state according to the display effect of the video call window, and the target state is the front camera closed state or the rear camera closed state.
  • the above-mentioned receiving module 81 is further configured to receive the second input of the user after the control module 82 controls the camera of the electronic device to switch to the target state.
  • the above-mentioned processing module 83 is further configured to, in response to the second input received by the receiving module 81, cancel displaying the video call window with a preset display effect, and control the camera of the electronic device to switch to the first state, the first state being the front camera The on state or the rear camera is on.
  • the above-mentioned first input is a drag input of the user on the video call window.
  • the aforementioned control module 82 is specifically used to adjust the display size of the video call window, so that the video call window is in the target state, and the target state is the preset size display state.
  • the above-mentioned receiving module 81 is further configured to receive the third input of the user after the control module 82 adjusts the size of the video call window so that the video call window is in the target state.
  • the electronic device 80 provided in the embodiment of the present application further includes: a processing module 83 and a display module 84.
  • the processing module 83 is configured to restore the display size of the video call window in response to the third input received by the receiving module 81.
  • the display module 84 is configured to, if the user's fourth input to the video call window is received within the preset time, display the video call window in the target area according to the display size of the restored video call window, and the target area is the same as the first Four input the corresponding area.
  • the processing module 83 is further configured to cancel and restore the display size of the video call window if any input from the user is not received within the preset time period.
  • the electronic device provided in the embodiment of the present application can implement each process implemented by the electronic device in the foregoing method embodiment. To avoid repetition, the detailed description will not be repeated here.
  • An embodiment of the present application provides an electronic device.
  • the electronic device can control the camera or the video call window of the electronic device to be in a target state corresponding to the first input according to a user's first input to the video call window. Since the user can directly input the first input to the video call window, the electronic device can quickly control the camera or the video call window in the target state (that is, perform the related actions of the video process) without the user having to input multiple times, thus simplifying the user , Which can improve the efficiency of the electronic device to perform the related actions of the video process.
  • FIG. 15 is a schematic diagram of hardware of an electronic device that implements each embodiment of the present application.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, The processor 110, and the power supply 111 and other components.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
  • the user input unit 107 is configured to receive the first input of the user to the video call window.
  • the processor 110 is configured to control the camera or the video call window of the electronic device to be in the target state in response to the first input.
  • An embodiment of the present application provides an electronic device.
  • the electronic device can control the camera or the video call window of the electronic device to be in a target state corresponding to the first input according to a user's first input to the video call window. Since the user can directly input the first input to the video call window, the electronic device can quickly control the camera or the video call window in the target state (that is, perform the related actions of the video process) without the user having to input multiple times, thus simplifying the user , Which can improve the efficiency of the electronic device to perform the related actions of the video process.
  • the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 104 is used to receive audio or video signals.
  • the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame can be displayed on the display unit 106.
  • the image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102.
  • the microphone 1042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
  • the electronic device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 1061 and the display panel 1061 when the electronic device 100 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 106 is used to display information input by the user or information provided to the user.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072.
  • the touch panel 1071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating).
  • the touch panel 1071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed.
  • the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 107 may also include other input devices 1072.
  • other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 1071 can be overlaid on the display panel 1061.
  • the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 1061.
  • the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the electronic device, but in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 108 is an interface for connecting an external device with the electronic device 100.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 100 or can be used to connect to the electronic device 100 and the external device. Transfer data between devices.
  • the memory 109 can be used to store software programs and various data.
  • the memory 109 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 110 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
  • the electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components.
  • a power source 111 such as a battery
  • the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the electronic device 100 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present application further provides an electronic device, including a processor 110 as shown in FIG. 15, a memory 109, a computer program stored in the memory 109 and running on the processor 110, the computer
  • the program is executed by the processor 110, each process of the foregoing method embodiment is realized, and the same technical effect can be achieved. In order to avoid repetition, details are not described herein again.
  • the embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored.
  • a computer program is stored.
  • the computer program is executed by a processor, each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, I won’t repeat them here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Disclosed are a method for controlling an electronic device and the electronic device. The method comprises: receiving first input of a user for a video call window; in response to the first input, controlling a camera or the video call window of the electronic device to be in a target state, the target state being a state corresponding to the first input.

Description

电子设备控制方法及电子设备Electronic equipment control method and electronic equipment
相关申请的交叉引用Cross references to related applications
本申请主张在2019年12月24日在中国提交的中国专利申请号201911345930.X的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201911345930.X filed in China on December 24, 2019, the entire content of which is incorporated herein by reference.
技术领域Technical field
本申请实施例涉及通信技术领域,尤其涉及一种电子设备控制方法及电子设备。The embodiments of the present application relate to the field of communication technologies, and in particular, to an electronic device control method and an electronic device.
背景技术Background technique
通常,在用户通过电子设备的社交类应用程序进行视频通话时,电子设备可以悬浮显示一个视频窗口,以显示视频通话中的其他用户的图像,从而实现用户之间的交流。Generally, when a user makes a video call through a social application of an electronic device, the electronic device can display a video window floating to display images of other users in the video call, so as to realize communication between users.
然而,上述方法中,由于在视频通话过程中,当用户需要对电子设备进行其他操作(例如截屏、查看其他内容)时,用户需要先对视频通话窗口进行点击输入,以使得电子设备全屏显示视频窗口,然后用户再在该视频窗口中进行输入,以使得电子设备执行相应的动作(例如摄像头的转换),因此用户的操作比较繁琐,从而电子设备执行视频通话相关动作的效率较低。However, in the above method, because during the video call, when the user needs to perform other operations on the electronic device (such as taking screenshots, viewing other content), the user needs to first click and input the video call window to make the electronic device display the video in full screen. Then, the user inputs in the video window to make the electronic device perform corresponding actions (such as camera conversion). Therefore, the user's operation is relatively cumbersome, and the electronic device performs video call-related actions with low efficiency.
发明内容Summary of the invention
本申请实施例提供一种电子设备控制方法及电子设备,能够解决电子设备执行视频通话相关动作的效率较低的问题。The embodiments of the present application provide an electronic device control method and an electronic device, which can solve the problem of low efficiency of the electronic device in performing video call-related actions.
为了解决上述技术问题,本申请实施例采用如下技术方案:In order to solve the above technical problems, the embodiments of the present application adopt the following technical solutions:
本申请实施例的第一方面,提供一种电子设备控制方法,应用于电子设备,该电子设备控制方法包括:接收用户对视频通话窗口的第一输入;响应于第一输入,控制电子设备的摄像头或视频通话窗口处于目标状态,该目标状态为与第一输入对应的状态。The first aspect of the embodiments of the present application provides an electronic device control method applied to an electronic device. The electronic device control method includes: receiving a user's first input to a video call window; in response to the first input, controlling the electronic device The camera or the video call window is in a target state, and the target state is a state corresponding to the first input.
本申请实施例的第二方面,提供一种电子设备,该电子设备包括:接收模块和控制模 块。其中,接收模块,用于接收用户对视频通话窗口的第一输入。控制模块,用于响应于接收模块接收的第一输入,控制电子设备的摄像头或视频通话窗口处于目标状态,该目标状态为与第一输入对应的状态。In a second aspect of the embodiments of the present application, an electronic device is provided. The electronic device includes a receiving module and a control module. Among them, the receiving module is used to receive the user's first input to the video call window. The control module is used for controlling the camera or the video call window of the electronic device to be in a target state in response to the first input received by the receiving module, and the target state is a state corresponding to the first input.
本申请实施例的第三方面,提供一种电子设备,该电子设备包括处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时实现如第一方面所述的电子设备控制方法的步骤。In a third aspect of the embodiments of the present application, an electronic device is provided. The electronic device includes a processor, a memory, and a computer program stored on the memory and running on the processor. When the computer program is executed by the processor, the computer program On the one hand, the steps of the electronic device control method.
本申请实施例的第四方面,提供一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面所述的电子设备控制方法的步骤。In a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the control method of the electronic device as described in the first aspect is implemented. step.
在本申请实施例中,电子设备可以根据用户对视频通话窗口的第一输入,控制电子设备的摄像头或视频通话窗口处于与第一输入对应的目标状态。由于用户可以直接对视频通话窗口进行第一输入,以使得电子设备快速地控制摄像头或视频通话窗口处于目标状态(即执行视频过程的相关动作),而无需用户进行多次输入,因此可以简化用户的操作,从而可以提高电子设备执行视频过程的相关动作的效率。In the embodiment of the present application, the electronic device can control the camera or the video call window of the electronic device to be in the target state corresponding to the first input according to the first input of the user to the video call window. Since the user can directly input the first input to the video call window, so that the electronic device can quickly control the camera or the video call window in the target state (that is, perform related actions in the video process) without the user having to input multiple times, thus simplifying the user The operation of the video process can improve the efficiency of the electronic device to perform the related actions of the video process.
附图说明Description of the drawings
图1为本申请实施例提供的一种安卓操作系统的架构示意图;FIG. 1 is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the application;
图2为本申请实施例提供的一种电子设备控制方法的示意图之一;FIG. 2 is one of the schematic diagrams of an electronic device control method provided by an embodiment of this application;
图3为本申请实施例提供的一种手机的界面的实例示意图之一;FIG. 3 is one of the schematic diagrams of an example of an interface of a mobile phone provided by an embodiment of the application;
图4为本申请实施例提供的一种手机的界面的实例示意图之二;FIG. 4 is a second schematic diagram of an example of an interface of a mobile phone provided by an embodiment of this application;
图5为本申请实施例提供的一种手机的界面的实例示意图之三;FIG. 5 is the third schematic diagram of an example of an interface of a mobile phone provided by an embodiment of this application;
图6为本申请实施例提供的一种电子设备控制方法的示意图之二;FIG. 6 is a second schematic diagram of an electronic device control method provided by an embodiment of this application;
图7为本申请实施例提供的一种手机的界面的实例示意图之四;FIG. 7 is a fourth schematic diagram of an example of an interface of a mobile phone provided by an embodiment of this application;
图8为本申请实施例提供的一种电子设备控制方法的示意图之三;FIG. 8 is the third schematic diagram of an electronic device control method provided by an embodiment of this application;
图9为本申请实施例提供的一种手机的界面的实例示意图之五;FIG. 9 is the fifth example of a schematic diagram of an interface of a mobile phone provided by an embodiment of this application;
图10为本申请实施例提供的一种电子设备控制方法的示意图之四;10 is a fourth schematic diagram of an electronic device control method provided by an embodiment of this application;
图11为本申请实施例提供的一种手机的界面的实例示意图之六;FIG. 11 is a sixth schematic diagram of an example of an interface of a mobile phone provided by an embodiment of this application;
图12为本申请实施例提供的一种电子设备的结构示意图之一;FIG. 12 is one of the schematic structural diagrams of an electronic device provided by an embodiment of this application;
图13为本申请实施例提供的一种电子设备的结构示意图之二;FIG. 13 is the second structural diagram of an electronic device provided by an embodiment of this application;
图14为本申请实施例提供的一种电子设备的结构示意图之三;FIG. 14 is the third structural diagram of an electronic device provided by an embodiment of this application;
图15为本申请实施例提供的一种电子设备的硬件示意图。FIG. 15 is a schematic diagram of hardware of an electronic device provided by an embodiment of the application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
本申请实施例的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一输入和第二输入等是用于区别不同的输入,而不是用于描述输入的特定顺序。The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order of objects. For example, the first input and the second input are used to distinguish different inputs, rather than to describe a specific order of input.
在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。例如,多个元件是指两个元件或两个以上元件。In the description of the embodiments of the present application, unless otherwise specified, the meaning of "plurality" means two or more. For example, a plurality of elements refers to two elements or more than two elements.
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,显示面板和/或背光,可以表示:单独存在显示面板,同时存在显示面板和背光,单独存在背光这三种情况。本文中符号“/”表示关联对象是或者的关系,例如输入/输出表示输入或者输出。The term "and/or" in this article refers to an association relationship that describes associated objects, which means that there can be three relationships, for example, a display panel and/or backlight, which can mean that there is a display panel alone, and a display panel and a backlight exist at the same time. There are three cases of backlight alone. The symbol "/" in this document indicates the relationship that the associated object is or, for example, input/output indicates input or output.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations, or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as "exemplary" or "for example" are used to present related concepts in a specific manner.
本申请实施例提供一种电子设备控制方法及电子设备,电子设备可以根据用户对视频通话窗口的第一输入,控制电子设备的摄像头或视频通话窗口处于与第一输入对应的目标 状态。由于用户可以直接对视频通话窗口进行第一输入,以使得电子设备快速地控制摄像头或视频通话窗口处于目标状态(即执行视频过程的相关动作),而无需用户进行多次输入,因此可以简化用户的操作,从而可以提高电子设备执行视频过程的相关动作的效率。The embodiments of the present application provide an electronic device control method and electronic device. The electronic device can control the camera or the video call window of the electronic device to be in a target state corresponding to the first input according to the user's first input to the video call window. Since the user can directly input the first input to the video call window, so that the electronic device can quickly control the camera or the video call window in the target state (that is, perform related actions in the video process) without the user having to input multiple times, thus simplifying the user The operation of the video process can improve the efficiency of the electronic device to perform the related actions of the video process.
本申请实施例提供的电子设备控制方法及电子设备,可以应用于通过电子设备进行视频通话的过程。The electronic device control method and electronic device provided by the embodiments of the present application can be applied to the process of making a video call through the electronic device.
本申请实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The electronic device in the embodiment of the present application may be an electronic device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
下面以安卓操作系统为例,介绍一下本申请实施例提供的电子设备控制方法所应用的软件环境。The following uses the Android operating system as an example to introduce the software environment to which the electronic device control method provided in the embodiments of the present application is applied.
如图1所示,为本申请实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1, it is a schematic structural diagram of a possible Android operating system provided by an embodiment of this application. In Figure 1, the architecture of the Android operating system includes 4 layers, which are: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。Among them, the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime layer includes a library (also called a system library) and an Android operating system runtime environment. The library mainly provides various resources needed by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level. The kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
以安卓操作系统为例,本申请实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本申请实施例提供的电子设备控制方法的软件程序,从而使得该电子设备控制方法可以基于如图1所示的安卓操作系统运行。即处理器或者电子设备可以通过在安卓操作系统中运行该软件程序实现本申请实施例提供的电子设备控制方法。Taking the Android operating system as an example, in this embodiment of the application, a developer can develop a software program that implements the electronic device control method provided by the embodiment of the application based on the system architecture of the Android operating system as shown in FIG. The electronic device control method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the electronic device can implement the electronic device control method provided in the embodiments of the present application by running the software program in the Android operating system.
本申请实施例中的电子设备可以为移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The electronic device in the embodiment of the present application may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). Assistant, PDA), etc. The non-mobile electronic device may be a personal computer (PC), television (television, TV), teller machine, or self-service machine, etc., which are not specifically limited in the embodiment of the present application.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的一种电子设备控制方法及电子设备进行详细地说明。The following describes in detail an electronic device control method and electronic device provided in the embodiments of the present application through specific embodiments and application scenarios with reference to the accompanying drawings.
本申请实施例中,在一种场景中,在用户通过电子设备进行视频通话过程中,当用户需求向视频通话过程中的其他用户展示自己所处环境或某些物品时,用户可以通过对视频通话窗口进行第一输入,以使得电子设备快速地更新电子设备的摄像头的状态,例如将前置摄像头切换为后置摄像头,从而避免用户通过多次输入切换前后置摄像头。In the embodiment of the present application, in a scenario, when a user makes a video call through an electronic device, when the user needs to show his environment or certain items to other users during the video call, the user can The call window performs the first input, so that the electronic device can quickly update the state of the camera of the electronic device, for example, switch the front camera to the rear camera, so as to prevent the user from switching the front and rear cameras through multiple inputs.
本申请实施例中,在另一种场景中,在用户通过电子设备进行视频通话过程中,当用户需求对电子设备进行其他操作时,例如截屏操作、查看视频画面或图片时,可以通过对视频通话窗口进行第一输入,以使得电子设备更新视频通话窗口的状态,例如缩小视频通话窗口的显示尺寸或隐藏视频通话窗口,从而避免电子设备截屏后的截屏图片中出现视频通话窗口的内容,或者避免视频通话窗口对视频画面或图片的遮挡。In the embodiment of the present application, in another scenario, when the user needs to perform other operations on the electronic device during a video call through the electronic device, for example, when the user needs to perform other operations on the electronic device, The call window performs the first input to make the electronic device update the state of the video call window, such as reducing the display size of the video call window or hiding the video call window, so as to prevent the content of the video call window from appearing in the screenshot after the screenshot of the electronic device, or Avoid blocking the video screen or picture by the video call window.
本申请实施例提供的一种电子设备控制方法,图2示出了本申请实施例提供的一种电子设备控制方法的流程图,该方法可以应用于具有如图1所示的安卓操作系统的电子设备。如图2所示,本申请实施例提供的电子设备控制方法可以包括下述的步骤201和步骤202。An embodiment of the present application provides an electronic device control method. FIG. 2 shows a flowchart of an electronic device control method provided in an embodiment of the present application. The method can be applied to an Android operating system as shown in FIG. Electronic equipment. As shown in FIG. 2, the electronic device control method provided by the embodiment of the present application may include the following steps 201 and 202.
步骤201、电子设备接收用户对视频通话窗口的第一输入。Step 201: The electronic device receives the user's first input to the video call window.
本申请实施例中,在电子设备显示视频通话窗口的情况下,用户可以对该视频通话窗口进行第一输入。In the embodiment of the present application, when the electronic device displays a video call window, the user can make a first input to the video call window.
可选地,本申请实施例中,在电子设备运行目标应用程序的情况下,电子设备可以显示视频通话窗口。Optionally, in this embodiment of the present application, when the electronic device runs the target application, the electronic device may display a video call window.
可选地,本申请实施例中,上述目标应用程序可以为具有视频功能(例如视频通话功 能)的应用程序,例如目标应用程序可以为社交类应用程序、视频类应用程序、短视频类应用程序等。Optionally, in this embodiment of the present application, the above-mentioned target application may be an application with a video function (for example, a video call function), for example, the target application may be a social application, a video application, or a short video application. Wait.
可选地,本申请实施例中,电子设备在可以电子设备的任意界面显示视频通话窗口,例如电子设备的桌面、目标应用程序的界面或其他应用程序的界面等。Optionally, in this embodiment of the present application, the electronic device displays a video call window on any interface of the electronic device, such as the desktop of the electronic device, the interface of the target application, or the interface of other applications.
可选地,本申请实施例中,电子设备可以采用悬浮显示形式显示视频通话窗口。Optionally, in this embodiment of the present application, the electronic device may display the video call window in a floating display form.
可选地,本申请实施例中,用户可以预先在电子设备中(例如视频相关的应用程序中)进行权限设置,以触发电子设备开启悬浮窗权限,从而开启手势快捷操作(即对视频通话窗口的相关手势操作)的权限。Optionally, in this embodiment of the present application, the user can set permissions in the electronic device (for example, in a video-related application) in advance to trigger the electronic device to open the permission of the floating window, so as to open the gesture shortcut operation (that is, the video call window Related gesture operations) permissions.
可选地,本申请实施例中,用户可以对视频通话窗口进行输入(例如双击输入),以触发电子设备开启悬浮窗权限。Optionally, in this embodiment of the present application, the user can input (for example, double-click input) into the video call window to trigger the electronic device to open the permission of the floating window.
可选地,本申请实施例中,上述第一输入可以用于触发电子设备进行前置摄像头和后置摄像头的转换(例如前置摄像头处于开启状态或后置摄像头处于开启状态)。Optionally, in this embodiment of the present application, the above-mentioned first input may be used to trigger the electronic device to switch between the front camera and the rear camera (for example, the front camera is in the on state or the rear camera is in the on state).
可选地,本申请实施例中,上述第一输入可以为用户对视频通话窗口的翻转输入。Optionally, in this embodiment of the present application, the above-mentioned first input may be a user's flip input to the video call window.
可选地,本申请实施例中,上述第一输入具体可以为用户在视频通话窗口中的可操作区域的按压输入和滑动输入,以触发电子设备对视频通话窗口进行翻转操作。Optionally, in this embodiment of the present application, the above-mentioned first input may specifically be a pressing input and a sliding input of the user in the operable area of the video call window to trigger the electronic device to perform a flip operation on the video call window.
示例性的,以电子设备为手机为例进行说明。如图3所示,用户可以对视频通话窗口(例如悬浮窗10)的可操作区域(例如悬浮窗10中的两个黑色填充区域(例如左下角区域11和右下角区域12))进行按压输入和滑动输入(例如用户可按压悬浮窗10的右下角区域12向左方向13拖动,或者按压悬浮窗10的左下角区域11向右方向14拖动),以使得视频通话窗口进行翻转(具有翻转特效)。Exemplarily, the electronic device is a mobile phone as an example for description. As shown in Figure 3, the user can press input on the operable area of the video call window (such as the floating window 10) (such as the two black filled regions in the floating window 10 (such as the lower left corner area 11 and the lower right corner area 12)). And sliding input (for example, the user can press the lower right corner area 12 of the floating window 10 and drag to the left direction 13, or press the lower left corner area 11 of the floating window 10 and drag the right direction 14) to make the video call window flip (with Flip effects).
可选地,本申请实施例中,上述第一输入可以用于触发电子设备关闭摄像头功能(例如前置摄像头处于关闭状态或后置摄像头处于关闭状态)。Optionally, in the embodiment of the present application, the above-mentioned first input may be used to trigger the electronic device to turn off the camera function (for example, the front camera is in the closed state or the rear camera is in the closed state).
可选地,本申请实施例中,上述第一输入为用户对视频通话窗口的滑动输入。Optionally, in this embodiment of the present application, the above-mentioned first input is a sliding input of the user on the video call window.
示例性的,如图4所示,用户可以对视频通话窗口(例如悬浮窗10)上进行滑动输入(例如从上向下的滑动输入),以使得手机可以对视频通话窗口进行遮盖处理(具有遮盖 特效,图4中以黑色填充区域示意),直至将视频通话窗口完全遮盖后,手机可以关闭摄像头功能,并以预设显示效果(例如窗口的边缘线颜色加深效果)更新显示视频通话窗口,以向用户提示视频通话窗口为遮盖状态。Exemplarily, as shown in FIG. 4, the user can perform sliding input (for example, sliding input from top to bottom) on the video call window (for example, the floating window 10), so that the mobile phone can cover the video call window (with Covering special effects, as shown in the black filled area in Figure 4), until the video call window is completely covered, the phone can turn off the camera function, and update the display of the video call window with a preset display effect (such as the effect of darkening the edge line color of the window). To remind the user of the video call window as a cover state.
可选地,本申请实施例中,上述第一输入可以用于触发电子设备调整视频通话窗口的显示尺寸(例如最小化显示)。Optionally, in this embodiment of the present application, the above-mentioned first input may be used to trigger the electronic device to adjust the display size of the video call window (for example, minimize the display).
可选地,本申请实施例中,上述第一输入为用户对视频通话窗口的拖动输入。Optionally, in this embodiment of the present application, the above-mentioned first input is a drag input of the user on the video call window.
可选地,本申请实施例中,上述第一输入具体可以为用户对视频通话窗口的缩放输入。Optionally, in this embodiment of the present application, the above-mentioned first input may specifically be a user's zoom input on the video call window.
示例性的,如图5所示,用户可以对视频通话窗口(例如悬浮窗10)进行拖动输入(例如拖动悬浮窗10至贴合手机屏幕的最上方边界线),以使得手机可以缩小视频通话窗口的显示尺寸(具有向上收缩的特效),直至视频通话窗口处于最小化状态(例如收缩到手机屏幕最上方的一条粗线的状态)。Exemplarily, as shown in FIG. 5, the user can drag the video call window (for example, the floating window 10) to input (for example, drag the floating window 10 to fit the uppermost boundary line of the mobile phone screen), so that the mobile phone can be zoomed out. The display size of the video call window (with a special effect that shrinks upward) until the video call window is in a minimized state (for example, it shrinks to a thick line at the top of the mobile phone screen).
步骤202、电子设备响应于第一输入,控制电子设备的摄像头或视频通话窗口处于目标状态。Step 202: In response to the first input, the electronic device controls the camera or the video call window of the electronic device to be in the target state.
本申请实施例中,上述目标状态为与第一输入对应的状态。In the embodiment of the present application, the above-mentioned target state is a state corresponding to the first input.
可以理解,用户可以通过不同的输入,使得电子设备的摄像头更新为不同的状态,或者使得视频通话窗口更新为不同的状态,即不同的输入对应不同的状态,也即第一输入的输入类型不同,电子设备的摄像头所处的状态不同或者视频通话窗口所处的状态不同。It can be understood that the user can update the camera of the electronic device to a different state or update the video call window to a different state through different inputs, that is, different inputs correspond to different states, that is, the input type of the first input is different , The state of the camera of the electronic device is different or the state of the video call window is different.
可选地,本申请实施例中,上述第一输入的输入类型可以为以下任一项:翻转输入、滑动输入和拖动输入。Optionally, in this embodiment of the present application, the input type of the first input may be any one of the following: flip input, sliding input, and drag input.
可选地,本申请实施例中,上述第一输入为用户对视频通话窗口的翻转输入。结合图2,如图6所示,上述步骤202具体可以通过下述步骤202a实现。Optionally, in this embodiment of the present application, the above-mentioned first input is a user's flip input of the video call window. With reference to FIG. 2, as shown in FIG. 6, the above-mentioned step 202 may be specifically implemented by the following step 202a.
步骤202a、电子设备响应于第一输入,在视频通话窗口的翻转角度值大于或等于预设角度值的情况下,控制电子设备的摄像头切换至目标状态。 Step 202a: In response to the first input, the electronic device controls the camera of the electronic device to switch to the target state when the flip angle value of the video call window is greater than or equal to the preset angle value.
本申请实施例中,上述目标状态为前置摄像头开启状态或后置摄像头开启状态。In the embodiment of the present application, the above-mentioned target state is the front camera on state or the rear camera on state.
可选地,本申请实施例中,在电子设备的前置摄像头处于开启状态的情况下,当视频 通话窗口的翻转角度值大于或等于预设角度值时,电子设备可以关闭前置摄像头,并开启后置摄像头(即控制后置摄像头处于开启状态),以实现前置摄像头和后置摄像头的转换。Optionally, in the embodiment of the present application, when the front camera of the electronic device is turned on, when the flip angle value of the video call window is greater than or equal to the preset angle value, the electronic device can turn off the front camera, and Turn on the rear camera (that is, control the rear camera to be turned on) to realize the conversion between the front camera and the rear camera.
可选地,本申请实施例中,在电子设备的后置摄像头处于开启状态的情况下,当视频通话窗口的翻转角度值大于或等于预设角度值时,电子设备可以关闭后置摄像头,并开启前置摄像头(即控制前置摄像头处于开启状态),以实现前置摄像头和后置摄像头的转换。Optionally, in the embodiment of the present application, when the rear camera of the electronic device is in the open state, when the flip angle value of the video call window is greater than or equal to the preset angle value, the electronic device can turn off the rear camera, and Turn on the front camera (that is, control the front camera to be turned on) to realize the conversion between the front camera and the rear camera.
可选地,本申请实施例中,在第一输入结束之后,若视频通话窗口的翻转角度值小于预设角度值,电子设备可以恢复视频通话窗口的显示状态。Optionally, in this embodiment of the present application, after the first input ends, if the flip angle value of the video call window is less than the preset angle value, the electronic device can restore the display state of the video call window.
可选地,本申请实施例中,上述预设角度值可以为90°。Optionally, in this embodiment of the present application, the aforementioned preset angle value may be 90°.
又示例性的,结合图3,如图7所示,用户可以按压悬浮窗10的右下角向左方滑动(记为正面),此时悬浮窗10持续翻转,当悬浮窗10的翻转角度值未达到90°时,若第一输入结束(例如用户松开手指),则手机可以控制悬浮窗10将恢复至未翻转的状态;若用户持续进行翻转输入,则手机可以控制悬浮窗10持续翻转(例如从正面翻转到反面),并在第一输入结束(例如用户松开手指)之后(此时悬浮窗10已翻转一周),手机可以控制电子设备的摄像头处于目标状态(即进行摄像头的转换)。As another example, in conjunction with FIG. 3, as shown in FIG. 7, the user can press the lower right corner of the floating window 10 to slide to the left (denoted as the front). At this time, the floating window 10 continues to flip. When the flip angle value of the floating window 10 is When the angle is not 90°, if the first input ends (for example, the user releases the finger), the mobile phone can control the floating window 10 to return to the unturned state; if the user continues to flip input, the mobile phone can control the floating window 10 to continuously turn (For example, flip from the front to the back), and after the first input ends (for example, the user releases the finger) (at this time the floating window 10 has been flipped for a week), the mobile phone can control the camera of the electronic device to be in the target state (ie, switch the camera) ).
本申请实施例中,用户可以通过对视频通话窗口进行翻转输入,以使得电子设备可以快速地实现前置摄像头和后置摄像头的转换。In the embodiment of the present application, the user can flip and input the video call window, so that the electronic device can quickly realize the conversion between the front camera and the rear camera.
可选地,本申请实施例中,上述第一输入为用户对视频通话窗口的滑动输入。结合图2,如图8所示,在上述步骤202中的“控制电子设备的摄像头或视频通话窗口处于目标状态”,本申请实施例提供的电子设备控制方法还可以包括下述的步骤301,并且上述步骤202具体可以通过下述步骤202b实现。Optionally, in this embodiment of the present application, the above-mentioned first input is a sliding input of the user on the video call window. With reference to FIG. 2, as shown in FIG. 8, in the above step 202 of "control the camera or video call window of the electronic device in the target state", the electronic device control method provided by the embodiment of the present application may further include the following step 301, And the above step 202 can be specifically implemented by the following step 202b.
步骤301、电子设备响应于第一输入,将视频通话窗口更新为以预设显示效果显示。Step 301: In response to the first input, the electronic device updates the video call window to be displayed with a preset display effect.
可选地,本申请实施例中,上述预设显示效果包括以下至少一项:窗口的边缘线颜色加深效果、窗口被遮盖效果和窗口隐藏效果等。Optionally, in the embodiment of the present application, the above-mentioned preset display effect includes at least one of the following: the effect of darkening the edge line color of the window, the effect of covering the window, the effect of hiding the window, and the like.
步骤202b、电子设备根据视频通话窗口的显示效果,控制电子设备的摄像头切换至目标状态。 Step 202b: The electronic device controls the camera of the electronic device to switch to the target state according to the display effect of the video call window.
本申请实施例中,上述目标状态为前置摄像头关闭状态或后置摄像头关闭状态。In the embodiment of the present application, the above-mentioned target state is the front camera closed state or the rear camera closed state.
本申请实施例中,电子设备可以实时检测视频通话窗口的显示效果,并在检测到视频通话窗口为以预设显示效果显示之后,可以关闭前置摄像头或后置摄像头。In the embodiment of the present application, the electronic device can detect the display effect of the video call window in real time, and after detecting that the video call window is displayed with a preset display effect, the front camera or the rear camera can be turned off.
可选地,本申请实施例中,在电子设备的前置摄像头处于开启状态的情况下,电子设备可以响应于第一输入,关闭前置摄像头(即控制前置摄像头处于关闭状态);在电子设备的后置摄像头处于开启状态的情况下,电子设备可以响应于第一输入,关闭后置摄像头(即控制后置摄像头处于关闭状态)。Optionally, in the embodiment of the present application, when the front camera of the electronic device is in the on state, the electronic device may turn off the front camera in response to the first input (that is, control the front camera to be in the off state); When the rear camera of the device is in the on state, the electronic device can turn off the rear camera in response to the first input (that is, control the rear camera to be in the off state).
本申请实施例中,用户可以通过对视频通话窗口进行滑动输入,以使得电子设备可以快速地关闭前置摄像头或后置摄像头。In the embodiment of the present application, the user can slide the video call window so that the electronic device can quickly close the front camera or the rear camera.
可选地,本申请实施例中,在上述步骤202b之后,本申请实施例提供的电子设备控制方法还可以包括下述的步骤401和步骤402。Optionally, in the embodiment of the present application, after the above step 202b, the electronic device control method provided in the embodiment of the present application may further include the following steps 401 and 402.
步骤401、电子设备接收用户的第二输入。Step 401: The electronic device receives a second input from the user.
本申请实施例中,上述第二输入用于触发电子设备开启前置摄像头或后置摄像头。In the embodiment of the present application, the above-mentioned second input is used to trigger the electronic device to turn on the front camera or the rear camera.
可选地,本申请实施例中,上述第二输入可以为用户对视频通话窗口的滑动输入。Optionally, in this embodiment of the present application, the above-mentioned second input may be a sliding input of the user on the video call window.
步骤402、电子设备响应于第二输入,取消以预设显示效果显示视频通话窗口,并控制电子设备的摄像头切换至第一状态。Step 402: In response to the second input, the electronic device cancels displaying the video call window with a preset display effect, and controls the camera of the electronic device to switch to the first state.
本申请实施例中,上述第一状态为前置摄像头开启状态或后置摄像头开启状态。In the embodiment of the present application, the above-mentioned first state is the front camera on state or the rear camera on state.
本申请实施例中,电子设备根据第一输入,关闭前置摄像头或后置摄像头之后,可以在电子设备中保存关闭的摄像头的信息,并在接收到第二输入之后,可以重新开启已关闭的摄像头。In the embodiment of the present application, the electronic device closes the front camera or the rear camera according to the first input, and can save the information of the closed camera in the electronic device, and after receiving the second input, it can restart the closed camera. webcam.
可选地,本申请实施例中,若电子设备根据第一输入关闭的摄像头为前置摄像头,在接收到第二输入之后,电子设备可以重新开启前置摄像头;若电子设备根据第一输入关闭的摄像头为后置摄像头,在接收到第二输入之后,电子设备可以重新开启后置摄像头。Optionally, in this embodiment of the present application, if the camera that the electronic device turns off according to the first input is the front camera, after receiving the second input, the electronic device can turn on the front camera again; if the electronic device turns off according to the first input The camera of is a rear camera. After receiving the second input, the electronic device can turn on the rear camera again.
示例性的,结合图4,如图9所示,用户可以对悬浮窗10进行第二输入(例如从下向上的滑动输入),以使得手机可以取消以预设显示效果显示悬浮窗10(例如取消对悬浮窗 10的遮盖),并重新开启前置摄像头或后置摄像头,以使得用户可以继续进行视频通话。Exemplarily, in conjunction with FIG. 4, as shown in FIG. 9, the user may perform a second input (for example, sliding input from bottom to top) to the floating window 10, so that the mobile phone can cancel the display of the floating window 10 with a preset display effect (for example, Cancel the cover of the floating window 10), and restart the front camera or the rear camera, so that the user can continue the video call.
本申请实施例中,用户可以通过对视频通话窗口进行第二输入,以使得电子设备可以快速地重新开启前置摄像头或后置摄像头。In the embodiment of the present application, the user can make a second input to the video call window, so that the electronic device can quickly restart the front camera or the rear camera.
可选地,本申请实施例中,上述第一输入为用户对视频通话窗口的拖动输入。结合图2,如图10所示,上述步骤202具体可以通过下述步骤202c实现。Optionally, in this embodiment of the present application, the above-mentioned first input is a drag input of the user on the video call window. With reference to FIG. 2, as shown in FIG. 10, the above-mentioned step 202 may be specifically implemented by the following step 202c.
步骤202c、电子设备响应于第一输入,调整视频通话窗口的显示尺寸,以使得视频通话窗口处于目标状态。 Step 202c: In response to the first input, the electronic device adjusts the display size of the video call window, so that the video call window is in the target state.
本申请实施例中,上述目标状态为预设尺寸显示状态。In the embodiment of the present application, the aforementioned target state is a preset size display state.
可选地,本申请实施例中,电子设备可以根据第一输入,缩小视频通话窗口的显示尺寸。Optionally, in this embodiment of the present application, the electronic device may reduce the display size of the video call window according to the first input.
可选地,本申请实施例中,上述目标状态可以为最小尺寸显示状态(例如最小化显示状态)。Optionally, in this embodiment of the present application, the above-mentioned target state may be a minimum size display state (for example, a minimized display state).
可选地,本申请实施例中,在视频通话窗口处于预设尺寸显示状态的情况下,视频通话窗口对电子设备当前显示的内容的遮挡程度最小,用户可以进行截屏输入或查看全屏图片(例如视频通话时的其他用户的图像)。Optionally, in this embodiment of the present application, when the video call window is in a display state of a preset size, the video call window blocks the content currently displayed on the electronic device to the minimum, and the user can take a screenshot input or view a full-screen picture (for example, Images of other users during a video call).
本申请实施例中,用户可以对视频通话窗口进行拖动输入,以使得电子设备可以快速地调整视频通话窗口的显示尺寸,从而减小视频通话窗口对电子设备当前界面显示的内容的遮挡程度。In the embodiment of the present application, the user can drag and input the video call window so that the electronic device can quickly adjust the display size of the video call window, thereby reducing the degree of occlusion of the content displayed on the current interface of the electronic device by the video call window.
可选地,本申请实施例中,在上述步骤202c之后,本申请实施例提供的电子设备控制方法还可以包括下述的步骤501、步骤502和步骤503(或步骤504)。Optionally, in the embodiment of the present application, after the above step 202c, the electronic device control method provided in the embodiment of the present application may further include the following step 501, step 502, and step 503 (or step 504).
步骤501、电子设备接收用户的第三输入。Step 501: The electronic device receives a third input from the user.
本申请实施例中,上述第三输入用于触发电子设备恢复视频通话窗口的显示尺寸。In the embodiment of the present application, the aforementioned third input is used to trigger the electronic device to restore the display size of the video call window.
可选地,本申请实施例中,上述第三输入可以为用户对视频通话窗口的点击输入或拉动输入等。Optionally, in this embodiment of the present application, the above-mentioned third input may be a click input or a pull input of the user on the video call window.
步骤502、电子设备响应于第三输入,恢复视频通话窗口的显示尺寸。Step 502: In response to the third input, the electronic device restores the display size of the video call window.
可选地,本申请实施例中,电子设备可以根据用户的跌三输入,增大视频通话窗口的显示尺寸至初始显示尺寸。Optionally, in this embodiment of the present application, the electronic device may increase the display size of the video call window to the initial display size according to the user's input.
步骤503、若在预设时长内接收到用户对视频通话窗口的第四输入,则电子设备以恢复后的视频通话窗口的显示尺寸,在目标区域显示视频通话窗口。Step 503: If the user's fourth input to the video call window is received within the preset time period, the electronic device displays the video call window in the target area at the display size of the restored video call window.
本申请实施例中,上述目标区域为与第四输入对应的区域。In the embodiment of the present application, the above-mentioned target area is an area corresponding to the fourth input.
本申请实施例中,在电子设备恢复视频通话窗口的显示尺寸之后,用户可以对视频通话窗口进行第四输入,以得到电子设备在对应的区域以恢复后的显示尺寸显示视频通话窗口。In the embodiment of the present application, after the electronic device restores the display size of the video call window, the user can make a fourth input to the video call window to obtain that the electronic device displays the video call window in the corresponding area with the restored display size.
可选地,本申请实施例中,上述第四输入可以为用户对视频通话窗口的拖动输入。Optionally, in this embodiment of the present application, the foregoing fourth input may be a drag input of the user on the video call window.
步骤504、若在预设时长内未接收到用户的任意输入,则电子设备取消恢复视频通话窗口的显示尺寸。Step 504: If any input from the user is not received within the preset time period, the electronic device cancels and restores the display size of the video call window.
可以理解,若用户在预设时长内未针对视频通话窗口进行输入,则电子设备可以再次调整视频通话窗口的显示尺寸,以使得视频通话窗口处于预设尺寸显示状态。It can be understood that if the user does not input the video call window within the preset time period, the electronic device can adjust the display size of the video call window again, so that the video call window is in the preset size display state.
示例性的,结合图5,如图11所示,用户可以对处于最小化状态(例如收缩到手机屏幕最上方的一条粗线的状态)的悬浮窗10进行点击输入,以使得手机恢复悬浮窗10的显示尺寸(即退出最小化状态),并在预设时长内,若接收到用户的第四输入(例如用户拖动悬浮窗10离开屏幕最上方位置),则手机可以在第四输入对应的区域以恢复后的显示尺寸显示悬浮窗10。Exemplarily, in conjunction with FIG. 5, as shown in FIG. 11, the user can click and input the floating window 10 in the minimized state (for example, the state of shrinking to a thick line at the top of the mobile phone screen), so that the mobile phone can restore the floating window The display size of 10 (that is, exit the minimized state), and within the preset time, if the user’s fourth input is received (for example, the user drags the floating window 10 to leave the top position of the screen), the phone can respond to the fourth input The area of ?? displays the floating window 10 in the restored display size.
本申请实施例提供一种电子设备控制方法,电子设备可以根据用户对视频通话窗口的第一输入,控制电子设备的摄像头或视频通话窗口处于与第一输入对应的目标状态。由于用户可以直接对视频通话窗口进行第一输入,以使得电子设备快速地控制摄像头或视频通话窗口处于目标状态(即执行视频过程的相关动作),而无需用户进行多次输入,因此可以简化用户的操作,从而可以提高电子设备执行视频过程的相关动作的效率。An embodiment of the present application provides a method for controlling an electronic device. The electronic device can control the camera or the video call window of the electronic device to be in a target state corresponding to the first input according to the first input of the user to the video call window. Since the user can directly input the first input to the video call window, the electronic device can quickly control the camera or the video call window in the target state (that is, perform the related actions of the video process) without the user having to input multiple times, thus simplifying the user , Which can improve the efficiency of the electronic device to perform the related actions of the video process.
本申请实施例提供一种与视频通话时悬浮窗快捷交互的方式,与具体的视频应用相结合,将视频应用中视频的相关功能抽象出来(例如视频特效、画中画、左右分屏等),增加了用户自定义的手势操作,用户可以通过滑动输入、拖动输入或点击输入等简单操作, 即可快速地控制翻转摄像头、暂时关闭摄像或隐藏悬浮窗等视频通话的相关操作,快捷且方便,可以避免在整屏的视频画面和悬浮窗的视频画面之间的来回切换,以减少用户繁琐的操作。The embodiments of this application provide a way to quickly interact with the floating window during a video call, and combine with specific video applications to abstract out the related functions of the video in the video application (such as video special effects, picture-in-picture, left and right split screen, etc.) , User-defined gesture operations are added. Users can quickly control video call related operations such as flipping the camera, temporarily closing the camera, or hiding the floating window through simple operations such as sliding input, dragging input, or tapping input. Convenient, it can avoid switching back and forth between the video picture of the whole screen and the video picture of the floating window, so as to reduce the cumbersome operation of the user.
可选地,本申请实施例中,用户可以对视频通话窗口进行输入(例如双击输入),以触发电子设备关闭悬浮窗权限,从而用户无法再使用手势对视频通话窗口进行相关的操作,以防止用户对视频通话窗口的误操作。Optionally, in this embodiment of the application, the user can input (for example, double-click input) to the video call window to trigger the electronic device to close the floating window permission, so that the user can no longer use gestures to perform related operations on the video call window to prevent User misoperation of the video call window.
图12示出了本申请实施例中涉及的电子设备的一种可能的结构示意图。如图12所示,电子设备80可以包括:接收模块81和控制模块82。FIG. 12 shows a schematic diagram of a possible structure of an electronic device involved in an embodiment of the present application. As shown in FIG. 12, the electronic device 80 may include: a receiving module 81 and a control module 82.
其中,接收模块81,用于接收用户对视频通话窗口的第一输入。控制模块82,用于响应于接收模块81接收的第一输入,控制电子设备的摄像头或视频通话窗口处于目标状态,该目标状态为与第一输入对应的状态。Among them, the receiving module 81 is configured to receive the user's first input to the video call window. The control module 82 is configured to control the camera or the video call window of the electronic device to be in a target state in response to the first input received by the receiving module 81, and the target state is a state corresponding to the first input.
在一种可能的实现方式中,上述第一输入为用户对视频通话窗口的翻转输入。上述控制模块82,具体用于在视频通话窗口的翻转角度值大于或等于预设角度值的情况下,控制电子设备的摄像头切换至目标状态,该目标状态为前置摄像头开启状态或后置摄像头开启状态。In a possible implementation manner, the above-mentioned first input is a user's flip input of the video call window. The above-mentioned control module 82 is specifically configured to control the camera of the electronic device to switch to a target state when the flip angle value of the video call window is greater than or equal to the preset angle value, and the target state is the front camera on state or the rear camera Open state.
在一种可能的实现方式中,上述第一输入为用户对视频通话窗口的滑动输入。结合图12,如图13所示,本申请实施例提供的电子设备80还包括:处理模块83。其中,处理模块83,用于在控制模块82控制电子设备的摄像头或视频通话窗口处于目标状态之前,将视频通话窗口更新为以预设显示效果显示。上述控制模块82,具体用于根据视频通话窗口的显示效果,控制电子设备的摄像头切换至目标状态,该目标状态为前置摄像头关闭状态或后置摄像头关闭状态。In a possible implementation manner, the above-mentioned first input is a sliding input of the user on the video call window. With reference to FIG. 12, as shown in FIG. 13, the electronic device 80 provided in the embodiment of the present application further includes a processing module 83. The processing module 83 is configured to update the video call window to be displayed with a preset display effect before the control module 82 controls the camera or the video call window of the electronic device to be in the target state. The aforementioned control module 82 is specifically configured to control the camera of the electronic device to switch to a target state according to the display effect of the video call window, and the target state is the front camera closed state or the rear camera closed state.
在一种可能的实现方式中,上述接收模块81,还用于在控制模块82控制电子设备的摄像头切换至目标状态之后,接收用户的第二输入。上述处理模块83,还用于响应于接收模块81接收的第二输入,取消以预设显示效果显示视频通话窗口,并控制电子设备的摄像头切换至第一状态,该第一状态为前置摄像头开启状态或后置摄像头开启状态。In a possible implementation manner, the above-mentioned receiving module 81 is further configured to receive the second input of the user after the control module 82 controls the camera of the electronic device to switch to the target state. The above-mentioned processing module 83 is further configured to, in response to the second input received by the receiving module 81, cancel displaying the video call window with a preset display effect, and control the camera of the electronic device to switch to the first state, the first state being the front camera The on state or the rear camera is on.
在一种可能的实现方式中,上述第一输入为用户对视频通话窗口的拖动输入。上述控 制模块82,具体用于调整视频通话窗口的显示尺寸,以使得视频通话窗口处于目标状态,目标状态为预设尺寸显示状态。In a possible implementation manner, the above-mentioned first input is a drag input of the user on the video call window. The aforementioned control module 82 is specifically used to adjust the display size of the video call window, so that the video call window is in the target state, and the target state is the preset size display state.
在一种可能的实现方式中,上述接收模块81,还用于在控制模块82调整视频通话窗口的尺寸,以使得视频通话窗口处于目标状态之后,接收用户的第三输入。结合图12,如图14所示,本申请实施例提供的电子设备80还包括:处理模块83和显示模块84。其中,处理模块83,用于响应于接收模块81接收的第三输入,恢复视频通话窗口的显示尺寸。显示模块84,用于若在预设时长内接收到用户对视频通话窗口的第四输入,则以恢复后的视频通话窗口的显示尺寸,在目标区域显示视频通话窗口,该目标区域为与第四输入对应的区域。处理模块83,还用于若在预设时长内未接收到用户的任意输入,则取消恢复视频通话窗口的显示尺寸。In a possible implementation manner, the above-mentioned receiving module 81 is further configured to receive the third input of the user after the control module 82 adjusts the size of the video call window so that the video call window is in the target state. With reference to FIG. 12, as shown in FIG. 14, the electronic device 80 provided in the embodiment of the present application further includes: a processing module 83 and a display module 84. The processing module 83 is configured to restore the display size of the video call window in response to the third input received by the receiving module 81. The display module 84 is configured to, if the user's fourth input to the video call window is received within the preset time, display the video call window in the target area according to the display size of the restored video call window, and the target area is the same as the first Four input the corresponding area. The processing module 83 is further configured to cancel and restore the display size of the video call window if any input from the user is not received within the preset time period.
本申请实施例提供的电子设备能够实现上述方法实施例中电子设备实现的各个过程,为避免重复,详细描述这里不再赘述。The electronic device provided in the embodiment of the present application can implement each process implemented by the electronic device in the foregoing method embodiment. To avoid repetition, the detailed description will not be repeated here.
本申请实施例提供一种电子设备,电子设备可以根据用户对视频通话窗口的第一输入,控制电子设备的摄像头或视频通话窗口处于与第一输入对应的目标状态。由于用户可以直接对视频通话窗口进行第一输入,以使得电子设备快速地控制摄像头或视频通话窗口处于目标状态(即执行视频过程的相关动作),而无需用户进行多次输入,因此可以简化用户的操作,从而可以提高电子设备执行视频过程的相关动作的效率。An embodiment of the present application provides an electronic device. The electronic device can control the camera or the video call window of the electronic device to be in a target state corresponding to the first input according to a user's first input to the video call window. Since the user can directly input the first input to the video call window, the electronic device can quickly control the camera or the video call window in the target state (that is, perform the related actions of the video process) without the user having to input multiple times, thus simplifying the user , Which can improve the efficiency of the electronic device to perform the related actions of the video process.
图15为实现本申请各个实施例的一种电子设备的硬件示意图。如图15所示,电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。FIG. 15 is a schematic diagram of hardware of an electronic device that implements each embodiment of the present application. As shown in FIG. 15, the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, The processor 110, and the power supply 111 and other components.
需要说明的是,本领域技术人员可以理解,图15中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图15所示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本申请实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。It should be noted that those skilled in the art can understand that the structure of the electronic device shown in FIG. 15 does not constitute a limitation on the electronic device. The electronic device may include more or less components than those shown in FIG. Some components, or different component arrangements. In the embodiments of the present application, electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
其中,用户输入单元107,用于接收用户对视频通话窗口的第一输入。Wherein, the user input unit 107 is configured to receive the first input of the user to the video call window.
处理器110,用于响应于第一输入,控制电子设备的摄像头或视频通话窗口处于目标状态。The processor 110 is configured to control the camera or the video call window of the electronic device to be in the target state in response to the first input.
本申请实施例提供一种电子设备,电子设备可以根据用户对视频通话窗口的第一输入,控制电子设备的摄像头或视频通话窗口处于与第一输入对应的目标状态。由于用户可以直接对视频通话窗口进行第一输入,以使得电子设备快速地控制摄像头或视频通话窗口处于目标状态(即执行视频过程的相关动作),而无需用户进行多次输入,因此可以简化用户的操作,从而可以提高电子设备执行视频过程的相关动作的效率。An embodiment of the present application provides an electronic device. The electronic device can control the camera or the video call window of the electronic device to be in a target state corresponding to the first input according to a user's first input to the video call window. Since the user can directly input the first input to the video call window, the electronic device can quickly control the camera or the video call window in the target state (that is, perform the related actions of the video process) without the user having to input multiple times, thus simplifying the user , Which can improve the efficiency of the electronic device to perform the related actions of the video process.
应理解的是,本申请实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present application, the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station. Generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
电子设备通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与电子设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。The audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。The input unit 104 is used to receive audio or video signals. The input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102. The microphone 1042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
电子设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感 器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在电子设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light. The proximity sensor can close the display panel 1061 and the display panel 1061 when the electronic device 100 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元107可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071, also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating). The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed. In addition, the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图15中,触控面板1071与显示面板1061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现电子设备的输入和输出功能, 具体此处不做限定。Further, the touch panel 1071 can be overlaid on the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch. The type of event provides corresponding visual output on the display panel 1061. Although in FIG. 15, the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the electronic device, but in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.
接口单元108为外部装置与电子设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备100内的一个或多个元件或者可以用于在电子设备100和外部装置之间传输数据。The interface unit 108 is an interface for connecting an external device with the electronic device 100. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 100 or can be used to connect to the electronic device 100 and the external device. Transfer data between devices.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器110是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器110可包括一个或多个处理单元;可选地,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole. The processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
电子设备100还可以包括给各个部件供电的电源111(比如电池),可选地,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components. Optionally, the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
另外,电子设备100包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 100 includes some functional modules not shown, which will not be repeated here.
可选地,本申请实施例还提供一种电子设备,包括如图15所示的处理器110,存储器109,存储在存储器109上并可在所述处理器110上运行的计算机程序,该计算机程序被处理器110执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present application further provides an electronic device, including a processor 110 as shown in FIG. 15, a memory 109, a computer program stored in the memory 109 and running on the processor 110, the computer When the program is executed by the processor 110, each process of the foregoing method embodiment is realized, and the same technical effect can be achieved. In order to avoid repetition, details are not described herein again.
本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, I won’t repeat them here. Wherein, the computer-readable storage medium, such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of this application essentially or the part that contributes to the related technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) ) Includes several instructions to enable an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the application are described above with reference to the accompanying drawings, but the application is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of this application, many forms can be made without departing from the purpose of this application and the scope of protection of the claims, all of which fall within the protection of this application.

Claims (14)

  1. 一种电子设备控制方法,应用于电子设备,所述方法包括:An electronic device control method, applied to an electronic device, the method including:
    接收用户对视频通话窗口的第一输入;Receiving the user's first input to the video call window;
    响应于所述第一输入,控制所述电子设备的摄像头或所述视频通话窗口处于目标状态,所述目标状态为与所述第一输入对应的状态。In response to the first input, control the camera of the electronic device or the video call window to be in a target state, and the target state is a state corresponding to the first input.
  2. 根据权利要求1所述的方法,其中,所述第一输入为用户对所述视频通话窗口的翻转输入;The method according to claim 1, wherein the first input is a user's flip input to the video call window;
    所述控制所述电子设备的摄像头或所述视频通话窗口处于目标状态,包括:The controlling the camera or the video call window of the electronic device to be in the target state includes:
    在所述视频通话窗口的翻转角度值大于或等于预设角度值的情况下,控制所述电子设备的摄像头切换至所述目标状态,所述目标状态为前置摄像头开启状态或后置摄像头开启状态。When the flip angle value of the video call window is greater than or equal to the preset angle value, control the camera of the electronic device to switch to the target state, and the target state is the front camera on state or the rear camera on status.
  3. 根据权利要求1所述的方法,其中,所述第一输入为用户对所述视频通话窗口的滑动输入;The method according to claim 1, wherein the first input is a sliding input of the user on the video call window;
    所述控制所述电子设备的摄像头或所述视频通话窗口处于目标状态之前,所述方法还包括:Before the controlling the camera of the electronic device or the video call window in the target state, the method further includes:
    将所述视频通话窗口更新为以预设显示效果显示;Updating the video call window to be displayed with a preset display effect;
    所述控制所述电子设备的摄像头或所述视频通话窗口处于目标状态,包括:The controlling the camera or the video call window of the electronic device to be in the target state includes:
    根据所述视频通话窗口的显示效果,控制所述电子设备的摄像头切换至所述目标状态,所述目标状态为前置摄像头关闭状态或后置摄像头关闭状态。According to the display effect of the video call window, the camera of the electronic device is controlled to switch to the target state, and the target state is a front camera closed state or a rear camera closed state.
  4. 根据权利要求3所述的方法,其中,所述控制所述电子设备的摄像头切换至所述目标状态之后,所述方法还包括:The method according to claim 3, wherein after the controlling the camera of the electronic device to switch to the target state, the method further comprises:
    接收用户的第二输入;Receiving a second input from the user;
    响应于所述第二输入,取消以所述预设显示效果显示所述视频通话窗口,并控制所述电子设备的摄像头切换至第一状态,所述第一状态为前置摄像头开启状态或后置摄像头开启状态。In response to the second input, cancel displaying the video call window with the preset display effect, and control the camera of the electronic device to switch to a first state, where the first state is the front camera on state or the back Set the camera on.
  5. 根据权利要求1所述的方法,其中,所述第一输入为用户对所述视频通话窗口的拖动输入;The method according to claim 1, wherein the first input is a drag input of the user on the video call window;
    所述控制所述电子设备的摄像头或所述视频通话窗口处于目标状态,包括:The controlling the camera or the video call window of the electronic device to be in the target state includes:
    调整所述视频通话窗口的显示尺寸,以使得所述视频通话窗口处于所述目标状态,所述目标状态为预设尺寸显示状态。The display size of the video call window is adjusted so that the video call window is in the target state, and the target state is a preset size display state.
  6. 根据权利要求5所述的方法,其中,所述调整所述视频通话窗口的尺寸,以使得所述视频通话窗口处于所述目标状态之后,所述方法还包括:The method according to claim 5, wherein after the adjusting the size of the video call window so that the video call window is in the target state, the method further comprises:
    接收用户的第三输入;Receive the user's third input;
    响应于所述第三输入,恢复所述视频通话窗口的显示尺寸;In response to the third input, restore the display size of the video call window;
    若在预设时长内接收到用户对所述视频通话窗口的第四输入,则以恢复后的所述视频通话窗口的显示尺寸,在目标区域显示所述视频通话窗口,所述目标区域为与第四输入对应的区域;If the user's fourth input to the video call window is received within the preset time period, the video call window is displayed in the target area based on the restored display size of the video call window, where the target area is and The area corresponding to the fourth input;
    若在所述预设时长内未接收到用户的任意输入,则取消恢复所述视频通话窗口的显示尺寸。If any input from the user is not received within the preset time period, canceling and restoring the display size of the video call window.
  7. 一种电子设备,所述电子设备包括:接收模块和控制模块;An electronic device, the electronic device comprising: a receiving module and a control module;
    所述接收模块,用于接收用户对视频通话窗口的第一输入;The receiving module is configured to receive a user's first input to the video call window;
    所述控制模块,用于响应于所述接收模块接收的所述第一输入,控制所述电子设备的摄像头或所述视频通话窗口处于目标状态,所述目标状态为与所述第一输入对应的状态。The control module is configured to control the camera of the electronic device or the video call window to be in a target state in response to the first input received by the receiving module, and the target state is corresponding to the first input status.
  8. 根据权利要求7所述的电子设备,其中,所述第一输入为用户对所述视频通话窗口的翻转输入;8. The electronic device according to claim 7, wherein the first input is a user's flip input to the video call window;
    所述控制模块,具体用于在所述视频通话窗口的翻转角度值大于或等于预设角度值的情况下,控制所述电子设备的摄像头切换至所述目标状态,所述目标状态为前置摄像头开启状态或后置摄像头开启状态。The control module is specifically configured to control the camera of the electronic device to switch to the target state when the flip angle value of the video call window is greater than or equal to the preset angle value, and the target state is the front The camera is on or the rear camera is on.
  9. 根据权利要求7所述的电子设备,其中,所述第一输入为用户对所述视频通话窗口的滑动输入;The electronic device according to claim 7, wherein the first input is a sliding input of the user on the video call window;
    所述电子设备还包括:处理模块;The electronic device further includes: a processing module;
    所述处理模块,用于在所述控制模块控制所述电子设备的摄像头或所述视频通话窗口处于所述目标状态之前,将所述视频通话窗口更新为以预设显示效果显示;The processing module is configured to update the video call window to display with a preset display effect before the control module controls the camera of the electronic device or the video call window is in the target state;
    所述控制模块,具体用于根据所述视频通话窗口的显示效果,控制所述电子设备的摄像头切换至所述目标状态,所述目标状态为前置摄像头关闭状态或后置摄像头关闭状态。The control module is specifically configured to control the camera of the electronic device to switch to the target state according to the display effect of the video call window, and the target state is a front camera closed state or a rear camera closed state.
  10. 根据权利要求9所述的电子设备,其中,所述接收模块,还用于在所述控制模块控制所述电子设备的摄像头切换至所述目标状态之后,接收用户的第二输入;The electronic device according to claim 9, wherein the receiving module is further configured to receive a second input from the user after the control module controls the camera of the electronic device to switch to the target state;
    所述处理模块,还用于响应于所述接收模块接收的所述第二输入,取消以所述预设显示效果显示所述视频通话窗口,并控制所述电子设备的摄像头切换至第一状态,所述第一状态为前置摄像头开启状态或后置摄像头开启状态。The processing module is further configured to, in response to the second input received by the receiving module, cancel displaying the video call window with the preset display effect, and control the camera of the electronic device to switch to the first state , The first state is a front camera on state or a rear camera on state.
  11. 根据权利要求7所述的电子设备,其中,所述第一输入为用户对所述视频通话窗口的拖动输入;The electronic device according to claim 7, wherein the first input is a drag input of the user on the video call window;
    所述控制模块,具体用于调整所述视频通话窗口的显示尺寸,以使得所述视频通话窗口处于所述目标状态,所述目标状态为预设尺寸显示状态。The control module is specifically configured to adjust the display size of the video call window, so that the video call window is in the target state, and the target state is a preset size display state.
  12. 根据权利要求11所述的电子设备,其中,所述接收模块,还用于在所述控制模块调整所述视频通话窗口的尺寸,以使得所述视频通话窗口处于所述目标状态之后,接收用户的第三输入;The electronic device according to claim 11, wherein the receiving module is further configured to receive the user after the control module adjusts the size of the video call window so that the video call window is in the target state The third input;
    所述电子设备还包括:处理模块和显示模块;The electronic device further includes: a processing module and a display module;
    所述处理模块,用于响应于所述接收模块接收的所述第三输入,恢复所述视频通话窗口的显示尺寸;The processing module is configured to restore the display size of the video call window in response to the third input received by the receiving module;
    所述显示模块,用于若在预设时长内接收到用户对所述视频通话窗口的第四输入,则以恢复后的所述视频通话窗口的显示尺寸,在目标区域显示所述视频通话窗口,所述目标区域为与第四输入对应的区域;The display module is configured to display the video call window in the target area with the restored display size of the video call window if the user's fourth input to the video call window is received within a preset time period , The target area is an area corresponding to the fourth input;
    所述处理模块,还用于若在所述预设时长内未接收到用户的任意输入,则取消恢复所述视频通话窗口的显示尺寸。The processing module is further configured to cancel and restore the display size of the video call window if any input from the user is not received within the preset time period.
  13. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6中任一项所述的电子设备控制方法的步骤。An electronic device, comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program being executed by the processor to implement any of claims 1 to 6 One of the steps of the electronic device control method.
  14. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令 被处理器执行时实现如权利要求1至6中任一项所述的电子设备控制方法的步骤。A readable storage medium storing a program or instruction on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the electronic device control method according to any one of claims 1 to 6 are realized.
PCT/CN2020/137676 2019-12-24 2020-12-18 Method for controlling electronic device and electronic device WO2021129537A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911345930.XA CN111050109B (en) 2019-12-24 2019-12-24 Electronic equipment control method and electronic equipment
CN201911345930.X 2019-12-24

Publications (1)

Publication Number Publication Date
WO2021129537A1 true WO2021129537A1 (en) 2021-07-01

Family

ID=70238893

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/137676 WO2021129537A1 (en) 2019-12-24 2020-12-18 Method for controlling electronic device and electronic device

Country Status (2)

Country Link
CN (1) CN111050109B (en)
WO (1) WO2021129537A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125137A (en) * 2021-11-08 2022-03-01 维沃移动通信有限公司 Video display method and device, electronic equipment and readable storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111050109B (en) * 2019-12-24 2021-09-17 维沃移动通信有限公司 Electronic equipment control method and electronic equipment
CN113923349A (en) * 2021-09-02 2022-01-11 深圳壹秘科技有限公司 Camera privacy protection method, device, equipment and storage medium
CN114840298B (en) * 2022-07-04 2023-04-18 荣耀终端有限公司 Suspended window opening method and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160212374A1 (en) * 2014-04-15 2016-07-21 Microsoft Technology Licensing, Llc Displaying Video Call Data
CN108012182A (en) * 2017-12-26 2018-05-08 珠海格力电器股份有限公司 A kind of image display method and terminal device
CN108366221A (en) * 2018-05-16 2018-08-03 维沃移动通信有限公司 A kind of video call method and terminal
CN108933865A (en) * 2014-05-13 2018-12-04 Lg 电子株式会社 Mobile terminal and its control method
CN110174993A (en) * 2019-05-20 2019-08-27 维沃移动通信有限公司 A kind of display control method, terminal device and computer readable storage medium
CN110489043A (en) * 2019-07-31 2019-11-22 华为技术有限公司 A kind of management method and relevant apparatus of suspension windows
CN111050109A (en) * 2019-12-24 2020-04-21 维沃移动通信有限公司 Electronic equipment control method and electronic equipment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118299B (en) * 2011-11-16 2016-07-06 中国电信股份有限公司 IPTV video calling control method and Set Top Box
JP6229283B2 (en) * 2013-03-26 2017-11-15 株式会社リコー Image processing apparatus, display terminal, image display system, image processing method, display terminal control method, image display system control method, and program for those methods
GB2526245A (en) * 2014-03-04 2015-11-25 Microsoft Technology Licensing Llc Sharing content
US10389765B2 (en) * 2015-12-29 2019-08-20 Facebook, Inc. Multi-user content presentation system
CN206712945U (en) * 2017-04-26 2017-12-05 联想新视界(天津)科技有限公司 Video communications system
CN108924616B (en) * 2018-07-27 2020-11-13 维沃移动通信有限公司 Display control method and terminal
CN109327568A (en) * 2018-10-18 2019-02-12 维沃移动通信(杭州)有限公司 A kind of method and mobile terminal switching camera
CN110248254A (en) * 2019-06-11 2019-09-17 Oppo广东移动通信有限公司 Display control method and Related product
CN110362373A (en) * 2019-06-29 2019-10-22 华为技术有限公司 A kind of method and relevant device controlling screen wicket
CN110531864A (en) * 2019-09-18 2019-12-03 华为技术有限公司 A kind of gesture interaction method, device and terminal device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160212374A1 (en) * 2014-04-15 2016-07-21 Microsoft Technology Licensing, Llc Displaying Video Call Data
CN108933865A (en) * 2014-05-13 2018-12-04 Lg 电子株式会社 Mobile terminal and its control method
CN108012182A (en) * 2017-12-26 2018-05-08 珠海格力电器股份有限公司 A kind of image display method and terminal device
CN108366221A (en) * 2018-05-16 2018-08-03 维沃移动通信有限公司 A kind of video call method and terminal
CN110174993A (en) * 2019-05-20 2019-08-27 维沃移动通信有限公司 A kind of display control method, terminal device and computer readable storage medium
CN110489043A (en) * 2019-07-31 2019-11-22 华为技术有限公司 A kind of management method and relevant apparatus of suspension windows
CN111050109A (en) * 2019-12-24 2020-04-21 维沃移动通信有限公司 Electronic equipment control method and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125137A (en) * 2021-11-08 2022-03-01 维沃移动通信有限公司 Video display method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN111050109A (en) 2020-04-21
CN111050109B (en) 2021-09-17

Similar Documents

Publication Publication Date Title
WO2021098678A1 (en) Screencast control method and electronic device
EP3816780B1 (en) Display control method and terminal
WO2021083052A1 (en) Object sharing method and electronic device
WO2021218902A1 (en) Display control method and apparatus, and electronic device
WO2021104195A1 (en) Image display method and electronic device
WO2020156466A1 (en) Photographing method and terminal device
US11675442B2 (en) Image processing method and flexible-screen terminal
WO2021129537A1 (en) Method for controlling electronic device and electronic device
WO2021082711A1 (en) Image display method and electronic device
WO2021057337A1 (en) Operation method and electronic device
WO2021083087A1 (en) Screen capturing method and terminal device
WO2020186945A1 (en) Interface display method and terminal device
WO2020238449A1 (en) Notification message processing method and terminal
WO2021098603A1 (en) Preview picture display method and electronic device
WO2021004327A1 (en) Method for setting application permission, and terminal device
WO2021093844A1 (en) Sharing control method and electronic device
WO2020238497A1 (en) Icon moving method and terminal device
WO2020215950A1 (en) Interface display method and terminal device
WO2021129538A1 (en) Control method and electronic device
WO2021218748A1 (en) Screen mirroring method and electronic device
WO2020192297A1 (en) Screen interface switching method and terminal device
WO2020057257A1 (en) Application interface switching method and mobile terminal
WO2019223492A1 (en) Information display method, mobile terminal, and computer readable storage medium
WO2020199783A1 (en) Interface display method and terminal device
WO2021136330A1 (en) Bullet screen display control method and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20905283

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20905283

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10/01/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20905283

Country of ref document: EP

Kind code of ref document: A1