CN108509127B - Method and device for starting screen recording task and computer equipment - Google Patents

Method and device for starting screen recording task and computer equipment Download PDF

Info

Publication number
CN108509127B
CN108509127B CN201810273329.3A CN201810273329A CN108509127B CN 108509127 B CN108509127 B CN 108509127B CN 201810273329 A CN201810273329 A CN 201810273329A CN 108509127 B CN108509127 B CN 108509127B
Authority
CN
China
Prior art keywords
sensor
screen recording
screen
display
recording task
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201810273329.3A
Other languages
Chinese (zh)
Other versions
CN108509127A (en
Inventor
仇蒙
潘佳绮
张雅
肖庆华
张书婷
汪俊明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810273329.3A priority Critical patent/CN108509127B/en
Publication of CN108509127A publication Critical patent/CN108509127A/en
Application granted granted Critical
Publication of CN108509127B publication Critical patent/CN108509127B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Abstract

The application relates to a method and a device for starting a screen recording task and computer equipment, and relates to the technical field of computer application. The method comprises the following steps: acquiring first sensor data acquired by a target sensor in a terminal, wherein the target sensor is a sensor arranged outside a display screen in the terminal; detecting a first predetermined operation performed for the target sensor according to the first sensor data; and when the first preset operation is detected, starting a screen recording task of the display content in the display screen. This application can start the record screen task to the display content in the display screen when detecting the predetermined operation to the sensor outside the display screen, need not show in the display screen and record screen start-up controlling part, consequently can not cause the sheltering from to the display content in the display screen, and when the user carries out the interactive operation in the display screen, also be difficult for the mistake to start the record screen task to the display effect of display content has been guaranteed, the accuracy of starting the record screen task is improved simultaneously.

Description

Method and device for starting screen recording task and computer equipment
Technical Field
The present application relates to the field of computer application technologies, and in particular, to a method and an apparatus for starting a screen recording task, and a computer device.
Background
The screen recording refers to a technology for recording display contents in a display screen of a terminal within a period of time into a video through a software means.
In order to facilitate a user to quickly start a screen recording task so as to avoid missing wonderful contents displayed in a display screen, in the related art, screen recording software generally provides a quick start function, when the quick start function is started, a terminal displays a screen recording start control in the display screen, and when the user uses the terminal and displays or expects to display contents to be recorded in the display screen, the user can start the screen recording task by clicking the screen recording start control.
However, the screen recording start control in the related art is directly displayed in the display screen, on one hand, the screen recording start control can shield the display content, and on the other hand, the user can easily touch the screen recording start control by mistake, which affects the display effect of the display content and the accuracy of the start screen recording task.
Disclosure of Invention
The embodiment of the application provides a method and a device for starting a screen recording task and computer equipment, which can be used for solving the problems that a screen recording starting control influences the display effect of display content and the accuracy of starting the screen recording task in the related technology, and the technical scheme is as follows:
in one aspect, a method for starting a screen recording task is provided, and the method includes:
acquiring first sensor data acquired by a target sensor in a terminal, wherein the target sensor is a sensor arranged outside a display screen in the terminal;
detecting a first predetermined operation performed for the target sensor according to the first sensor data;
and when the first preset operation is detected, starting a screen recording task of the display content in the display screen.
In one aspect, a method for starting a screen recording task is provided, and the method includes:
when a screen is in a lighting state and a first preset operation executed aiming at a target sensor is detected, starting a screen recording task of display contents in a display screen, wherein the target sensor is a sensor arranged outside the display screen in the terminal;
and displaying a screen recording indication pattern in the display screen, wherein the screen recording indication pattern is used for indicating that the screen recording task is performed.
In one aspect, an apparatus for starting a screen recording task is provided, the apparatus including:
the terminal comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring first sensor data acquired by a target sensor in the terminal, and the target sensor is a sensor arranged outside a display screen in the terminal;
a first detection module for detecting a first predetermined operation performed for the target sensor according to the first sensor data;
and the starting module is used for starting a screen recording task of the display content in the display screen when the first preset operation is detected.
In one aspect, an apparatus for starting a screen recording task is provided, the apparatus including:
the terminal comprises a starting module, a display module and a display module, wherein the starting module is used for starting a screen recording task of display contents in a display screen when the screen is in a lighting state and detects a first preset operation executed aiming at a target sensor, and the target sensor is a sensor arranged outside the display screen in the terminal;
the first display module is used for displaying a screen recording indication pattern in the display screen, and the screen recording indication pattern is used for indicating that the screen recording task is being performed. .
In one aspect, a computer device is provided, where the computer device includes a processor and a memory, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the method for starting a screen recording task.
In one aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement the method for starting a screen recording task.
The technical scheme provided by the application can comprise the following beneficial effects:
through the scheme shown in the application, the screen recording task for the display content in the display screen can be started when the preset operation for the sensor outside the display screen is detected, the screen recording starting control does not need to be displayed in the display screen, therefore, the shielding of the display content in the display screen can not be caused, and the screen recording task is not easy to be started by mistake when a user carries out interactive operation in the display screen, so that the display effect of the display content is ensured, and the accuracy of the screen recording task is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic structural diagram of a terminal according to an exemplary embodiment of the present application;
FIG. 2 is a flowchart of a method for initiating a screen recording task according to an exemplary embodiment of the present application;
FIG. 3 is a flowchart illustrating a task of initiating a screen recording according to the embodiment shown in FIG. 2;
FIG. 4 is a flowchart of a method for initiating a screen recording task according to an exemplary embodiment of the present application;
FIG. 5 is a schematic diagram of a sensor arrangement according to the embodiment of FIG. 4;
FIG. 6 is a schematic diagram of a distance sensor arrangement according to the embodiment of FIG. 4;
FIG. 7 is a schematic view of an arrangement of a light sensor according to the embodiment shown in FIG. 4;
FIG. 8 is an operational schematic diagram of a startup screen recording task provided by an exemplary embodiment of the present application;
FIG. 9 is a schematic diagram illustrating an operation of ending a screen recording task according to an exemplary embodiment of the present application;
FIG. 10 is a diagram of a terminal architecture provided in an exemplary embodiment of the present application;
FIG. 11 is a flowchart of a method of controlling a screen recording task according to the embodiment shown in FIG. 10;
FIG. 12 is a block diagram illustrating an exemplary apparatus for initiating a screen recording task according to an embodiment of the present disclosure;
FIG. 13 is a block diagram illustrating an exemplary apparatus for initiating a screen recording task according to an embodiment of the present disclosure;
fig. 14 is a block diagram of a computer device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
Referring to fig. 1, a schematic structural diagram of a terminal according to an exemplary embodiment of the present application is shown. As shown in fig. 1, the terminal includes a main board 110, an external input/output device 120, a memory 130, an external interface 140, a capacitive touch system 150, a power supply 160, and a sensor device 170.
The main board 110 has integrated therein processing elements such as a processor and a controller.
The external input/output devices 120 may include a display screen, a sound playing component (such as a speaker), a sound collecting component (such as a microphone), and various keys.
The memory 130 has program codes and data stored therein.
The external interface 140 may include a headset interface, a charging interface, a data interface, and the like.
The capacitive touch system 150 may be integrated into a display component or a key of the external input/output device 120, and the capacitive touch system 150 is used to detect a touch operation performed by a user on the display component or the key.
The power supply 160 is used to power the various other components in the terminal.
The sensor unit 170 includes various types of sensors other than a touch sensor, such as a distance sensor, a light sensor, a motion sensor (e.g., an acceleration sensor), a vibration sensor, a temperature sensor, and the like.
In the embodiment of the present application, the processor in the main board 110 may generate the display content by executing or calling the program code and data stored in the memory, and display the generated display content through the display screen in the external input/output device 120. In the process of displaying the display content, the capacitive touch system 150 may detect a touch operation performed when the user interacts with the display content.
In the related art, interaction between a user and an application installed in a terminal is mostly realized through a physical key in the terminal and a virtual key displayed by the application in a display screen, wherein the physical key in the terminal generally undertakes simpler interaction operations, such as adjusting volume and returning to a higher-level menu, and more complex interaction can be realized through the virtual key displayed by the application in the display screen.
In the solution shown in the present application, the screen recording task may be started or ended not by physical keys or virtual keys in the display screen, but by a sensor arranged outside the display screen in the sensor assembly 170.
When the screen recording task is started or ended through a sensor arranged outside the display screen, the operation performed by a user on the sensor can be detected through the sensor arranged outside the display screen, and the screen recording task is started or ended according to the operation performed by the user on the sensor.
Based on the principle, the scheme shown in the embodiment of the application can realize that the screen recording task is quickly started without depending on the virtual keys displayed in the display screen through the sensor arranged outside the display screen in the terminal. For example, please refer to fig. 2, which shows a flowchart of a method for starting a screen recording task according to an exemplary embodiment of the present application. As shown in fig. 2, the method for starting a screen recording task may include the following steps:
and 21, acquiring first sensor data acquired by a target sensor in the terminal, wherein the target sensor is a sensor arranged outside a display screen in the terminal.
A first predetermined operation performed with respect to the target sensor is detected from the first sensor data, step 22.
And step 23, when the first preset operation is detected, starting a screen recording task of display contents in the display screen.
The method shown in fig. 2 may be executed by a processing element integrated on the main board 110 in the terminal. For example, please refer to fig. 3, which shows a flowchart illustrating a task of starting a screen recording according to an embodiment of the present application. As shown in fig. 3, the target sensor 31 in the terminal 30 is disposed outside the display screen 32, and the target sensor 31 is connected to the processing element 33 (the processing element 33 may include a processor and a controller), and the process of starting the screen recording task is as follows:
1) the target sensor 31 acquires first sensor data.
2) The object sensor 31 sends the first sensor data to the processing element 33.
3) The processing element 33 detects a first predetermined operation for the target sensor from the first sensor data.
4) Upon detection of the first predetermined operation, the processing element 33 starts a screen recording task for display contents in the display screen.
Through the method for starting the screen recording task shown in the figure 2, the screen recording task for the display content in the display screen can be started when the preset operation for the sensor except the display screen is detected, the screen recording starting control does not need to be displayed in the display screen, therefore, the display content in the display screen cannot be shielded, and the screen recording task is not easy to be started by mistake when the user performs the interactive operation in the display screen, so that the display effect of the display content is ensured, and meanwhile, the accuracy of the screen recording task is improved.
In one possible implementation, based on the method shown in fig. 2, the operation of the user on the distance sensor or the light sensor may be detected by the distance sensor or the light sensor.
Referring to fig. 4, a flowchart of a method for initiating a screen recording task according to an exemplary embodiment of the present application is shown, where the method may be used in a terminal having an object sensor outsourced on a display screen. The method for starting the screen recording task can comprise the following steps:
step 401, acquiring first sensor data acquired by a target sensor in a terminal, where the target sensor is a sensor arranged outside a display screen in the terminal.
Optionally, the target sensor is at least one of a distance sensor or a light sensor. In addition, the target sensor is arranged outside the area where the display screen in the terminal is located, so that the influence on the watching of the user on the display content in the display screen when the target sensor is operated is avoided, and the mistaken touch on other virtual keys in the display screen can also be avoided.
Please refer to fig. 5, which shows a schematic diagram of a sensor arrangement according to an embodiment of the present application. As shown in fig. 5, the front panel 50 of the terminal includes a display 51, physical keys 52, a headphone 53, a camera 54, and an object sensor 55. In fig. 5, the physical keys 52 are disposed on the left side of the display screen 51, and the earpiece 53, the camera 54, and the object sensor 55 are disposed on the right side of the display screen 51.
In the terminal shown in fig. 5, the target sensor is disposed on the front panel of the terminal, and in practical applications, the target sensor may be disposed outside the front panel of the terminal, for example, the target sensor may be disposed on the side surface of the terminal or the back surface of the terminal. In addition, the target sensor may only include a single sensor, or the target sensor may also include two or more sensors, and when the target sensor includes two or more sensors, the two or more sensors may be collectively disposed at the same position, or may be disposed at different positions in the terminal in a distributed manner. The number of the target sensors and the positions of the target sensors, other than the display screen, in the terminal are not limited in the embodiments of the present application.
In the embodiment of the present application, the object sensor in the terminal acquires first sensor data, for example, when the object sensor is a distance sensor, the first sensor data includes distance data, when the object sensor is a light sensor, the first sensor data includes light data, and when the object sensor includes both the distance sensor and the light sensor, the first sensor data includes both the distance data and the light data. After the target sensor collects the first sensor data, the first sensor data is sent to a Processing element in the terminal, for example, a Central Processing Unit (CPU) or a controller (for example, the controller may be a microprocessor in the terminal for Processing the sensor data).
In step 402, a first predetermined operation performed with respect to the target sensor is detected based on the first sensor data.
Optionally, when the display screen is in a lit state, the terminal detects a first predetermined operation performed for the target sensor according to the first sensor data.
Since the first predetermined operation is an operation for triggering the start of the screen recording task, and the screen recording task needs to record a video in a state where the display screen is lit, in this embodiment of the application, after the first sensor data is acquired, the processing element in the terminal may acquire the display state of the display screen, and when the display screen is in the lit state, the step of detecting the first predetermined operation performed on the target sensor according to the first sensor data is performed, and when the display screen is in the off-screen state, the processing element in the terminal may not perform the step of detecting the first predetermined operation performed on the target sensor according to the first sensor data.
Optionally, determining that the first predetermined operation is detected when the first sensor data indicates that a distance between an object in front of the target sensor and the target sensor is not greater than a preset distance threshold;
in the scheme shown in the embodiment of the application, the sensor data acquired by the distance sensor or the light sensor can detect whether the distance between the object in front of the sensor and the sensor is not greater than a preset distance threshold value.
For example, please refer to fig. 6, which shows a schematic diagram of an arrangement of a distance sensor according to an embodiment of the present application. As shown in fig. 6, the terminal 60 is provided with a panel 61 at the uppermost front of the terminal, a distance sensor 62 is provided under the panel 61, where the panel 61 has a thickness d, when the finger or other hand of the user moves to a position just in front of the distance sensor 62, the sensor data collected by the distance sensor 62 may change as the distance between the user's finger or other location of the hand and the distance sensor 62 changes, and upon receipt of the sensor data collected by the distance sensor 62 by the processing element, a value for the distance between the user's finger or other hand location and the distance sensor 62 may be determined from the sensor data, and comparing the distance value with a preset distance threshold value to determine whether the distance between the object in front of the distance sensor and the distance sensor is not greater than the preset distance threshold value, and then determining whether the first preset operation is detected. When the distance between an object in front of the distance sensor and the distance sensor is not larger than a preset distance threshold value, determining that a first preset operation is detected; conversely, when the distance between the object in front of the distance sensor and the distance sensor is greater than a preset distance threshold, it is determined that the first predetermined operation is not detected.
For example, taking the first predetermined operation as an example that the user touches the panel 61 at a position corresponding to the distance sensor 62, when the sensor data acquired by the distance sensor 62 indicates that the distance between the object in front of the distance sensor 62 and the distance sensor 62 is smaller than a preset distance threshold (the preset distance threshold may be set to d, or the preset distance threshold may also be set to be slightly larger than d in consideration of the influence of the measurement accuracy of the distance sensor 62), it may be considered that an operation with respect to the distance sensor 62 (i.e., a touch operation with respect to the position of the panel 61 where the distance sensor 62 is located) is detected.
The preset distance threshold may be a threshold preset by a developer.
Alternatively, please refer to fig. 7, which shows a schematic diagram of an arrangement of a light sensor according to an embodiment of the present application. As shown in fig. 7, a panel 71 is disposed on the uppermost layer of the front surface of the terminal 70, and a light sensor 72 is disposed under the panel 71, wherein the thickness of the panel 71 is d, a portion of the panel 71 directly above the light sensor 72 is made of a light-transmitting material, and a portion of the panel 71 around the light sensor 72 can be made of a light-tight material, so that a light-transmitting hole 73 is formed directly above the light sensor 72, when an object at a position corresponding to the light sensor 72 on the front surface of the terminal 70 contacts the panel 71, external light on the front surface of the terminal 70 can be received by the light sensor 72 through the light-transmitting hole 73 (even in a dark environment, light emitted from a display screen in a lit state can reach the light-transmitting hole 73 in a reflected manner), and after receiving sensor data collected by the light sensor 72, the processing element can determine the intensity of the light entering the light sensor 72 according to the sensor data, when the light intensity is lower than a certain light intensity threshold (the light intensity threshold may be a threshold set by a developer with reference to the light intensity corresponding to the sensor data when the light-transmitting hole 73 is completely blocked), it may be because the light-transmitting hole 73 is completely blocked (for example, it may be an operation in which a user's finger touches the position of the light sensor 72 in the panel 71), at this time, it may be determined that the sensor data collected by the light sensor 72 indicates that the distance between the object in front of the light sensor 72 and the light sensor 72 is smaller than a preset distance threshold (the preset distance threshold may be set to d, or, in consideration of the influence of the measurement accuracy of the light sensor 72, the preset distance threshold may also be set to be slightly larger than d), and then it is determined that the first predetermined operation is detected. Conversely, if the light intensity determined from the sensor data is greater than the light intensity threshold, it may be determined that the first predetermined operation was not detected.
The above scheme of detecting the first predetermined operation by the distance sensor or by the light sensor may be used alone, that is, the first predetermined operation is detected by the sensor data collected by the distance sensor alone or the sensor data collected by the light sensor alone. Alternatively, the processing element in the terminal may also detect the first predetermined operation in combination with the distance sensor and the light sensor. For example, the processing element in the terminal may detect the first predetermined operation by the sensor data collected by the distance sensor and also detect the first predetermined operation by the sensor data collected by the light sensor, and finally determine that the first predetermined operation is successfully detected, and may determine that the first predetermined operation is not detected if none of the sensor data collected by the distance sensor and the light sensor, respectively, or if the first predetermined operation is detected by one of the sensor data collected by the distance sensor and the light sensor, respectively, but the first predetermined operation is not detected by the other sensor data.
For example, taking the target sensors as the centralized distance sensor and the light sensor, and the first predetermined operation is a touch operation for the position of the target sensor in the panel, the preset distance threshold may be set to d or slightly larger than d, if the processing element determines, through the sensor data collected by the distance sensor, that the distance between the object in front of the distance sensor and the distance sensor is not larger than the preset distance threshold, and determines, through the sensor data collected by the light sensor, that the distance between the object in front of the light sensor and the light sensor is not larger than the preset distance threshold, it may be determined that the touch operation for the position of the target sensor in the panel is detected; if it is determined that the distance between the object in front of the sensor and the sensor is greater than the preset distance threshold value through sensor data acquired by any sensor of the distance sensor or the light sensor, it may be determined that the touch operation for the position of the target sensor in the panel is not detected.
Alternatively, in another possible implementation, it is determined that the first predetermined operation is detected when a duration of a state in which the first sensor data indicates that a distance between an object in front of the target sensor and the target sensor is not greater than a preset distance threshold exceeds a preset duration.
In practical application, a user may touch a target sensor in the terminal by mistake in the process of using the terminal, and in order to improve the accuracy of a subsequent screen recording task, in the embodiment of the present application, the first sensor data may be sensor data acquired by the target sensor in a continuous period of time, and when it is detected that the distance between the object in front of the target sensor and the target sensor is not greater than the preset distance threshold for the first time according to the first sensor data, and beginning to count the duration of the state that the distance between the object in front of the target sensor and the target sensor is not greater than the preset distance threshold, and determining that the first preset operation is detected only when the duration of the state that the distance between the object in front of the target sensor and the target sensor is not greater than the preset distance threshold exceeds the preset duration.
And step 403, when the first preset operation is detected, starting a screen recording task of the display content in the display screen.
In an embodiment of the application, when the processing element in the terminal determines that the first predetermined operation for the target sensor is detected, the screen recording program in the terminal may be instructed to start a screen recording task for display contents in the display screen.
Optionally, when the first predetermined operation is detected and the application running in the foreground is the designated application, the screen recording task is started.
In practical applications, the screen recording task is not required to be started under all conditions when the display screen is in a lighting state, and therefore, in the embodiment of the application, when a processing element in the terminal detects a first predetermined operation, the processing element may first acquire an application program running in a foreground, and detect whether the application program running in the foreground is a designated application program, and when the application program running in the foreground is the designated application program, the screen recording task is started.
The designated application program may be a designated application program preset by a developer, or the designated application program may also be a designated application program set by a user.
For example, when the user needs to set the specified application program, the terminal may display an application program setting interface in the display screen, the user may select the application program to be set in the application program setting interface through a selection operation, and after the user clicks a confirmation key in the application program setting interface, the terminal sets the application program selected by the user as the specified application program; or, the user may select a program type of an application program to be set in the application program setting interface through a selection operation, and after the user clicks a confirmation key in the application program setting interface, the terminal sets the application program corresponding to the application program type selected by the user as the specified application program.
Optionally, when the first predetermined operation is detected and the currently displayed application interface is the designated application interface, the screen recording task is started.
In another possible implementation manner, when detecting the first predetermined operation, the processing element in the terminal may first obtain an application interface currently displayed in the display screen, and detect whether the application interface is a designated application interface, and when the application interface is the designated application interface, start the screen recording task.
Step 404, displaying a screen recording indication pattern in the display screen, wherein the screen recording indication pattern is used for indicating that the screen recording task is being performed.
In order to facilitate the user to distinguish whether the screen recording task has started, in the embodiment of the present application, after the processing element in the terminal successfully starts the screen recording task, a screen recording indication pattern is also displayed in the display screen.
Optionally, after the screen recording task is successfully started, the processing element in the terminal further displays first indication information corresponding to the screen recording indication pattern, where the first indication information is used to indicate a screen recording duration corresponding to the screen recording task.
Step 405, second sensor data collected by the target sensor is obtained.
In step 406, a third predetermined operation performed with respect to the target sensor is detected based on the second sensor data.
Step 407, when the third predetermined operation is detected, ending the screen recording task.
In this embodiment, after the screen recording task is started, the processing element in the terminal may further acquire second sensor data acquired by the target sensor, and when it is determined that a third predetermined operation performed on the target sensor is detected according to the second sensor data, the screen recording task is ended.
The process of detecting the third predetermined operation in steps 405 to 406 is similar to the process of detecting the first predetermined operation, and is not repeated here.
Optionally, when the screen recording task is ended, the processing element in the terminal may also end the screen recording task when receiving a second predetermined operation for the screen recording indication pattern.
In the solution shown in the present application, the user may also end the screen recording task by directly operating (for example, clicking) the screen recording indication pattern displayed in the display screen, instead of ending the screen recording task by using the target sensor.
And step 408, displaying second indication information in the display screen when the screen recording task is finished, wherein the second indication information is used for indicating that the screen recording task is finished.
In order to facilitate the user to distinguish whether the screen recording task is finished, in this embodiment of the application, after the screen recording task is finished successfully, the processing element in the terminal further displays information indicating that the screen recording task is finished in the display screen, for example, displays a prompt text on a top layer of the display screen to prompt that the screen recording task is finished.
Optionally, in addition to the distance sensor and the light sensor, the solution shown in the embodiment of the present application may also detect the user operation through other sensors disposed outside the display screen, for example, a motion sensor may detect a track that a user waves the terminal, and detect the user operation according to the track.
Optionally, in order to facilitate the user to know the position of the target sensor so as to accurately perform the first predetermined operation and the third predetermined operation, in this application, the terminal may further display an operation guidance interface including sensor position information, where the sensor position information is used to indicate a setting position of the target sensor in the terminal.
In many terminals, the target sensor is usually hidden in the terminal housing and cannot be observed by naked eyes, and in order to facilitate a user to accurately start or end a screen recording task, in this embodiment of the application, the terminal may indicate the position of the target sensor in the current terminal by operating the guide interface.
Optionally, before the terminal displays the operation guidance interface, the terminal may further obtain an equipment model of the terminal, and query the sensor position information according to the equipment model of the terminal.
In the embodiment of the application, the terminal can also query the position information of the target sensor in the terminal according to the own equipment model, and can indicate the position of the target sensor in the terminal according to the queried position information when an operation guide interface is displayed subsequently.
When inquiring the position information of the terminal, the terminal can send the equipment signal to the server and receive the sensor position information returned by the server.
To sum up, the scheme shown in the embodiment of the application starts or ends the screen recording task aiming at the display content in the display screen when detecting the first predetermined operation aiming at the sensor outside the display screen, and does not need to display the screen recording starting control in the display screen, so that the display content in the display screen cannot be shielded, and the screen recording task is not easy to be started by mistake when the user carries out interactive operation in the display screen, thereby ensuring the display effect of the display content and simultaneously improving the accuracy of the screen recording task.
In addition, according to the scheme shown in the embodiment of the application, the position of the target sensor in the terminal is indicated through the operation guide interface, so that a user can accurately execute the operation of starting or ending the screen recording task.
From the interaction perspective of the user and the terminal, according to the scheme shown in fig. 2 or fig. 4, when the user wants to quickly start the screen recording task, a first predetermined operation can be executed on a target sensor other than the display screen, and accordingly, when the terminal is in a lighting state on the screen and detects the first predetermined operation executed on the target sensor, the screen recording task of displaying content in the display screen is started, and a screen recording indication pattern is displayed in the display screen. Further, when the user wants to quickly end the screen recording task, a predetermined operation may be performed on the screen recording indication pattern or the target sensor, and accordingly, when the terminal detects a second predetermined operation performed on the screen recording indication pattern or detects a third predetermined operation performed on the target sensor, the started screen recording task may be quickly ended, and second indication information indicating that the screen recording task has been ended is displayed in the display screen.
Taking the above-mentioned scheme of starting and ending the screen recording task applied to the game scene as an example, in each game process, users (i.e. game players) have different experiences and performances, and often need to record a special moment in the game through the screen recording, which may be a section of difficult operation or a section of fun scene, and in the game process, especially in the competitive game process, users need to frequently operate in the game interface, and at this time, on the premise of not interrupting the current game task and operation, the recording and storage of the video in the game need to be conveniently completed.
For example, taking the target sensor as a distance sensor outside the display screen and the first predetermined operation is that the user presses the position of the distance sensor for a long time, please refer to fig. 8, which shows an operation diagram of starting the screen recording task according to an exemplary embodiment of the present application. In fig. 8, the front panel of the terminal includes a display screen 81, the display screen 81 displays a game scene screen 82, the game scene interface includes a virtual object 83 and at least one set of virtual control buttons 84, and a user can control the virtual object 83 to perform movements such as moving and shooting through the virtual control buttons 84. A sensing hole 85 of the distance sensor is arranged outside the display screen 81 in the front panel of the terminal, when a user needs to start a screen recording task, the user touches the sensing hole 85 of the distance sensor with a finger and continues for 2s, at this time, a screen recording indication pattern 86 and screen recording time 87 appear in the game scene picture 82 so as to prompt the user that the screen recording task is currently executed and indicate the progress of the screen recording task.
Taking the example that the target sensor is a distance sensor outside the display screen and the second predetermined operation is the position where the user presses the distance sensor for a long time, please refer to fig. 9, which shows an operation diagram of ending the screen recording task according to an exemplary embodiment of the present application, based on the game scenario shown in fig. 8. In fig. 9, when the user needs to end the current screen recording task, the user's finger touches the sensing hole 85 of the distance sensor again for 2 seconds, and at this time, a prompt message 88 appears in the game scene picture 82, and the prompt message 88 is used for prompting that the screen recording task is ended.
Taking the target sensor as a distance sensor outside the display screen and the third predetermined operation as an example of the operation of clicking the screen recording indication pattern by the user, in conjunction with the game scenes shown in fig. 8 and 9, when the user needs to end the current screen recording task, the user clicks the screen recording indication pattern 86 in the game scene picture 82 with a finger, and at this time, the prompt message 88 appears in the game scene picture 82.
In a possible implementation manner, the process of quickly starting or ending the screen recording task through the target sensor outside the display screen, which is shown in the above embodiments of the present application, may be implemented by cooperation of a microprocessor and a CPU in the terminal.
For example, taking the target sensor as a distance sensor, please refer to fig. 10, which shows a terminal architecture diagram provided by an exemplary embodiment of the present application. As shown in fig. 10, the terminal 1000 includes a distance sensor 1010, a microprocessor 1020, a central processing unit 1030, a memory 1040, and a display screen 1050, and a screen recording control program 1060 and a screen recording execution program 1070 are installed in the terminal.
Referring to fig. 11, a method flowchart of a screen recording task control method according to an embodiment of the present application is shown based on the terminal architecture shown in fig. 10. As shown in fig. 11, the process of controlling the start or end of the screen recording task by the distance sensor may be as follows:
when the distance sensor detects a shielding signal (i.e. detects that a shielding object exists right in front of the distance sensor), 1101, the distance sensor sends a shielding signal sensing value to the microprocessor.
1102, comparing and analyzing the shielding signal induction value by the microprocessor, generating a control request instruction according to an analysis and comparison result, and sending the control request instruction to the central processing unit for sending.
For example, the microprocessor may determine the distance between the object directly in front of the distance sensor and the distance sensor through the occlusion signal sensing value, compare the magnitude relationship between the distance at each time point and a preset distance threshold, and analyze whether the duration of the distance between the object directly in front of the distance sensor and the distance sensor being less than the distance threshold exceeds a preset duration. The distance threshold and the preset time length can be read from a memory. When the microprocessor analyzes that the duration that the distance between the object in front of the distance sensor and the distance sensor is smaller than the distance threshold value exceeds the preset duration, a control request instruction can be sent to the central processing unit.
1103, the central processing unit generates a control signal according to the control request instruction, and sends the control signal to the screen recording control program.
And 1104, the screen recording control program controls the screen recording execution program according to the control signal.
The process of the control signal generation and the screen recording control can be as follows:
1) when the central processing unit receives a control request instruction under the state that the screen recording task is not started, a first control signal for indicating the start of the screen recording task is generated, and the screen recording control program controls the screen recording execution program to start the screen recording task according to the first control signal.
2) And under the state that the screen recording task is started, when the central processing unit receives a control request instruction, generating a second control signal for indicating the completion of the screen recording task, and controlling the screen recording execution program to complete the screen recording task according to the second control signal by the screen recording control program.
Fig. 12 is a block diagram illustrating an exemplary embodiment of an apparatus for initiating a screen recording task. The device for starting the screen recording task can be used in the terminal to execute all or part of the steps of the method shown in the corresponding embodiment of fig. 2 or fig. 4. The device for starting the screen recording task can comprise:
a first obtaining module 1201, configured to obtain first sensor data collected by a target sensor in a terminal, where the target sensor is a sensor arranged outside a display screen in the terminal;
a first detection module 1202 for detecting a first predetermined operation performed for the target sensor in accordance with the first sensor data;
a starting module 1203, configured to start a screen recording task for display content in the display screen when the first predetermined operation is detected.
Optionally, the first detecting module 1202 is specifically configured to,
determining that the first predetermined operation is detected when the first sensor data indicates that a distance between an object in front of the target sensor and the target sensor is not greater than a preset distance threshold;
alternatively, the first and second electrodes may be,
determining that the first predetermined operation is detected when a duration of a state in which the first sensor data indicates that a distance between an object in front of the target sensor and the target sensor is not greater than a preset distance threshold exceeds a preset duration.
Optionally, the apparatus further comprises:
and the indication pattern display module is used for displaying a screen recording indication pattern in the display screen, and the screen recording indication pattern is used for indicating that the screen recording task is performed.
Optionally, the apparatus further comprises:
and the first indication information display module is used for displaying first indication information corresponding to the screen recording indication pattern, and the first indication information is used for indicating the screen recording duration corresponding to the screen recording task.
Optionally, the apparatus further comprises:
and the first ending module is used for ending the screen recording task when a second preset operation aiming at the screen recording indication pattern is received.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring second sensor data acquired by the target sensor after a screen recording task of the display screen is started;
a second detection module for detecting a third predetermined operation performed for the target sensor according to the second sensor data;
and the second ending module is used for ending the screen recording task when the third preset operation is detected.
Optionally, the apparatus further comprises:
and the second indication information display module is used for displaying second indication information in the display screen when the screen recording task is finished, wherein the second indication information is used for indicating that the screen recording task is finished.
Optionally, the first detecting module 1202 is specifically configured to, when the display screen is in a lighting state, detect a first predetermined operation performed on the target sensor according to the first sensor data.
Optionally, the starting module 1203 is specifically configured to,
when the first preset operation is detected and the application program running in the foreground is the appointed application program, starting the screen recording task;
alternatively, the first and second electrodes may be,
and when the first preset operation is detected and the currently displayed application interface is the designated application interface, starting the screen recording task.
Optionally, the apparatus further comprises:
and the guide interface display module is used for displaying an operation guide interface containing sensor position information, and the sensor position information is used for indicating the setting position of the target sensor in the terminal.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring the equipment model of the terminal before the operation guide interface is displayed;
and the query module is used for querying the sensor position information according to the equipment model of the terminal.
Optionally, the target sensor is at least one of a distance sensor or a light sensor.
To sum up, the device shown in the embodiment of the application starts or finishes the screen recording task aiming at the display content in the display screen when detecting the first predetermined operation of the sensor except for the display screen, and the screen recording starting control does not need to be displayed in the display screen, so that the display content in the display screen cannot be shielded, and the screen recording task is not easy to be started by mistake when the user carries out interactive operation in the display screen, thereby ensuring the display effect of the display content and simultaneously improving the accuracy of the screen recording task.
In addition, the device shown in the embodiment of the application indicates the position of the target sensor in the terminal through the operation guide interface, so that the user can accurately execute the operation of starting or ending the screen recording task.
Fig. 13 is a block diagram illustrating a structure of an apparatus for initiating a screen recording task according to an exemplary embodiment of the present application. The device for starting the screen recording task can be used in the terminal to execute all or part of the steps of the method shown in the corresponding embodiment of fig. 2 or fig. 4. The device for starting the screen recording task can comprise:
a starting module 1301, configured to start a screen recording task of display content in a display screen when a screen is in a lighting state and a first predetermined operation performed on a target sensor is detected, where the target sensor is a sensor arranged outside the display screen in the terminal;
a first display module 1302, configured to display a screen recording indication pattern in the display screen, where the screen recording indication pattern is used to indicate that the screen recording task is being performed.
Optionally, the apparatus further comprises:
an ending module, configured to end the screen recording task when a second predetermined operation performed on the screen recording indication pattern is detected or a third predetermined operation performed on the target sensor is detected;
and the second display module is used for displaying second indication information in the display screen, wherein the second indication information is used for indicating that the screen recording task is finished.
To sum up, the device shown in the embodiment of the application starts or finishes the screen recording task aiming at the display content in the display screen when detecting the first predetermined operation of the sensor except for the display screen, and the screen recording starting control does not need to be displayed in the display screen, so that the display content in the display screen cannot be shielded, and the screen recording task is not easy to be started by mistake when the user carries out interactive operation in the display screen, thereby ensuring the display effect of the display content and simultaneously improving the accuracy of the screen recording task.
Fig. 14 is a block diagram of a computer device 1400 according to an exemplary embodiment of the present application. The computer device 1400 may be a terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a laptop computer, or a desktop computer. Computer device 1400 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and the like.
Generally, computer device 1400 includes: a processor 1401, and a memory 1402.
Processor 1401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 1401 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1401 may also include a main processor and a coprocessor, where the main processor is a processor, also called a CPU, for processing data in an awake state; a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, processor 1401 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 1402 may include one or more computer-readable storage media, which may be non-transitory. Memory 1402 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1402 is used to store at least one instruction for execution by processor 1401 to implement the methods provided by the various method embodiments herein.
In some embodiments, computer device 1400 may also optionally include: a peripheral device interface 1403 and at least one peripheral device. The processor 1401, the memory 1402, and the peripheral device interface 1403 may be connected by buses or signal lines. Each peripheral device may be connected to the peripheral device interface 1403 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1404, a touch display 1405, a camera 1406, audio circuitry 1407, a positioning component 1408, and a power supply 1409.
The peripheral device interface 1403 can be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 1401 and the memory 1402. In some embodiments, the processor 1401, memory 1402, and peripheral interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one or both of the processor 1401, the memory 1402, and the peripheral device interface 1403 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 1404 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1404 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 1404 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1404 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 1404 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1405 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1405 is a touch display screen, the display screen 1405 also has the ability to capture touch signals at or above the surface of the display screen 1405. The touch signal may be input to the processor 1401 for processing as a control signal. At this point, the display 1405 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the display 1405 may be one, providing the front panel of the computer device 1400; in other embodiments, the display 1405 may be at least two, respectively disposed on different surfaces of the computer device 1400 or in a folded design; in still other embodiments, the display 1405 may be a flexible display disposed on a curved surface or on a folded surface of the computer device 1400. Even further, the display 1405 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display 1405 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 1406 is used to capture images or video. Optionally, camera assembly 1406 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1406 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1407 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1401 for processing or inputting the electric signals to the radio frequency circuit 1404 to realize voice communication. For stereo capture or noise reduction purposes, the microphones may be multiple and located at different locations on the computer device 1400. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is then used to convert electrical signals from the processor 1401 or the radio frequency circuit 1404 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuit 1407 may also include a headphone jack.
The Location component 1408 is operable to locate a current geographic Location of the computer device 1400 for navigation or LBS (Location Based Service). The Positioning component 1408 may be based on the Positioning component of the GPS (Global Positioning System) in the united states, the beidou System in china, or the galileo System in russia.
The power supply 1409 is used to power the various components of the computer device 1400. The power source 1409 may be alternating current, direct current, disposable or rechargeable. When the power source 1409 comprises a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, computer device 1400 also includes one or more sensors 1410. The one or more sensors 1410 include, but are not limited to: acceleration sensor 1411, gyroscope sensor 1412, pressure sensor 1413, fingerprint sensor 1414, optical sensor 1415, and proximity sensor 1416.
The acceleration sensor 1411 may detect the magnitude of acceleration on three coordinate axes of a coordinate system established with the computer apparatus 1400. For example, the acceleration sensor 1411 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1401 can control the touch display 1405 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1411. The acceleration sensor 1411 may also be used for the acquisition of motion data of a game or a user.
The gyro sensor 1412 may detect a body direction and a rotation angle of the computer device 1400, and the gyro sensor 1412 may cooperate with the acceleration sensor 1411 to collect a 3D motion of the user on the computer device 1400. The processor 1401 can realize the following functions according to the data collected by the gyro sensor 1412: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensors 1413 may be disposed on the side bezel of the computer device 1400 and/or underneath the touch display 1405. When the pressure sensor 1413 is disposed on the side frame of the computer device 1400, the user's holding signal to the computer device 1400 can be detected, and the processor 1401 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1413. When the pressure sensor 1413 is disposed at the lower layer of the touch display 1405, the processor 1401 controls the operability control on the UI interface according to the pressure operation of the user on the touch display 1405. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1414 is used for collecting a fingerprint of a user, and the processor 1401 identifies the user according to the fingerprint collected by the fingerprint sensor 1414, or the fingerprint sensor 1414 identifies the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 1401 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for, and changing settings, etc. The fingerprint sensor 1414 may be disposed on the front, back, or side of the computer device 1400. When a physical key or vendor Logo is provided on the computer device 1400, the fingerprint sensor 1414 may be integrated with the physical key or vendor Logo.
The optical sensor 1415 is used to collect ambient light intensity. In one embodiment, processor 1401 can control the display brightness of touch display 1405 based on the ambient light intensity collected by optical sensor 1415. Specifically, when the ambient light intensity is high, the display luminance of the touch display 1405 is increased; when the ambient light intensity is low, the display brightness of the touch display 1405 is turned down. In another embodiment, the processor 1401 can also dynamically adjust the shooting parameters of the camera assembly 1406 according to the intensity of the ambient light collected by the optical sensor 1415.
A proximity sensor 1416, also known as a distance sensor, is typically provided on the front panel of the computer device 1400. The proximity sensor 1416 is used to capture the distance between the user and the front of the computer device 1400. In one embodiment, the touch display 1405 is controlled by the processor 1401 to switch from a bright screen state to a dark screen state when the proximity sensor 1416 detects that the distance between the user and the front of the computer device 1400 is gradually decreasing; when the proximity sensor 1416 detects that the distance between the user and the front of the computer device 1400 is gradually increasing, the processor 1401 controls the touch display 1405 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the architecture shown in FIG. 14 is not intended to be limiting of the computer device 1400, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
In an exemplary embodiment, a non-transitory computer readable storage medium including instructions, such as a memory including at least one instruction, at least one program, set of codes, or set of instructions, executable by a processor to perform all or part of the steps of the method illustrated in the corresponding embodiment of fig. 2 or 4 is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (13)

1. A method for starting a screen recording task, which is characterized by comprising the following steps:
displaying an operation guide interface containing sensor position information, wherein the sensor position information is used for indicating the setting position of a target sensor in the terminal, and the target sensor is at least one of a distance sensor and a light sensor;
acquiring first sensor data acquired by a target sensor in the terminal, wherein the first sensor data comprises at least one of distance data and light data, and the target sensor is a sensor arranged outside a display screen in the terminal;
when the display screen is in a lighting state, and the duration of a state that the first sensor data indicate that the distance between an object in front of the target sensor and the target sensor is not greater than a preset distance threshold exceeds a preset duration, determining that a first preset operation is detected, wherein the first preset operation is an operation for triggering the start of a screen recording task;
when the first preset operation is detected, and the application program running in the foreground is a designated application program or the currently displayed application interface is a designated application interface, starting a screen recording task for the display content in the display screen;
displaying a screen recording indication pattern and first indication information corresponding to the screen recording indication pattern in the display screen, wherein the screen recording indication pattern is used for indicating that the screen recording task is in progress, and the first indication information is used for indicating the screen recording duration corresponding to the screen recording task.
2. The method of claim 1, further comprising:
and when a second preset operation aiming at the screen recording indication pattern is received, ending the screen recording task.
3. The method of claim 1, further comprising:
after a screen recording task of the display screen is started, acquiring second sensor data acquired by the target sensor;
detecting a third predetermined operation performed for the target sensor from the second sensor data;
and when the third preset operation is detected, ending the screen recording task.
4. A method according to claim 2 or 3, characterized in that the method further comprises:
and when the screen recording task is finished, displaying second indication information in the display screen, wherein the second indication information is used for indicating that the screen recording task is finished.
5. The method of claim 1, further comprising:
before the operation guide interface is displayed, acquiring the equipment model of the terminal;
and inquiring the position information of the sensor according to the equipment model of the terminal.
6. A method for starting a screen recording task, which is characterized by comprising the following steps:
displaying an operation guide interface containing sensor position information, wherein the sensor position information is used for indicating the setting position of a target sensor in the terminal, and the target sensor is at least one of a distance sensor and a light sensor;
when a display screen is in a lighting state, the duration of a state that the distance between an object in front of a target sensor and the target sensor is not more than a preset distance threshold value is detected to exceed a preset duration, and a foreground running application program is a designated application program or a currently displayed application interface is a designated application interface, starting a screen recording task for display contents in the display screen, wherein the target sensor is a sensor arranged outside the display screen in the terminal;
displaying a screen recording indication pattern and first indication information corresponding to the screen recording indication pattern in the display screen, wherein the screen recording indication pattern is used for indicating that the screen recording task is in progress, and the first indication information is used for indicating the screen recording duration corresponding to the screen recording task.
7. The method of claim 6, further comprising:
when a second predetermined operation performed on the screen recording indication pattern is detected or a third predetermined operation performed on the target sensor is detected, ending the screen recording task;
displaying second indication information in the display screen, wherein the second indication information is used for indicating that the screen recording task is finished.
8. An apparatus for initiating a screen recording task, the apparatus comprising:
the terminal comprises a guiding interface display module, a positioning module and a control module, wherein the guiding interface display module is used for displaying an operation guiding interface containing sensor position information, the sensor position information is used for indicating the setting position of a target sensor in the terminal, and the target sensor is at least one of a distance sensor and a light sensor;
the terminal comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring first sensor data acquired by a target sensor in the terminal, the first sensor data comprises at least one of distance data and light data, and the target sensor is a sensor arranged outside a display screen in the terminal;
the first detection module is used for determining that a first preset operation is detected when the display screen is in a lighting state and the duration of a state that the first sensor data indicate that the distance between an object in front of the target sensor and the target sensor is not greater than a preset distance threshold exceeds a preset duration, wherein the first preset operation is an operation for triggering the start of a screen recording task;
the starting module is used for starting a screen recording task of display contents in the display screen when the first preset operation is detected and the application program running in the foreground is a designated application program or the currently displayed application interface is a designated application interface;
the indication pattern display module is used for displaying a screen recording indication pattern in the display screen, wherein the screen recording indication pattern is used for indicating that the screen recording task is performed;
and the first indication information display module is used for displaying first indication information corresponding to the screen recording indication pattern, wherein the first indication information is used for indicating the screen recording duration corresponding to the screen recording task.
9. An apparatus for initiating a screen recording task, the apparatus comprising:
the terminal comprises a guiding interface display module, a positioning module and a control module, wherein the guiding interface display module is used for displaying an operation guiding interface containing sensor position information, the sensor position information is used for indicating the setting position of a target sensor in the terminal, and the target sensor is at least one of a distance sensor and a light sensor;
the starting module is used for starting a screen recording task of display contents in the display screen when the display screen is in a lighting state, the duration of a state that the distance between an object in front of the target sensor and the target sensor is not more than a preset distance threshold value is detected to exceed a preset duration, and a foreground running application program is a specified application program or a currently displayed application interface is a specified application interface, wherein the target sensor is a sensor arranged outside the display screen in the terminal;
the display device comprises a first display module and a second display module, wherein the first display module is used for displaying a screen recording indication pattern and first indication information corresponding to the screen recording indication pattern in the display screen, the screen recording indication pattern is used for indicating that the screen recording task is in progress, and the first indication information is used for indicating the screen recording duration corresponding to the screen recording task.
10. A computer device comprising a processor and a memory, said memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, said at least one instruction, said at least one program, said set of codes, or set of instructions being loaded and executed by said processor to implement a method of initiating a screen recording task as claimed in any one of claims 1 to 5.
11. A computer device comprising a processor and a memory, said memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, said at least one instruction, said at least one program, said set of codes, or set of instructions being loaded and executed by said processor to implement a method of initiating a screen recording task as claimed in claim 6 or 7.
12. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement a method of initiating a screen recording task according to any one of claims 1 to 5.
13. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement a method of initiating a screen recording task according to claim 6 or 7.
CN201810273329.3A 2018-03-29 2018-03-29 Method and device for starting screen recording task and computer equipment Active CN108509127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810273329.3A CN108509127B (en) 2018-03-29 2018-03-29 Method and device for starting screen recording task and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810273329.3A CN108509127B (en) 2018-03-29 2018-03-29 Method and device for starting screen recording task and computer equipment

Publications (2)

Publication Number Publication Date
CN108509127A CN108509127A (en) 2018-09-07
CN108509127B true CN108509127B (en) 2022-04-12

Family

ID=63377845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810273329.3A Active CN108509127B (en) 2018-03-29 2018-03-29 Method and device for starting screen recording task and computer equipment

Country Status (1)

Country Link
CN (1) CN108509127B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112135294A (en) * 2020-09-21 2020-12-25 Oppo广东移动通信有限公司 Wireless encryption method and client terminal equipment thereof
CN112312194B (en) * 2020-10-29 2023-06-02 努比亚技术有限公司 Screen recording data processing method, device and computer readable storage medium
CN113033292A (en) * 2021-02-02 2021-06-25 佛山市青松科技股份有限公司 Display content detection method and system of LED display screen and client

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102905026A (en) * 2012-10-11 2013-01-30 广东欧珀移动通信有限公司 Quick screen capturing method and device
CN103595876A (en) * 2013-11-26 2014-02-19 广东欧珀移动通信有限公司 Method and device for shooting image by utilizing mobile terminal
CN105653174A (en) * 2014-11-10 2016-06-08 东莞宇龙通信科技有限公司 Touch terminal screen capture method and system
CN105843508A (en) * 2016-03-31 2016-08-10 努比亚技术有限公司 Mobile terminal and screen capturing method thereof
CN105893020A (en) * 2015-12-18 2016-08-24 乐视移动智能信息技术(北京)有限公司 Screen recording starting method, screen recording starting device and mobile terminal
CN106445148A (en) * 2016-09-29 2017-02-22 努比亚技术有限公司 Method and device for triggering terminal application

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6305676B2 (en) * 2012-05-29 2018-04-04 京セラ株式会社 Electronic device, control program, and electronic device control method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102905026A (en) * 2012-10-11 2013-01-30 广东欧珀移动通信有限公司 Quick screen capturing method and device
CN103595876A (en) * 2013-11-26 2014-02-19 广东欧珀移动通信有限公司 Method and device for shooting image by utilizing mobile terminal
CN105653174A (en) * 2014-11-10 2016-06-08 东莞宇龙通信科技有限公司 Touch terminal screen capture method and system
CN105893020A (en) * 2015-12-18 2016-08-24 乐视移动智能信息技术(北京)有限公司 Screen recording starting method, screen recording starting device and mobile terminal
CN105843508A (en) * 2016-03-31 2016-08-10 努比亚技术有限公司 Mobile terminal and screen capturing method thereof
CN106445148A (en) * 2016-09-29 2017-02-22 努比亚技术有限公司 Method and device for triggering terminal application

Also Published As

Publication number Publication date
CN108509127A (en) 2018-09-07

Similar Documents

Publication Publication Date Title
CN107908929B (en) Method and device for playing audio data
CN109324739B (en) Virtual object control method, device, terminal and storage medium
CN109144346B (en) Song sharing method and device and storage medium
CN110740340B (en) Video live broadcast method and device and storage medium
CN112044065B (en) Virtual resource display method, device, equipment and storage medium
CN112822522B (en) Video playing method, device, equipment and storage medium
CN110288689B (en) Method and device for rendering electronic map
CN109982129B (en) Short video playing control method and device and storage medium
CN110933468A (en) Playing method, playing device, electronic equipment and medium
CN110007981B (en) Method and device for starting application program, electronic equipment and medium
CN108509127B (en) Method and device for starting screen recording task and computer equipment
CN110275655B (en) Lyric display method, device, equipment and storage medium
CN109783176B (en) Page switching method and device
CN111241499A (en) Application program login method, device, terminal and storage medium
CN111158575B (en) Method, device and equipment for terminal to execute processing and storage medium
CN112749590B (en) Object detection method, device, computer equipment and computer readable storage medium
CN109005359B (en) Video recording method, apparatus and storage medium
CN112118482A (en) Audio file playing method and device, terminal and storage medium
CN108966026B (en) Method and device for making video file
CN110868642A (en) Video playing method, device and storage medium
CN110688046B (en) Song playing method and device and storage medium
CN112015612B (en) Method and device for acquiring stuck information
CN110263695B (en) Face position acquisition method and device, electronic equipment and storage medium
CN110471613B (en) Data storage method, data reading method, device and system
CN108310767B (en) Information display method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant