CN108769766B - Video playing control method and terminal equipment - Google Patents

Video playing control method and terminal equipment Download PDF

Info

Publication number
CN108769766B
CN108769766B CN201810695185.0A CN201810695185A CN108769766B CN 108769766 B CN108769766 B CN 108769766B CN 201810695185 A CN201810695185 A CN 201810695185A CN 108769766 B CN108769766 B CN 108769766B
Authority
CN
China
Prior art keywords
screen
touch area
video file
played
playing
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
CN201810695185.0A
Other languages
Chinese (zh)
Other versions
CN108769766A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810695185.0A priority Critical patent/CN108769766B/en
Publication of CN108769766A publication Critical patent/CN108769766A/en
Application granted granted Critical
Publication of CN108769766B publication Critical patent/CN108769766B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering

Abstract

The invention provides a video playing control method and terminal equipment, wherein the method comprises the following steps: under the condition that a video file is played through a first screen, if the touch area on the first screen is larger than that on a second screen, pausing the playing of the video file on the first screen; and/or under the condition that the video file is paused to be played on the first screen, if the touch area on the first screen is smaller than that on the second screen, the video file is resumed to be played on the first screen; wherein the touch area on the first screen and the touch area on the second screen are touch areas detected at the same time. By the video playing control method provided by the invention, the playing of the video can be automatically paused or resumed on the first screen without the operation of a user, and the operation is more convenient.

Description

Video playing control method and terminal equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a video playing control method and a terminal device.
Background
With the rapid development of terminal equipment, the terminal equipment is developed into a straight plate type from a flip type, and then, the terminal equipment is developed into a double-sided screen nowadays. On the same size terminal device, a terminal device with a double-sided screen can provide more screen area for a user, and the user can handle both sides of the terminal device.
However, in the process of playing a video through one screen of a terminal device having a dual-sided screen, if it is necessary to view or operate another screen of the terminal device, the user is usually required to process on the terminal device to pause the video playing first and then turn over the terminal device to view or operate another screen of the terminal device, and after the terminal device turns over back to the video playing screen, the user is usually required to operate (e.g., touch a pause button) on the terminal device to resume the video playing, which is inconvenient to operate.
Therefore, the problem that the video playing control mode of the terminal equipment with the double-sided screen is inconvenient to operate exists in the prior art.
Disclosure of Invention
The embodiment of the invention provides a video playing control method and terminal equipment, and aims to solve the problem that the video playing control operation of the terminal equipment with a double-sided screen is inconvenient.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a video playing control method, which is applied to a terminal device, where the terminal device includes a first screen and a second screen, and the first screen and the second screen are respectively located on two sides of the terminal device, and the method includes:
under the condition that a video file is played through the first screen, if the touch area on the first screen is larger than that on the second screen, the video file is paused to be played on the first screen; and/or
Under the condition that the video file is paused on the first screen, if the touch area on the first screen is smaller than that on the second screen, resuming playing the video file on the first screen;
wherein the touch area on the first screen and the touch area on the second screen are touch areas detected at the same time.
In a second aspect, an embodiment of the present invention further provides a terminal device. This terminal equipment includes first screen and second screen, first screen with the second screen is located respectively terminal equipment's both sides, terminal equipment still includes:
the first control module is used for pausing playing of the video file on the first screen if the touch area on the first screen is larger than the touch area on the second screen under the condition that the video file is played on the first screen; and/or
The second control module is used for resuming playing the video file on the first screen if the touch area on the first screen is smaller than the touch area on the second screen under the condition that the video file is paused to be played on the first screen;
wherein the touch area on the first screen and the touch area on the second screen are touch areas detected at the same time.
In a third aspect, an embodiment of the present invention further provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps of the video playback control method described above.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the video playback control method are implemented.
In the embodiment of the invention, under the condition that the video file is played through the first screen, if the touch area on the first screen is larger than that on the second screen, the video file is paused to be played on the first screen; and/or under the condition that the video file is paused to be played on the first screen, if the touch area on the first screen is smaller than that on the second screen, the video file is resumed to be played on the first screen; the touch area on the first screen and the touch area on the second screen are detected at the same moment, so that the video playing can be automatically paused or resumed on the first screen without the operation of a user, and the operation is convenient.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a video playing control method according to an embodiment of the present invention;
fig. 2 is a flowchart of a video playing control method according to another embodiment of the present invention;
fig. 3 is a flowchart of a video playing control method according to another embodiment of the present invention;
fig. 4 is a flowchart of a video playing control method according to another embodiment of the present invention;
fig. 5 is a structural diagram of a terminal device provided in an embodiment of the present invention;
fig. 6 is a block diagram of a terminal device according to still another embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
The embodiment of the invention provides a video playing control method which is applied to terminal equipment, wherein the terminal equipment comprises a first screen and a second screen, and the first screen and the second screen are respectively positioned on two sides of the terminal equipment. Referring to fig. 1, fig. 1 is a flowchart of a video playing control method according to an embodiment of the present invention, as shown in fig. 1, including the following steps:
step 101, under the condition that a video file is played through a first screen, if a touch area on the first screen is larger than a touch area on a second screen, playing of the video file is paused on the first screen, and/or under the condition that playing of the video file is paused on the first screen, if the touch area on the first screen is smaller than the touch area on the second screen, playing of the video file is resumed on the first screen;
wherein the touch area on the first screen and the touch area on the second screen are touch areas detected at the same time.
In the embodiment of the present invention, the first screen and the second screen may be two screens with the same size, or two screens with different sizes. Specifically, the first screen and the second screen are respectively located on two sides of the terminal device, for example, the first screen is located on a first surface of the terminal device, and the second screen is located on a second surface of the terminal device, which is away from the first surface.
In the embodiment of the present invention, the terminal Device may be a Computer, a mobile phone, a tablet personal Computer (tablet personal Computer), a Laptop Computer (Laptop Computer), a personal digital assistant (PDA for short), a Wearable Device (Wearable Device), or the like.
In practical application, by the holding characteristics of the user when using the terminal device, the current screen watched or operated by the user can be judged through the touch area on the screen. Specifically, the embodiment of the present invention may respectively obtain the touch area of the user on the first screen and the touch area of the user on the second screen, so that the screen currently viewed or operated by the user may be determined according to the touch area on the first screen and the touch area on the second screen. For example, if the touch area of the user on the first screen is larger than the touch area of the user on the second screen, it indicates that the screen currently viewed or operated by the user is the second screen, and if the touch area of the user on the first screen is smaller than the touch area of the user on the second screen, it indicates that the screen currently viewed or operated by the user is the first screen.
It should be noted that, in the embodiment of the present invention, by obtaining the touch area on the first screen and the touch area on the second screen, and determining the screen currently viewed or operated by the user according to the touch area on the first screen and the touch area on the second screen, not only the detection result is relatively accurate, but also no additional component (e.g., a camera, a gyroscope, etc.) is required, so that the implementation is relatively simple.
It should be noted that the touch area on the first screen is larger than the touch area on the second screen, and the touch areas are detected at the same time, where the same time can be understood as the same detection time, so that the accuracy of the detection result can be improved.
In an embodiment, when a video file is played through a first screen, if it is detected that a touch area on the first screen is larger than a touch area on a second screen, which indicates that a screen currently watched or operated by a user is the second screen, the video file can be paused on the first screen, so that the video file can be controlled to pause and play conveniently without user operation.
In another embodiment, when the first screen suspends playing of the video file, if it is detected that the touch area on the first screen is smaller than the touch area on the second screen, which indicates that the screen currently watched or operated by the user is the first screen, the video file can be resumed on the first screen, so that the video file can be resumed and played conveniently without user operation.
In another embodiment, when a video file is played through a first screen, if it is detected that a touch area on the first screen is larger than a touch area on a second screen, the video file may be paused on the first screen, and if it is detected that the touch area on the first screen is smaller than the touch area on the second screen after the video file is paused on the first screen, the video file may be resumed on the first screen, so that the video file may be more conveniently controlled to pause and resume without user operation.
In the video playing control method provided by the embodiment of the present invention, when a video file is played through the first screen, if a touch area on the first screen is larger than a touch area on the second screen, the video file is paused to be played on the first screen; and/or under the condition that the video file is paused to be played on the first screen, if the touch area on the first screen is smaller than that on the second screen, the video file is resumed to be played on the first screen; the touch area on the first screen and the touch area on the second screen are detected at the same moment, so that the video playing can be automatically paused or resumed on the first screen without the operation of a user, and the operation is convenient.
Referring to fig. 2, fig. 2 is a flowchart of a video playing control method according to another embodiment of the present invention. In this embodiment of the present invention, in a case where a video file is played through a first screen, if a touch area on the first screen is larger than a touch area on a second screen, after the video file is paused to be played through the first screen, the method further includes: masking touch inputs on the first screen; or extinguish the first screen.
As shown in fig. 2, the video playing control method provided in the embodiment of the present invention includes the following steps:
step 201, under the condition that the video file is played through the first screen, if the touch area on the first screen is larger than the touch area on the second screen, the video file is paused to be played on the first screen.
This step is the same as the step 101, and is not described herein again to avoid repetition.
Step 202, shielding the touch input on the first screen, or turning off the first screen.
In an embodiment, after the video playing on the first screen is paused, the touch input on the first screen may be masked, that is, no response is made to the touch input on the first screen by the user, so that the misoperation of the user on the first screen may be avoided.
In another embodiment, after the video playing is paused on the first screen, the first screen can be turned off, so that on one hand, misoperation of a user on the first screen can be avoided, on the other hand, the electric quantity can be saved, and the endurance time of the terminal equipment is prolonged.
In the embodiment of the present invention, when the video file is played through the first screen, if the touch area on the first screen is larger than the touch area on the second screen, after the video file is paused to be played on the first screen, the touch input on the first screen is further shielded, or the first screen is turned off, so that the misoperation of the user on the first screen can be avoided.
Optionally, after step 101 or step 201, in the case that the video file is played through the first screen, if the touch area on the first screen is larger than the touch area on the second screen, after the video file is paused to be played on the first screen, the method further includes:
masking touch inputs on the first screen;
if the change of the size relationship between the touch area on the first screen and the touch area on the second screen is not detected within a first preset time period after the moment that the touch area on the first screen is detected to be larger than the touch area on the second screen, turning off the first screen.
In an actual situation, there are some scenarios, a user only turns over the terminal device to view a message on another screen, and at this time, the terminal device is usually turned over again to continue to view a video, and if the user directly turns off the screen, the user cannot continue to view the video after turning over the terminal device again, so that at this time, only the touch input on the screen can be shielded, so as to avoid the user's misoperation. There are some scenes that a user is attracted by another screen content when turning over the terminal device to view or operate another screen, and at this time, the user usually turns over the terminal device again for a long time to continue watching the video, or even does not continue watching the video, and at this time, in order to save the electric quantity of the terminal device, the screen can be turned off.
In the embodiment of the present invention, the first preset time period may be reasonably set according to actual requirements, for example, 30 seconds, 1 minute, and the like. Optionally, in the embodiment of the present invention, timing may be performed when it is detected that the touch area on the first screen is larger than the touch area on the second screen, and the timing is restarted until it is detected that the touch area on the first screen is smaller than the touch area on the second screen, or a time when a size relationship between the touch area on the first screen and the touch area on the second screen is detected to be changed each time (that is, a time when the terminal device is turned over) may be recorded, so that a holding duration that the touch area on the first screen is larger than the touch area on the second screen may be obtained.
In the embodiment of the invention, after the video file is paused on the first screen, the touch input on the first screen can be shielded, that is, the touch input of the user on the first screen is not responded, so that the misoperation of the user on the first screen can be avoided. If the size relation between the touch area on the first screen and the touch area on the second screen is not detected to be changed within a first preset time period after the moment that the touch area on the first screen is detected to be larger than the touch area on the second screen, namely the terminal equipment is not detected to turn over, the first screen can be turned off, so that the electric quantity is saved, and the endurance time of the terminal equipment is prolonged.
Optionally, if it is detected that the size relationship between the touch area on the first screen and the touch area on the second screen changes within a first preset time period after the time when the touch area on the first screen is detected to be larger than the touch area on the second screen, that is, the terminal device is detected to be turned over, the state of the first screen may be recovered. For example, resuming playing a video file on a first screen unmasks touch input on the first screen. In addition, the embodiment of the invention can also shield the touch input on the second screen.
Optionally, in the case that the video file is played on the first screen, if the touch area on the first screen is larger than the touch area on the second screen, after the video file is paused to be played on the first screen, the method further includes:
if the size relation between the touch area on the first screen and the touch area on the second screen is not detected to be changed within a second preset time length after the moment that the touch area on the first screen is detected to be larger than the touch area on the second screen, detecting whether a display interface of the second screen is a preset interface or not;
and if the display interface of the second screen is not the preset interface, displaying a floating window on the display interface of the second screen, and playing the video file in the floating window.
In the embodiment of the present invention, the second preset time period may be reasonably set according to actual requirements, for example, 30 seconds, 1 minute, and the like. The preset interface can comprise a game interface or a video interface and the like.
In the embodiment of the present invention, if it is not detected that the size relationship between the touch area on the first screen and the touch area on the second screen changes within a second preset time period after the time when the touch area on the first screen is detected to be larger than the touch area on the second screen, that is, the terminal device is not detected to be turned over, it may be detected whether the display interface of the second screen is a preset interface, for example, it may be determined whether the display interface of the second screen is a preset interface in an image detection manner, or it may be determined whether an application program running in a foreground of the second screen is a preset application program (for example, a game application program or a video application program, etc.) to determine whether the display interface of the second screen is a preset interface. Under the condition that the display interface of the second screen is determined not to be the preset interface, a floating window can be displayed on the display interface of the second screen, and the video file played on the first screen before is played in the floating window, so that the user can conveniently continue to watch the video, and the current operation of the user is not influenced. It should be noted that, in the case that the display interface of the second screen is the preset interface, the process may be ended.
It can be understood that the initial size and the initial position of the floating window can be reasonably set according to actual requirements, and in addition, the size and the position of the floating window can be adjusted according to the dragging operation of a user.
Optionally, in order to improve flexibility of video playing control, in a case that the display interface of the second screen is not the preset interface, prompt information may be input on the second screen to prompt a user whether to continue to watch the video on the current screen, and if an instruction for continuing to watch the video is received, a floating window may be displayed on the display interface of the second screen, and the video file is played in the floating window.
In the embodiment of the present invention, if it is not detected that the size relationship between the touch area on the first screen and the touch area on the second screen changes within a second preset time period after the time when the touch area on the first screen is detected to be greater than the touch area on the second screen, and it is determined that the display interface of the second screen is not the preset interface, a floating window is displayed on the display interface of the second screen, and a video file played on the first screen before the floating window is played is displayed in the floating window, so that not only is it convenient for a user to continue to watch a video, but also the current operation of the user is not affected.
Optionally, under the condition that the video file is played through the first screen, if the touch area on the first screen is larger than the touch area on the second screen, the pausing of playing the video file on the first screen includes:
under the condition that a video file is played through the first screen, if it is detected that the touch area on the first screen is larger than the touch area on the second screen and the duration of the state that the touch area on the first screen is larger than the touch area on the second screen reaches a third preset duration, pausing the playing of the video file on the first screen;
if the touch area on the first screen is smaller than the touch area on the second screen under the condition that the video file is paused on the first screen, resuming playing the video file on the first screen, including:
under the condition that the video file is paused on the first screen, if it is detected that the touch area on the first screen is smaller than the touch area on the second screen and the duration of the state that the touch area on the first screen is smaller than the touch area on the second screen reaches a fourth preset duration, resuming playing the video file on the first screen.
In the embodiment of the present invention, both the third preset time and the fourth preset time may be reasonably set according to actual requirements, for example, the third preset time may be 3 seconds, 5 seconds, and the like, and the fourth preset time may be 3 seconds, 5 seconds, and the like.
In the embodiment of the invention, when the condition that the touch area on the first screen is larger than the touch area on the second screen and the duration of the state that the touch area on the first screen is larger than the touch area on the second screen reaches a third preset duration is detected, the video file is paused on the first screen, so that not only can some misoperation be reduced, but also the phenomenon that the playing of the video file is interrupted under the condition that a user turns over the terminal equipment and then turns back quickly can be avoided, and the continuity of watching the video by the user is influenced.
In the embodiment of the invention, when the video file is paused to be played on the first screen, if it is detected that the touch area on the first screen is smaller than the touch area on the second screen and the duration of the state that the touch area on the first screen is smaller than the touch area on the second screen reaches a fourth preset duration, the video file is resumed to be played on the first screen, so that not only can some misoperation be reduced, but also the video file can be prevented from being played more intermittently under the condition that a user turns over the terminal device and then turns back quickly.
The following describes embodiments of the present invention with reference to examples:
referring to fig. 3, the video playing control method provided by the embodiment of the present invention includes the following steps:
step 301, playing a video file on a first screen.
In practical applications, when a file is played through a first screen, a touch area of a user on the first screen is generally smaller than a touch area of the user on a second screen.
Step 302, detecting whether the terminal equipment is turned over.
In the embodiment of the present invention, step 303 is executed when it is detected that the terminal device is turned over, otherwise step 302 may be continuously executed.
In the embodiment of the invention, the touch area of the user on the first screen and the touch area of the user on the second screen can be respectively obtained, so that whether the terminal equipment is turned over or not can be judged according to the touch area on the first screen and the touch area on the second screen.
For example, if the touch area on the first screen is detected to be larger than the touch area on the second screen, it is determined that the terminal device is turned over, otherwise, it is determined that the terminal device is not turned over.
Step 303, pausing the playing of the video file on the first screen.
The embodiment of the invention can detect whether the terminal equipment is turned over or not under the condition of playing the video file, and automatically pause the video file which is currently played without additional operation of a user if the terminal equipment is turned over, thereby reducing the operation steps of the user.
Referring to fig. 4, the video playing control method provided by the embodiment of the present invention includes the following steps:
step 401, playing a video file on a first screen.
In practical applications, when a file is played through a first screen, a touch area of a user on the first screen is generally smaller than a touch area of the user on a second screen.
And 402, detecting whether the terminal equipment is overturned.
In the embodiment of the present invention, step 403 is executed when it is detected that the terminal device is turned over, otherwise step 402 may be continuously executed.
And step 403, pausing the playing of the video file on the first screen.
Step 404, masking the input on the first screen.
In the embodiment of the invention, the input shielded on the first screen can mean that the first screen is displayed normally but does not respond to any operation.
Alternatively, this step may be replaced by turning off the first screen.
And 405, detecting whether the terminal equipment is overturned.
In the embodiment of the present invention, step 406 is executed when it is detected that the terminal device is turned over, otherwise step 405 may be continuously executed.
And step 406, resuming to play the video file on the first screen.
In the embodiment of the invention, the misoperation of a user can be prevented by shielding the input of the first screen. In addition, when the user turns the terminal equipment to return to the first screen again, the video file playing can be automatically recovered without any additional operation of the user.
Referring to fig. 5, fig. 5 is a structural diagram of a terminal device according to an embodiment of the present invention. The terminal equipment comprises a first screen and a second screen, and the first screen and the second screen are respectively located on two sides of the terminal equipment. As shown in fig. 5, the terminal device 500 includes: a first control module 501 and/or a second control module 502, wherein:
a first control module 501, configured to, in a case that a video file is played through the first screen, pause playing the video file on the first screen if a touch area on the first screen is larger than a touch area on the second screen; and/or
A second control module 502, configured to, when the video file is paused on the first screen, resume playing the video file on the first screen if a touch area on the first screen is smaller than a touch area on the second screen;
wherein the touch area on the first screen and the touch area on the second screen are touch areas detected at the same time.
Optionally, the terminal device further includes:
a first shielding module, configured to shield, when a video file is played through the first screen, a touch input on the first screen after the video file is paused to be played on the first screen if a touch area on the first screen is larger than a touch area on the second screen; or
A first turning-off module, configured to, under the condition that the video file is played through the first screen, turn off the first screen after the video file is paused to be played on the first screen if a touch area on the first screen is larger than a touch area on the second screen.
Optionally, the terminal device further includes:
a second screen module, configured to mask a touch input on the first screen after the video file is paused to be played on the first screen if a touch area on the first screen is larger than a touch area on the second screen in a case where the video file is played on the first screen;
and a second turning-off module, configured to turn off the first screen if it is not detected that a size relationship between a touch area on the first screen and a touch area on the second screen changes within a first preset time period after the time when the touch area on the first screen is detected to be larger than the touch area on the second screen.
Optionally, referring to fig. 6, the terminal device further includes:
a detecting module 503, configured to, when the video file is played on the first screen, if the touch area on the first screen is larger than the touch area on the second screen, after the video file is paused on the first screen, if the size relationship between the touch area on the first screen and the touch area on the second screen is not detected to change within a second preset time period after the time when the touch area on the first screen is detected to be larger than the touch area on the second screen, detect whether a display interface of the second screen is a preset interface;
a display module 504, configured to display a floating window on the display interface of the second screen and play the video file in the floating window if the display interface of the second screen is not the preset interface.
Optionally, the first control module is specifically configured to:
under the condition that a video file is played through the first screen, if it is detected that the touch area on the first screen is larger than the touch area on the second screen and the duration of the state that the touch area on the first screen is larger than the touch area on the second screen reaches a third preset duration, pausing the playing of the video file on the first screen;
the second control module is specifically configured to:
under the condition that the video file is paused on the first screen, if it is detected that the touch area on the first screen is smaller than the touch area on the second screen and the duration of the state that the touch area on the first screen is smaller than the touch area on the second screen reaches a fourth preset duration, resuming playing the video file on the first screen.
The terminal device 500 provided in the embodiment of the present invention can implement each process implemented by the terminal device in the method embodiments of fig. 1 to fig. 4, and is not described herein again to avoid repetition.
In the terminal device 500 of the embodiment of the present invention, the first control module 501 is configured to, when a video file is played through the first screen, pause playing the video file on the first screen if a touch area on the first screen is larger than a touch area on the second screen; and/or a second control module 502, configured to, when the video file is paused on the first screen, resume playing the video file on the first screen if the touch area on the first screen is smaller than the touch area on the second screen; the touch area on the first screen and the touch area on the second screen are detected at the same moment, so that the video playing can be automatically paused or resumed on the first screen without the operation of a user, and the operation is convenient.
Fig. 7 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention. Referring to fig. 7, the terminal device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, a power supply 711, and the like. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 7 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like. The display unit 706 includes a first screen and a second screen.
The processor 710 is configured to, in a case that a video file is played through the first screen, pause playing the video file on the first screen if a touch area on the first screen is larger than a touch area on the second screen; and/or under the condition that the video file is paused to be played on the first screen, if the touch area on the first screen is smaller than that on the second screen, the video file is resumed to be played on the first screen; wherein the touch area on the first screen and the touch area on the second screen are touch areas detected at the same time.
In the embodiment of the invention, the video playing can be automatically paused or resumed on the first screen without the operation of a user, so that the operation is more convenient.
Optionally, the processor 710 is further configured to:
in the case of playing the video file through the first screen, if the touch area on the first screen is larger than the touch area on the second screen, shielding the touch input on the first screen after the video file is paused to be played on the first screen; or
And under the condition that the video file is played through the first screen, if the touch area on the first screen is larger than that on the second screen, after the video file is paused to be played on the first screen, the first screen is extinguished.
Optionally, the processor 710 is further configured to:
in the case of playing the video file through the first screen, if the touch area on the first screen is larger than the touch area on the second screen, shielding the touch input on the first screen after the video file is paused to be played on the first screen;
if the change of the size relationship between the touch area on the first screen and the touch area on the second screen is not detected within a first preset time period after the moment that the touch area on the first screen is detected to be larger than the touch area on the second screen, turning off the first screen.
Optionally, the processor 710 is further configured to:
under the condition that the video file is played on the first screen, if the touch area on the first screen is larger than the touch area on the second screen, after the video file is paused on the first screen, if the size relation between the touch area on the first screen and the touch area on the second screen is not detected to be changed within a second preset time period after the moment that the touch area on the first screen is detected to be larger than the touch area on the second screen, detecting whether a display interface of the second screen is a preset interface or not;
and if the display interface of the second screen is not the preset interface, displaying a floating window on the display interface of the second screen, and playing the video file in the floating window.
Optionally, the processor 710 is further configured to:
under the condition that a video file is played through the first screen, if it is detected that the touch area on the first screen is larger than the touch area on the second screen and the duration of the state that the touch area on the first screen is larger than the touch area on the second screen reaches a third preset duration, pausing the playing of the video file on the first screen;
under the condition that the video file is paused on the first screen, if it is detected that the touch area on the first screen is smaller than the touch area on the second screen and the duration of the state that the touch area on the first screen is smaller than the touch area on the second screen reaches a fourth preset duration, resuming playing the video file on the first screen.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 710; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 701 may also communicate with a network and other devices through a wireless communication system.
The terminal device provides the user with wireless broadband internet access through the network module 702, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output related to a specific function performed by the terminal device 700 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive audio or video signals. The input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics processor 7041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 706. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 701 in case of a phone call mode.
The terminal device 700 further comprises at least one sensor 705, such as light sensors, motion sensors and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the luminance of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 7061 and/or a backlight when the terminal device 700 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 705 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 706 is used to display information input by the user or information provided to the user. The Display unit 706 may include a Display panel 7061, and the Display panel 7061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 707 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch processing by a user on or near the touch panel 7071 (e.g., processing by a user on or near the touch panel 7071 using a finger, stylus, or any other suitable object or attachment). The touch panel 7071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects signals brought by touch processing and transmits the signals to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch process on or near the touch panel 7071, the touch process is transmitted to the processor 710 to determine a type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although in fig. 7, the touch panel 7071 and the display panel 7061 are implemented as two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the terminal device, which is not limited herein.
The interface unit 708 is an interface for connecting an external device to the terminal apparatus 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 700 or may be used to transmit data between the terminal apparatus 700 and the external device.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a storage program area and a storage data area, wherein the storage program area may store a processing system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 709 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.
The processor 710 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby performing overall monitoring of the terminal device. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor, which mainly handles processing systems, user interfaces, applications, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The terminal device 700 may further include a power supply 711 (e.g., a battery) for supplying power to various components, and preferably, the power supply 711 may be logically connected to the processor 710 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 700 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a terminal device, which includes a processor 710, a memory 709, and a computer program stored in the memory 709 and capable of running on the processor 710, where the computer program is executed by the processor 710 to implement each process of the above-mentioned video playing control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the video playing control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. A video playing control method is applied to terminal equipment, wherein the terminal equipment comprises a first screen and a second screen, the first screen and the second screen are respectively positioned on two sides of the terminal equipment, and the method comprises the following steps:
under the condition that a video file is played through the first screen, if the touch area on the first screen is larger than that on the second screen, the video file is paused to be played on the first screen;
under the condition that the video file is paused on the first screen, if the touch area on the first screen is smaller than that on the second screen, resuming playing the video file on the first screen;
wherein the touch area on the first screen and the touch area on the second screen are touch areas detected at the same time;
in the case that the video file is played on the first screen, if the touch area on the first screen is larger than the touch area on the second screen, after the video file is paused to be played on the first screen, the method further includes:
if the size relation between the touch area on the first screen and the touch area on the second screen is not detected to be changed within a second preset time length after the moment that the touch area on the first screen is detected to be larger than the touch area on the second screen, detecting whether a display interface of the second screen is a preset interface or not;
and if the display interface of the second screen is not the preset interface, displaying a floating window on the display interface of the second screen, and playing the video file in the floating window.
2. The method according to claim 1, wherein in the case of playing a video file through the first screen, if a touch area on the first screen is larger than a touch area on the second screen, after the first screen pauses playing the video file, the method further comprises:
masking touch inputs on the first screen; or
And extinguishing the first screen.
3. The method according to claim 1, wherein in the case of playing a video file through the first screen, if a touch area on the first screen is larger than a touch area on the second screen, after the first screen pauses playing the video file, the method further comprises:
masking touch inputs on the first screen;
if the change of the size relationship between the touch area on the first screen and the touch area on the second screen is not detected within a first preset time period after the moment that the touch area on the first screen is detected to be larger than the touch area on the second screen, turning off the first screen.
4. The method according to claim 1, wherein in the case of playing the video file through the first screen, if the touch area on the first screen is larger than the touch area on the second screen, the pausing the playing of the video file on the first screen comprises:
under the condition that a video file is played through the first screen, if it is detected that the touch area on the first screen is larger than the touch area on the second screen and the duration of the state that the touch area on the first screen is larger than the touch area on the second screen reaches a third preset duration, pausing the playing of the video file on the first screen;
if the touch area on the first screen is smaller than the touch area on the second screen under the condition that the video file is paused on the first screen, resuming playing the video file on the first screen, including:
under the condition that the video file is paused on the first screen, if it is detected that the touch area on the first screen is smaller than the touch area on the second screen and the duration of the state that the touch area on the first screen is smaller than the touch area on the second screen reaches a fourth preset duration, resuming playing the video file on the first screen.
5. A terminal device, characterized in that, terminal device includes first screen and second screen, first screen with the second screen is located respectively terminal device's both sides, terminal device includes:
the first control module is used for pausing playing of the video file on the first screen if the touch area on the first screen is larger than the touch area on the second screen under the condition that the video file is played on the first screen; the second control module is used for resuming playing the video file on the first screen if the touch area on the first screen is smaller than the touch area on the second screen under the condition that the video file is paused to be played on the first screen;
wherein the touch area on the first screen and the touch area on the second screen are touch areas detected at the same time;
the terminal device further includes:
a detecting module, configured to, when a video file is played on the first screen, if a touch area on the first screen is larger than a touch area on the second screen, after the video file is paused on the first screen, if a change in a size relationship between the touch area on the first screen and the touch area on the second screen is not detected within a second preset time period after a time when the touch area on the first screen is detected to be larger than the touch area on the second screen, detect whether a display interface of the second screen is a preset interface;
and the display module is used for displaying a floating window on the display interface of the second screen and playing the video file in the floating window if the display interface of the second screen is not the preset interface.
6. The terminal device according to claim 5, wherein the terminal device further comprises:
a first shielding module, configured to shield, when a video file is played through the first screen, a touch input on the first screen after the video file is paused to be played on the first screen if a touch area on the first screen is larger than a touch area on the second screen; or
A first turning-off module, configured to, under the condition that the video file is played through the first screen, turn off the first screen after the video file is paused to be played on the first screen if a touch area on the first screen is larger than a touch area on the second screen.
7. The terminal device according to claim 5, wherein the terminal device further comprises:
a second screen module, configured to mask a touch input on the first screen after the video file is paused to be played on the first screen if a touch area on the first screen is larger than a touch area on the second screen in a case where the video file is played on the first screen;
and a second turning-off module, configured to turn off the first screen if it is not detected that a size relationship between a touch area on the first screen and a touch area on the second screen changes within a first preset time period after the time when the touch area on the first screen is detected to be larger than the touch area on the second screen.
8. The terminal device of claim 5, wherein the first control module is specifically configured to:
under the condition that a video file is played through the first screen, if it is detected that the touch area on the first screen is larger than the touch area on the second screen and the duration of the state that the touch area on the first screen is larger than the touch area on the second screen reaches a third preset duration, pausing the playing of the video file on the first screen;
the second control module is specifically configured to:
under the condition that the video file is paused on the first screen, if it is detected that the touch area on the first screen is smaller than the touch area on the second screen and the duration of the state that the touch area on the first screen is smaller than the touch area on the second screen reaches a fourth preset duration, resuming playing the video file on the first screen.
9. A terminal device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the video playback control method according to any one of claims 1 to 4.
CN201810695185.0A 2018-06-29 2018-06-29 Video playing control method and terminal equipment Active CN108769766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810695185.0A CN108769766B (en) 2018-06-29 2018-06-29 Video playing control method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810695185.0A CN108769766B (en) 2018-06-29 2018-06-29 Video playing control method and terminal equipment

Publications (2)

Publication Number Publication Date
CN108769766A CN108769766A (en) 2018-11-06
CN108769766B true CN108769766B (en) 2020-09-22

Family

ID=63974883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810695185.0A Active CN108769766B (en) 2018-06-29 2018-06-29 Video playing control method and terminal equipment

Country Status (1)

Country Link
CN (1) CN108769766B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109814822B (en) * 2018-12-24 2021-08-24 维沃移动通信有限公司 Multimedia play control method and device and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106168891A (en) * 2016-06-30 2016-11-30 努比亚技术有限公司 Screen content switching device, double screen terminal and screen content changing method
CN106210274A (en) * 2016-06-29 2016-12-07 努比亚技术有限公司 A kind of double display unit, method and mobile terminal
CN106775536A (en) * 2016-12-26 2017-05-31 宇龙计算机通信科技(深圳)有限公司 A kind of double screen changing method and device
WO2018076506A1 (en) * 2016-10-25 2018-05-03 华为技术有限公司 Method for lighting up screen of double-screen terminal, and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101688942B1 (en) * 2010-09-03 2016-12-22 엘지전자 주식회사 Method for providing user interface based on multiple display and mobile terminal using this method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210274A (en) * 2016-06-29 2016-12-07 努比亚技术有限公司 A kind of double display unit, method and mobile terminal
CN106168891A (en) * 2016-06-30 2016-11-30 努比亚技术有限公司 Screen content switching device, double screen terminal and screen content changing method
WO2018076506A1 (en) * 2016-10-25 2018-05-03 华为技术有限公司 Method for lighting up screen of double-screen terminal, and terminal
CN106775536A (en) * 2016-12-26 2017-05-31 宇龙计算机通信科技(深圳)有限公司 A kind of double screen changing method and device

Also Published As

Publication number Publication date
CN108769766A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
EP4047940A1 (en) Screencast control method and electronic device
CN107734175B (en) Notification message prompting method and mobile terminal
CN109032445B (en) Screen display control method and terminal equipment
CN108628515B (en) Multimedia content operation method and mobile terminal
CN109710349B (en) Screen capturing method and mobile terminal
CN109407948B (en) Interface display method and mobile terminal
CN109558046B (en) Information display method and terminal equipment
CN108196753B (en) Interface switching method and mobile terminal
CN108762877B (en) Control method of mobile terminal interface and mobile terminal
CN110062273B (en) Screenshot method and mobile terminal
CN110221795B (en) Screen recording method and terminal
CN111443815A (en) Vibration reminding method and electronic equipment
CN110784652A (en) Video shooting method and device, electronic equipment and storage medium
CN108681413B (en) Control method of display module and mobile terminal
US20230037238A1 (en) Audio output mode switching method and electronic device
CN111078186A (en) Playing method and electronic equipment
CN110769303A (en) Playing control method and device and mobile terminal
CN109933267B (en) Method for controlling terminal equipment and terminal equipment
CN109445589B (en) Multimedia file playing control method and terminal equipment
CN111061404A (en) Control method and first electronic device
CN108540642B (en) Mobile terminal and operation method thereof
CN110597437A (en) Screen capturing method and terminal equipment
CN108235084B (en) Video playing method and mobile terminal
CN109361939B (en) Video playing method and terminal equipment
CN109902232B (en) Display control method 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