CN110688051B - Screen recording operation method and device, computer readable storage medium and terminal - Google Patents

Screen recording operation method and device, computer readable storage medium and terminal Download PDF

Info

Publication number
CN110688051B
CN110688051B CN201910901109.5A CN201910901109A CN110688051B CN 110688051 B CN110688051 B CN 110688051B CN 201910901109 A CN201910901109 A CN 201910901109A CN 110688051 B CN110688051 B CN 110688051B
Authority
CN
China
Prior art keywords
screen recording
screen
touch
touch operation
recording operation
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
CN201910901109.5A
Other languages
Chinese (zh)
Other versions
CN110688051A (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.)
Jiekai Communications Shenzhen Co Ltd
Original Assignee
Jiekai Communications 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 Jiekai Communications Shenzhen Co Ltd filed Critical Jiekai Communications Shenzhen Co Ltd
Priority to CN201910901109.5A priority Critical patent/CN110688051B/en
Publication of CN110688051A publication Critical patent/CN110688051A/en
Application granted granted Critical
Publication of CN110688051B publication Critical patent/CN110688051B/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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/02Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
    • G11B27/031Electronic editing of digitised analogue information signals, e.g. audio or video signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Abstract

The embodiment of the application discloses screen recording operation method and device, a computer readable storage medium and a terminal, when a first touch operation of a user on a screen is detected, first operation information of the first touch operation is acquired, whether a second touch operation of the user on the screen is detected in a preset time period is judged, if yes, second operation information of the second touch operation is acquired, based on the first operation information and the second operation information, whether the first touch operation and the second touch operation meet preset operation conditions is judged, if yes, a screen recording operation instruction is triggered, and corresponding screen recording operation is executed according to the screen recording operation instruction. The method and the device can improve the efficiency of screen recording operation of the terminal.

Description

Screen recording operation method and device, computer readable storage medium and terminal
Technical Field
The application relates to the field of mobile terminal application, in particular to a screen recording operation method, a screen recording operation device, a computer readable storage medium and a terminal.
Background
Screen recording refers to recording audio and video contents being played on screens of intelligent terminals such as smart phones and tablet computers by adopting some screen recording application programs. With the wide popularization of intelligent mobile terminals such as smart phones and tablet computers, in order to keep the use traces of the terminals, users can keep playback through screen recording in the process of using the intelligent terminals.
In the prior art, many applications provide a screen recording function, and need to be manually started by a user when the three-party applications are used, and meanwhile, the three-party applications need to reside in a system background, so that the use of the user is very inconvenient, and the performance of the terminal is affected while the battery power of the terminal is partially consumed due to the fact that the three-party applications reside in the background.
Disclosure of Invention
The embodiment of the application provides a screen recording operation method and device, a computer readable storage medium and a terminal, which can improve the screen recording operation efficiency of the terminal.
The embodiment of the application provides a screen recording operation method, which comprises the following steps:
when first touch operation of a user on a screen is detected, first operation information of the first touch operation is acquired;
judging whether a second touch operation of the user on the screen is detected within a preset time period;
if so, acquiring second operation information of the second touch operation;
judging whether the first touch operation and the second touch operation meet preset operation conditions or not based on the first operation information and the second operation information;
if yes, triggering a screen recording operation instruction, and executing corresponding screen recording operation according to the screen recording operation instruction.
Correspondingly, this application embodiment still provides a record screen operating means, includes:
the device comprises a first acquisition unit, a second acquisition unit and a display unit, wherein the first acquisition unit is used for acquiring first operation information of a first touch operation when the first touch operation of a user on a screen is detected;
the first judging unit is used for judging whether a second touch operation of the user on the screen is detected within a preset time period;
a second obtaining unit, configured to obtain second operation information of the second touch operation;
a second judging unit, configured to judge whether the first touch operation and the second touch operation meet a preset operation condition based on the first operation information and the second operation information;
and the execution unit is used for triggering the screen recording operation instruction and executing corresponding screen recording operation according to the screen recording operation instruction.
Correspondingly, the embodiment of the present application further provides a computer-readable storage medium, where a plurality of instructions are stored, and the instructions are suitable for being loaded by a processor to perform the steps in the screen recording operation method as described above.
Correspondingly, the embodiment of the application further provides a terminal, which includes a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the screen recording operation method.
According to the scheme, when a first touch operation of a user on a screen is detected, first operation information of the first touch operation is acquired, whether the user is detected in a preset time period or not is judged, the second touch operation of the screen is acquired if the first touch operation is detected, second operation information of the second touch operation is acquired, based on the first operation information and the second operation information, whether the first touch operation and the second touch operation meet preset operation conditions or not is judged, if the second touch operation meets preset operation conditions, a screen recording operation instruction is triggered, and corresponding screen recording operation is executed according to the screen recording operation instruction. The method and the device can improve the efficiency of screen recording operation of the terminal.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a first screen recording operation method according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of a second screen recording operation method according to an embodiment of the present application.
Fig. 3 is a block diagram of a first screen recording operation device according to an embodiment of the present application.
Fig. 4 is a block diagram of a second screen recording operation device according to an embodiment of the present application.
Fig. 5 is a video file playing interface diagram of a screen recording operation method according to an embodiment of the present application.
Fig. 6 is a screen recording operation interface diagram of a screen recording operation method according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Based on the above problems, embodiments of the present application provide a first screen recording operation method, apparatus, computer-readable storage medium, and terminal, which can improve the screen recording efficiency of the terminal. The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a screen recording operation method according to an embodiment of the present disclosure. The screen recording operation method can be applied to mobile terminals such as mobile phones, tablet computers, notebook computers, palm computers, Portable Media Players (PMPs), and fixed terminals such as desktop computers. The specific flow of the screen recording operation method can be as follows:
101. when first touch operation of a user on a screen is detected, first operation information of the first touch operation is acquired.
In the embodiment, a first touch operation of a user on a screen is detected, wherein the screen may belong to a part of a terminal device, and the user may interact with the terminal by performing a corresponding operation on the screen. The screen may include multiple types, such as a touch screen.
Specifically, a touch screen (also called "touch screen" or "touch panel") is an inductive liquid crystal display device capable of receiving input signals such as a touch, and when a graphical button on a screen is touched, a tactile feedback system on the screen can drive various connecting devices according to a pre-programmed program, so as to replace a mechanical button panel and produce vivid video and audio effects by means of a liquid crystal display screen.
After first touch operation of a user on a screen is detected, first operation information of the first touch operation is acquired. The first touch operation of the user on the screen may be performed in multiple ways, for example, by a finger, a stylus, and the like. The first touch operation of the user on the screen can also be various, for example, the user can click the screen, press the screen for a long time, slide the screen, and the like.
For example, after the terminal detects that the user clicks the screen through a finger, first operation information of a current first touch operation may be acquired. Specifically, the first operation information may include a touch position, a touch force, and the like. By detecting the touch operation of the user on the terminal screen, the touch information of the touch operation can be quickly acquired.
102. And judging whether a second touch operation of the user on the screen is detected within a preset time period.
In the embodiment, after detecting the first touch operation of the user on the screen, whether a second touch operation of the user on the screen exists is detected within a preset time period. The preset time period may be a preset maximum time interval, that is, a maximum time difference value that allows two touch operations when the screen recording operation condition is satisfied.
Specifically, the preset time period may be set by the system, and whether the operation of the user on the screen satisfies the condition of the screen recording operation may be determined by controlling the touch operation time of the user on the screen twice in succession.
The preset time period may be a plurality of time values, for example, the preset time may be 1 second. Specifically, within 1 second after detecting the first touch operation of the user on the screen, if the touch operation of the user on the screen is detected, step 103 is executed; if the touch operation of the user on the screen is not detected, step 106 is executed.
103. And acquiring second operation information of the second touch operation.
Specifically, after the second touch operation of the user on the screen is determined to be stored in the preset time period, second operation information of the second touch operation is acquired. There are multiple ways for the user to operate the first touch on the screen, for example, the first touch may be performed by a finger, a stylus, and the like. The second touch operation of the user on the screen can also be various, for example, the user can click the screen, press the screen for a long time, slide the screen, and the like.
For example, when the terminal detects that the user clicks the screen by a finger, the second operation information of the current touch operation may be acquired. Specifically, the second operation information may include a touch position, a touch force, and the like.
104. And judging whether the first touch operation and the second touch operation meet preset operation conditions or not based on the first operation information and the second operation information.
In this embodiment, the operation information may refer to specific operation content of the user performing a touch operation on the screen, for example, the operation information may include a touch operation position, and the position may include an abscissa and an ordinate.
In some embodiments, the step of "determining whether the first touch operation and the second touch operation satisfy the preset operation condition based on the first operation information and the second operation information" may include the following steps:
determining a coordinate difference between the first position coordinate and the second position coordinate;
comparing the coordinate difference value with a preset threshold value to obtain a comparison result;
and judging whether the first touch and the second touch meet preset operation conditions or not according to the comparison result.
Specifically, a first position point is obtained according to the first operation information, the first position point may be a, and further, the coordinate of the obtained first position point a on the screen may be a first position coordinate. For example, the first position coordinate may be a (x1, y 1). Where x1 may be the abscissa of first location point A and y1 may be the ordinate of first location point A. Specifically, x1, y1 may be any number, for example, x1 may be 1,2, 3, 4, etc.; y1 can be 1,2, 3, 4, etc.; the coordinates of the first location point a may be (1, 2).
Specifically, a second position point is obtained according to the second operation information, the second position point may be a, and further, the coordinate of the second position point a on the screen may be obtained as a second position coordinate. For example, the second position coordinate may be B (x2, y 2). Where x2 may be the abscissa of first location point B and y2 may be the ordinate of first location point B. Specifically, x2, y2 may be any number, for example, x2 may be 1,2, 3, 4, etc.; y2 may be 1,2, 3, 4, the coordinates of second location point B may be (1,2), and so on.
According to the acquired first position coordinate and the acquired second position coordinate, a distance difference between the two position coordinates can be calculated. The first position coordinate and the second position coordinate can be calculated through a distance difference calculation formula between the two points. For example, the first position coordinate may be a (x1, y1), the second position coordinate may be B (x2, y2), and AB may represent a distance between the first position coordinate and the second position coordinate. The calculation formula for AB may be AB √ (X1-X2) ^2+ (Y1-Y2) ^ 2). The distance between the two positions can be obtained by obtaining the position coordinates of the first touch operation and the second touch operation and calculating the coordinates of the two positions.
Specifically, after determining a coordinate difference between the first position coordinates and the second position coordinates, the coordinate difference is compared with a preset threshold. The preset threshold may be a preset coordinate difference, that is, a maximum distance difference that allows two touch operations when the screen recording operation condition is satisfied. By controlling the touch operation coordinates of the user for the screen twice continuously, whether the operation of the user for the screen meets the condition of screen recording operation can be judged.
And comparing the coordinate difference value between the first position coordinate and the second position coordinate with a preset threshold value to obtain a comparison result. For example, the comparison result may be that the coordinate difference value is greater than a preset threshold value, the coordinate difference value is less than the preset threshold value, the coordinate difference value is equal to the preset threshold value, and the like. And further, judging whether the first touch and the second touch meet preset operation conditions according to the comparison result.
In some embodiments, the step of "determining whether the first touch and the second touch satisfy a preset operation condition according to the comparison result" may include the following process:
if the coordinate difference value is smaller than a preset threshold value, judging that the first touch operation and the second touch operation meet the preset operation condition;
and if the coordinate difference is larger than or equal to a preset threshold value, judging that the first touch operation and the second touch operation do not meet a preset operation condition.
Specifically, according to the comparison result, the coordinate difference may be smaller than the preset threshold, and the first touch operation and the second touch operation may satisfy the preset operation condition. For example, the coordinate difference may be 1 centimeter, the preset threshold may be 2 centimeters, and it may be determined that the coordinate difference is smaller than the preset threshold, and the first touch operation and the second touch operation may satisfy the preset operation condition.
Specifically, according to the comparison result, the coordinate difference may be greater than a preset threshold, and the first touch operation and the second touch operation may not satisfy the preset operation condition. For example, the coordinate difference may be 4 centimeters, the preset threshold may be 3 centimeters, and it may be determined that the coordinate difference is greater than the preset threshold, and the first touch operation and the second touch operation do not satisfy the preset operation condition.
Specifically, according to the comparison result, the coordinate difference may be equal to a preset threshold, and the first touch operation and the second touch operation may not satisfy the preset operation condition. For example, the coordinate difference may be 1 centimeter, the preset threshold may be 1 centimeter, and it may be determined that the coordinate difference is equal to the preset threshold, and the first touch operation and the second touch operation do not satisfy the preset operation condition.
Specifically, the preset threshold may be set by a system, and whether the operation of the user on the screen satisfies the condition of the screen recording operation may be determined by controlling a difference between position coordinates of two consecutive touch operations of the user on the screen. If yes, go to step 105; if not, go to step 106.
105. And triggering a screen recording operation instruction, and executing corresponding screen recording operation according to the screen recording operation instruction.
In some embodiments, before the step "triggering the screen recording operation instruction", the following process may be further included:
judging whether the first touch operation and the second touch operation are in a preset area or not based on the first operation information and the second operation information;
and if so, triggering the screen recording instruction.
Specifically, the first operation information may further include a first operation area, and the second operation information may further include a second operation area. The operation area may be an effective operation area, that is, when a user performs a touch operation in the effective area, touch information of the touch operation is acquired. The operation area can be located at multiple positions of the screen, and the area size of the operation area can be any value.
For example, the operation regions may be located at respective positions of the screen, such as up, down, left, and right; the size of the area of the operating area may be 10 square centimeters, etc.
Specifically, the acquired first operation area and the acquired second operation area are matched with a preset operation area, so that a matching result is obtained. And further, judging whether the first touch operation and the second touch operation are in a preset area according to the matching result.
For example, the preset region may be the entire screen region, and the first operation region may be located in the preset operation region; the second operation area may be located in a preset area, and it may be determined that the first touch operation and the second touch operation are located in the preset area.
When the first touch operation and the second touch operation are in the preset area, it can be determined that the first touch operation and the second touch operation meet the preset condition of the screen recording operation. Further, a screen recording operation instruction is triggered according to the first touch operation and the second touch operation, and specifically, corresponding operation is executed according to the screen recording operation instruction. By acquiring the touch operation information of the user aiming at the screen and comparing the operation information with the preset conditions, corresponding operation can be performed according to the preset conditions, and the condition that the user mistakenly operates to trigger a corresponding operation instruction is avoided.
In some embodiments, before the step "performing the corresponding screen recording operation according to the operation instruction", the following process may be included:
detecting whether the screen is currently in a screen recording state;
if so, ending screen recording operation according to the screen recording operation instruction;
and if not, starting screen recording operation according to the screen recording operation instruction.
Specifically, whether the current terminal is in a screen recording state is detected. The screen recording state may refer to that the current terminal is in the process of recording the video file. For example, a user may open a video file, and the video file is in a playing state, and is not currently in a screen recording state. For another example, the user may start a screen recording operation on the currently played video, and then the currently played video is in a screen recording state.
Specifically, when the terminal is in the screen recording state, the screen recording operation can be ended according to the screen recording operation instruction. The screen recording operation instruction may be a screen recording ending request. For example, when it is detected that the terminal is in a screen recording state, a screen recording ending request is sent through a user touch operation, and screen recording is ended for a currently played video file.
Specifically, when the terminal is not in the screen recording state, the screen recording operation can be started according to the screen recording operation instruction. The screen recording operation instruction can be a screen recording starting request. For example, when it is detected that the terminal is not in a screen recording state, a screen recording starting request is sent through touch operation of a user, and a screen recording is started for a currently played video file.
In some embodiments, after the step "ending the screen recording operation according to the screen recording operation instruction", the following process may be further included:
acquiring a video file obtained by screen recording;
determining an application program associated with the video file;
acquiring video playing parameters corresponding to the application program;
and compressing and storing the video file according to the playing parameters.
Specifically, after the screen recording is finished, a video file obtained by the screen recording is acquired. The video file can be played by various players, for example, the player can be a terminal system player, or a third party video player installed on a terminal, and the like.
Specifically, after a video file obtained by screen recording is acquired, an application program associated with the video file is determined. The associated application program may be an application program for the user to use the video file obtained by screen recording. Specifically, the application program may upload a video file obtained by screen recording to a platform on a network. For example, the associated application program may be an application program Q, the video file obtained by screen recording may be a video file a, the user may upload the video file a to the network through the application program Q, and after the upload is successful, other users may view the video file a through the application program Q.
After the application program is determined, video playing parameters of the application program are obtained. The video playing parameters may include: definition, playing speed, playing duration and other parameters, wherein the basic playing speed doubled by the playing speed may refer to the initial playing speed of the video file.
For example, the definition may be standard definition, high definition, ultra-definition, etc.; the playing speed can be 0.5 speed, 1 speed, 1.5 speed and the like; the playing time can be 15 seconds, 20 seconds and 30 seconds, and the playing time can be the time limit of different application programs for playing the video file.
Specifically, the video file is compressed and stored according to the playing parameters. For example, the video playing parameters of the application Q may be: the definition is standard definition, the playing speed is 1 time, the playing time is 20 seconds, and the playing parameters of the video file A obtained by recording the screen can be as follows: the definition is high definition, the playing speed is 1 time, the playing time is 30 seconds, the video file A obtained by screen recording can be compressed according to the playing parameters of the application program Q, namely the definition is standard definition, the playing speed is 1 time, and the playing time is 20 seconds, so that the processed compressed video file can be obtained. Furthermore, the compressed video file is stored in a terminal memory, and the video file can be used by an application program.
106. And finishing the operation.
According to the scheme, when a first touch operation of a user on a screen is detected, first operation information of the first touch operation is acquired, whether the user is detected in a preset time period or not is judged, the second touch operation of the screen is acquired if the first touch operation is detected, second operation information of the second touch operation is acquired, based on the first operation information and the second operation information, whether the first touch operation and the second touch operation meet preset operation conditions or not is judged, if the second touch operation meets preset operation conditions, a screen recording operation instruction is triggered, and corresponding screen recording operation is executed according to the screen recording operation instruction. According to the method and the device, the operation information of the touch operation of the user on the terminal screen is acquired, the acquired information is compared with the preset conditions, the screen recording operation can be quickly executed on the current video, and therefore the screen recording operation efficiency of the terminal is improved.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a second screen recording operation method according to an embodiment of the present disclosure. In this embodiment, the specific scene application of the screen recording operation method may be as follows:
201. the terminal detects that a user carries out first touch operation on a screen.
In this embodiment, a user may select a video file through a terminal, and open the selected video file, that is, see a video file interface, please refer to fig. 5, and fig. 5 is a video file playing interface diagram of a screen recording operation method according to an embodiment of the present application. The user can start playing the currently selected video file for playing by triggering the video playing button, and can enter a video playing interface. Referring to fig. 6, fig. 6 is a screen recording operation interface diagram of a screen recording operation method according to an embodiment of the present application.
The video playing modes are various, for example, the video playing modes may include a vertical screen mode, a horizontal screen mode, and the like. The interface shown on the left side of fig. 6 may be a vertical screen playing mode for video playing, and the interface shown on the right side of fig. 6 may be a horizontal screen playing mode for video playing.
Specifically, after the terminal enters the video playing interface, the user may perform a first touch operation on the video playing interface, and the user may perform the first touch operation on the video playing interface in multiple ways. For example, the user may perform operations such as clicking on a screen, long-pressing on a screen, sliding a screen, and so forth.
202. The terminal acquires first touch information and first touch time of the first touch operation.
Specifically, the video playing mode may be in a vertical screen mode or a horizontal screen mode, and after a user performs a first touch operation on a current video playing interface, the terminal obtains first touch information and first touch time of the first touch operation. The first touch information may include a first touch operation area and a first touch position.
As shown in fig. 6, when the video playback mode is in the portrait mode, the first touch operation area of the first touch operation may be area a, the first touch position may be position 1, and the first touch time may be 12 minutes, 4 minutes, and 4 seconds; when the video playback mode is in the landscape mode, the first touch operation area of the first touch operation may be area B, the first touch position may be position 3, and the first touch time may be 12 hours, 4 minutes, and 6 seconds.
203. And the terminal detects whether the user performs second touch operation on the screen.
After the user performs the first touch operation on the video playing interface, the second touch operation may be performed on the video playing interface. The first touch operation of the user on the video playing interface can be performed in various ways. For example, the user may perform operations such as clicking on a screen, long-pressing on a screen, sliding a screen, and so forth. After the user performs the second touch operation on the video playing interface, if the terminal detects that the user performs the second touch operation on the screen, step 204 may be performed; if the terminal does not detect that the user performs the second touch operation on the screen, step 210 may be executed.
204. And the terminal acquires second touch information and second touch time of the second touch operation.
Specifically, when the video playing mode can be in the vertical screen mode, after the user performs the second touch operation on the current video playing interface, the terminal acquires the second touch information and the second touch time of the second touch operation. Wherein the second touch information may include a second touch operation area and a second touch position. As shown in fig. 6, the second touch operation area of the second touch operation may be area a, the second touch position may be position 2, and the second touch time may be 12 hours, 4 minutes, and 7 seconds.
Specifically, when the video playing mode can be in the horizontal screen mode, after the user performs the second touch operation on the current video playing interface, the terminal acquires the second touch information and the second touch time of the second touch operation. Wherein the second touch information may include a second touch operation area and a second touch position. As shown in fig. 6, the second touch operation area of the second touch operation may be area B, the second touch position may be position 4, and the second touch time may be 12 hours, 4 minutes, 8 seconds.
205. And the terminal determines the time difference value between the first touch time and the second touch time and judges whether the time difference value is smaller than a preset time threshold value.
Specifically, the terminal determines a difference value between the first touch time and the second touch time. The time difference value may be a first touch time interval and a second touch time interval. For example, the first touch time may be 12 hours, 4 minutes, 6 seconds, and the second touch time may be 12 hours, 4 minutes, 8 seconds. The time difference between the first touch time and the second touch time acquired by the terminal may be 2 seconds.
After determining the time difference between the first touch time and the second touch time, comparing the time difference with a preset time threshold. The preset time threshold may be a preset maximum time interval, that is, a maximum time difference value that allows two touch operations when the screen recording operation condition is satisfied. For example, the preset time threshold may be 3 seconds, and the time difference may be 2 seconds, and it may be determined that the time difference is smaller than the preset time threshold. If the time difference is less than the predetermined time threshold, step 206 may be executed; if the time difference is greater than or equal to the predetermined time threshold, step 210 may be executed.
206. And the terminal determines the coordinate difference value of the first touch operation and the second touch operation according to the first operation information and the second operation information, and judges whether the coordinate difference value is smaller than a preset coordinate threshold value.
Specifically, a first position point is obtained according to the first operation information, the first position point may be a, and further, the coordinate of the obtained first position point a on the screen may be a first position coordinate. For example, the first position coordinate may be a (x1, y 1). Where x1 may be the abscissa of first location point A and y1 may be the ordinate of first location point A. Specifically, x1, y1 may be any number, for example, x1 may be 1,2, 3, 4, etc.; y1 may be 1,2, 3, 4, etc. the coordinates of first location point a may be (1,2), etc.
Specifically, a second position point is obtained according to the second operation information, the second position point may be a, and further, the coordinate of the second position point a on the screen may be obtained as a second position coordinate. For example, the second position coordinate may be B (x2, y 2). Where x2 may be the abscissa of first location point B and y2 may be the ordinate of first location point B. Specifically, x2, y2 may be any number, for example, x2 may be 1,2, 3, 4, etc.; y2 may be 1,2, 3, 4, etc., and the coordinates of second location point B may be (1,2), etc.
According to the acquired first position coordinate and the acquired second position coordinate, a distance difference between the two position coordinates can be calculated. The specific calculation method may refer to the above steps, which are not described herein in detail.
For example, if the first position coordinate may be a (1,2) and the second position coordinate may be B (1,2), the calculation is performed in a calculation manner, and if the distance between a and B is 0, the coordinate difference is 0 cm.
Specifically, after determining a coordinate difference between the first position coordinates and the second position coordinates, the coordinate difference is compared with a preset threshold. The preset threshold may be a preset coordinate difference, that is, a maximum distance difference that allows two touch operations when the screen recording operation condition is satisfied.
For example, the preset coordinate difference may be 1 cm, and the coordinate difference between the first position coordinate and the second position coordinate is 0 cm, it may be determined that the coordinate difference is smaller than the preset coordinate difference. If the coordinate difference is smaller than the preset coordinate difference, step 207 may be executed; if the coordinate difference is greater than or equal to the predetermined coordinate difference, step 210 may be performed.
By controlling the touch operation coordinates of the user for the screen twice continuously, whether the operation of the user for the screen meets the condition of screen recording operation can be judged.
207. And the terminal judges whether the terminal is in a screen recording state at present.
And when the terminal judges that the touch operation of the user on the video playing interface meets the preset operation condition, detecting whether the currently played video file is in a screen recording state. If yes, go to step 208; if not, go to step 209.
208. And the terminal finishes screen recording operation.
Specifically, when the terminal detects that the currently played video file can be in a screen recording state. And finishing the screen recording operation according to the screen recording operation instruction. The screen recording operation instruction may be a screen recording ending request. For example, when it is detected that the terminal is in a screen recording state, a screen recording ending request is sent through a user touch operation, and screen recording is ended for a currently played video file.
209. And the terminal starts screen recording operation.
Specifically, when the terminal detects that the currently played video file is not in the screen recording state. And the screen recording operation can be started according to the screen recording operation instruction. The screen recording operation instruction can be a screen recording starting request. For example, when it is detected that the terminal is not in a screen recording state, a screen recording starting request is sent through touch operation of a user, and a screen recording is started for a currently played video file.
According to the scheme, when a first touch operation of a user on a screen is detected, first operation information of the first touch operation is acquired, whether the user is detected in a preset time period or not is judged, the second touch operation of the screen is acquired if the first touch operation is detected, second operation information of the second touch operation is acquired, based on the first operation information and the second operation information, whether the first touch operation and the second touch operation meet preset operation conditions or not is judged, if the second touch operation meets preset operation conditions, a screen recording operation instruction is triggered, and corresponding screen recording operation is executed according to the screen recording operation instruction. According to the method and the device, the operation information of the touch operation of the user on the terminal screen is acquired, the acquired information is compared with the preset conditions, the screen recording operation can be quickly executed on the current video, and therefore the screen recording operation efficiency of the terminal is improved.
210. And finishing the operation.
In order to better implement the screen recording operation method provided by the embodiment of the present application, an embodiment of the present application further provides a device based on the screen recording operation method. The meaning of the noun is the same as that in the screen recording operation, and specific implementation details can refer to the description in the method embodiment.
Referring to fig. 3, fig. 3 is a block diagram of a first screen recording operation device according to an embodiment of the present application, including:
a first obtaining unit 301, configured to obtain first operation information of a first touch operation by a user when the first touch operation on a screen is detected;
a first judging unit 302, configured to judge whether a second touch operation of the user on the screen is detected within a preset time period;
a second obtaining unit 303, configured to obtain second operation information of the second touch operation;
a second determining unit 304, configured to determine whether the first touch operation and the second touch operation meet a preset operation condition based on the first operation information and the second operation information;
the execution unit 305 is configured to trigger a screen recording operation instruction, and execute a corresponding screen recording operation according to the screen recording operation instruction.
In some embodiments, as shown in fig. 4, fig. 4 is a block diagram of a second screen recording operation device provided in the embodiments of the present application. The second determination unit 304 may include:
a determining subunit 3041 for determining a coordinate difference between the first position coordinate and the second position coordinate;
a comparing subunit 3042, configured to compare the coordinate difference with a preset coordinate difference, so as to obtain a comparison result;
a determining subunit 3043, configured to determine whether the first touch and the second touch meet a preset operation condition according to the comparison result.
In some embodiments, the determining subunit 3043 is specifically configured to: if the coordinate difference value is smaller than a preset threshold value, judging that the first touch operation and the second touch operation meet the preset operation condition; and if the coordinate difference is larger than or equal to a preset threshold value, judging that the first touch operation and the second touch operation do not meet a preset operation condition.
In some embodiments, the execution unit 305 may include:
the detection subunit is used for detecting whether the screen is currently in a screen recording state;
the ending subunit is used for ending the screen recording operation according to the screen recording operation instruction;
and the starting subunit is used for starting screen recording operation according to the screen recording operation instruction.
In some embodiments, the screen recording operation device may further include:
the third acquisition unit is used for acquiring a video file obtained by screen recording;
a second determining unit, configured to determine an application program associated with the video file;
the fourth acquisition unit is used for acquiring the video playing parameters corresponding to the application program;
and the operation unit is used for compressing and storing the video file according to the playing parameters.
In some embodiments, the screen recording operation device may further include:
a third determining unit, configured to determine whether the first touch operation and the second touch operation are in a preset area based on the first operation information and the second operation information;
and the triggering unit is used for triggering the screen recording instruction.
According to the scheme, when a first touch operation of a user on a screen is detected, first operation information of the first touch operation is acquired, whether the user is detected in a preset time period or not is judged, the second touch operation of the screen is acquired if the first touch operation is detected, second operation information of the second touch operation is acquired, based on the first operation information and the second operation information, whether the first touch operation and the second touch operation meet preset operation conditions or not is judged, if the second touch operation meets preset operation conditions, a screen recording operation instruction is triggered, and corresponding screen recording operation is executed according to the screen recording operation instruction. According to the method and the device, the operation information of the touch operation of the user on the terminal screen is acquired, the acquired information is compared with the preset conditions, the screen recording operation can be quickly executed on the current video, and therefore the screen recording operation efficiency of the terminal is improved.
The embodiment of the application also provides a terminal. As shown in fig. 7, the terminal may include Radio Frequency (RF) circuitry 601, memory 602 including one or more computer-readable storage media, input unit 603, display unit 604, sensor 605, audio circuitry 606, Wireless Fidelity (WiFi) module 607, processor 608 including one or more processing cores, and power supply 609. Those skilled in the art will appreciate that the terminal structure shown in fig. 7 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during the process of transmitting and receiving information, and in particular, for processing the received downlink information of the base station by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to the user and various graphical user interfaces of the server, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 604 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 7 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that turns off the display panel and the backlight when the server moves to the ear.
Audio circuitry 606, speakers, and microphones may provide an audio interface between the user and the server. The audio circuit 606 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 606 and converted into audio data, which is then processed by the audio data output processor 608, and then passed through the RF circuit 601 to be sent to, for example, a terminal, or the audio data is output to the memory 602 for further processing. The audio circuitry 606 may also include an ear-bud jack to provide communication of peripheral headphones with the server.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 607, and provides wireless broadband internet access for the user. Although fig. 7 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The processor 608 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the server and processes data by operating or executing software programs and modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the handset. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The terminal also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 608 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Specifically, in this embodiment, the processor 608 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, thereby implementing various functions:
when first touch operation of a user on a screen is detected, first operation information of the first touch operation is acquired;
judging whether a second touch operation of the user on the screen is detected within a preset time period;
if so, acquiring second operation information of the second touch operation;
judging whether the first touch operation and the second touch operation meet preset operation conditions or not based on the first operation information and the second operation information;
if yes, triggering a screen recording operation instruction, and executing corresponding screen recording operation according to the screen recording operation instruction.
According to the scheme, when a first touch operation of a user on a screen is detected, first operation information of the first touch operation is acquired, whether the user is detected in a preset time period or not is judged, the second touch operation of the screen is acquired if the first touch operation is detected, second operation information of the second touch operation is acquired, based on the first operation information and the second operation information, whether the first touch operation and the second touch operation meet preset operation conditions or not is judged, if the second touch operation meets preset operation conditions, a screen recording operation instruction is triggered, and corresponding screen recording operation is executed according to the screen recording operation instruction. According to the method and the device, the operation information of the touch operation of the user on the terminal screen is acquired, the acquired information is compared with the preset conditions, the screen recording operation can be quickly executed on the current video, and therefore the screen recording operation efficiency of the terminal is improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer-readable storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute steps in any one of the screen recording operation methods provided in the embodiments of the present application. For example, the instructions may perform the steps of:
when first touch operation of a user on a screen is detected, first operation information of the first touch operation is acquired, whether second touch operation of the user on the screen is detected or not is judged within a preset time period, if yes, second operation information of the second touch operation is acquired, whether the first touch operation and the second touch operation meet preset operation conditions or not is judged based on the first operation information and the second operation information, if yes, a screen recording operation instruction is triggered, and corresponding screen recording operation is executed according to the screen recording operation instruction.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute the steps in any screen recording operation method provided in the embodiments of the present application, beneficial effects that can be achieved by any screen recording operation method provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The screen recording operation method, the screen recording operation device, the computer readable storage medium and the terminal provided by the embodiment of the application are described in detail, a specific example is applied in the description to explain the principle and the implementation of the application, and the description of the embodiment is only used for helping to understand the method and the core idea of the application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (6)

1. A screen recording operation method is characterized by comprising the following steps:
when first touch operation of a user on a screen is detected, first operation information of the first touch operation is acquired, wherein the first operation information comprises a first position coordinate;
judging whether a second touch operation of the user on the screen is detected within a preset time period;
if so, acquiring second operation information of the second touch operation, wherein the second operation information comprises a second position coordinate;
determining a coordinate difference value between the first position coordinate and the second position coordinate, and comparing the coordinate difference value with a preset threshold value;
if the coordinate difference is smaller than a preset threshold value, determining that the first touch operation and the second touch operation meet a screen recording operation condition, triggering a screen recording operation instruction based on the first touch operation and the second touch operation, and executing corresponding screen recording operation according to the screen recording operation instruction;
after the screen recording operation is completed, acquiring a video file obtained by screen recording;
determining an application program associated with the video file, wherein the application program is an application program used by the user to operate the video file;
acquiring video playing parameters corresponding to the application program;
and compressing and storing the video file according to the playing parameters.
2. The method of claim 1, further comprising:
and if the coordinate difference is larger than or equal to a preset threshold value, judging that the first touch operation and the second touch operation do not meet the screen recording operation condition.
3. The method according to claim 1, wherein the performing the corresponding screen recording operation according to the screen recording operation instruction comprises:
detecting whether the screen is currently in a screen recording state;
if so, ending screen recording operation according to the screen recording operation instruction;
and if not, starting screen recording operation according to the screen recording operation instruction.
4. A screen recording operation device, comprising:
the device comprises a first acquisition unit, a second acquisition unit and a display unit, wherein the first acquisition unit is used for acquiring first operation information of a first touch operation when the first touch operation of a user on a screen is detected, and the first operation information comprises a first position coordinate;
the first judging unit is used for judging whether a second touch operation of the user on the screen is detected within a preset time period;
a second obtaining unit, configured to obtain second operation information of the second touch operation, where the second operation information includes a second position coordinate;
the second judgment unit is used for determining a coordinate difference value between the first position coordinate and the second position coordinate and comparing the coordinate difference value with a preset threshold value;
the execution unit is used for determining that the first touch operation and the second touch operation meet a screen recording operation condition if the coordinate difference is smaller than a preset threshold, triggering a screen recording operation instruction based on the first touch operation and the second touch operation, and executing corresponding screen recording operation according to the screen recording operation instruction;
a third obtaining unit, configured to obtain a video file obtained by screen recording after the screen recording operation is completed;
a second determining unit, configured to determine an application program associated with the video file, where the application program is an application program that the user uses the video file;
the fourth acquisition unit is used for acquiring the video playing parameters corresponding to the application program;
and the operation unit is used for compressing and storing the video file according to the playing parameters.
5. A computer-readable storage medium storing instructions adapted to be loaded by a processor to perform the steps of the screen recording method according to any one of claims 1 to 3.
6. A terminal, comprising a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the screen recording operation method according to any one of claims 1 to 3.
CN201910901109.5A 2019-09-23 2019-09-23 Screen recording operation method and device, computer readable storage medium and terminal Active CN110688051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910901109.5A CN110688051B (en) 2019-09-23 2019-09-23 Screen recording operation method and device, computer readable storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910901109.5A CN110688051B (en) 2019-09-23 2019-09-23 Screen recording operation method and device, computer readable storage medium and terminal

Publications (2)

Publication Number Publication Date
CN110688051A CN110688051A (en) 2020-01-14
CN110688051B true CN110688051B (en) 2021-08-03

Family

ID=69110036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910901109.5A Active CN110688051B (en) 2019-09-23 2019-09-23 Screen recording operation method and device, computer readable storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110688051B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112596827B (en) * 2020-12-11 2022-07-29 上海闻泰信息技术有限公司 Display information extraction method and device and computer equipment
CN112954248B (en) * 2021-02-21 2022-12-02 北京津发科技股份有限公司 Multi-screen recording method and device, multi-screen equipment and computer readable storage medium
CN115243098A (en) * 2022-07-19 2022-10-25 上海联影医疗科技股份有限公司 Screen recording method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808137A (en) * 2015-01-21 2016-07-27 Lg电子株式会社 Mobile terminal and method for controlling the same
CN106095275A (en) * 2016-06-15 2016-11-09 珠海市魅族科技有限公司 A kind of screenshotss method and device
CN106598380A (en) * 2016-11-04 2017-04-26 宇龙计算机通信科技(深圳)有限公司 Screen recording method and device, and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201405363A (en) * 2012-07-26 2014-02-01 Hon Hai Prec Ind Co Ltd Application controlling system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808137A (en) * 2015-01-21 2016-07-27 Lg电子株式会社 Mobile terminal and method for controlling the same
CN106095275A (en) * 2016-06-15 2016-11-09 珠海市魅族科技有限公司 A kind of screenshotss method and device
CN106598380A (en) * 2016-11-04 2017-04-26 宇龙计算机通信科技(深圳)有限公司 Screen recording method and device, and terminal

Also Published As

Publication number Publication date
CN110688051A (en) 2020-01-14

Similar Documents

Publication Publication Date Title
WO2017202348A1 (en) Video playing method and device, and computer storage medium
CN110688051B (en) Screen recording operation method and device, computer readable storage medium and terminal
CN107172671B (en) Channel switching method, device, storage medium and terminal
CN106406924B (en) Control method and device for starting and quitting picture of application program and mobile terminal
WO2017215661A1 (en) Scenario-based sound effect control method and electronic device
CN106951143B (en) Method and device for hiding application icons
CN111966254B (en) Image shooting method and device, storage medium and terminal
CN111093259A (en) Bluetooth power adjustment method, device, storage medium and terminal
CN110221765B (en) Video file playing method and device, storage medium and terminal
CN106936516B (en) Display screen display state control method, storage medium and terminal
CN112040324A (en) Playing progress adjusting method and device, storage medium and terminal
CN111510901A (en) Power adjusting method, device, storage medium and terminal
CN109660445B (en) Message processing method, device and storage medium
CN107193551B (en) Method and device for generating image frame
CN111372003A (en) Camera switching method and device and terminal
CN112367425B (en) Volume adjusting method and device and terminal
CN106547400B (en) Method, device and terminal for reporting information
CN106294528B (en) Method and device for realizing information transmission
CN110996003B (en) Photographing positioning method and device and mobile terminal
CN110471622B (en) SD card data writing method and device, storage medium and terminal
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN112492554A (en) Data transmission method, device, storage medium and terminal
CN115185418A (en) Image processing method, image processing device, computer storage medium, equipment and system
CN111897916A (en) Voice instruction recognition method and device, terminal equipment and storage medium
CN106982177B (en) Upgrade control method, device and terminal

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