CN112306338A - Video exit method and device and electronic equipment - Google Patents
Video exit method and device and electronic equipment Download PDFInfo
- Publication number
- CN112306338A CN112306338A CN201910833425.3A CN201910833425A CN112306338A CN 112306338 A CN112306338 A CN 112306338A CN 201910833425 A CN201910833425 A CN 201910833425A CN 112306338 A CN112306338 A CN 112306338A
- Authority
- CN
- China
- Prior art keywords
- sliding
- preset
- video
- speed
- distance
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
Abstract
The present disclosure provides a video exit method, a device and an electronic device, wherein the method includes: the method comprises the steps of responding to a received sliding operation of a user on a video playing interface of a video, and obtaining sliding data, wherein the sliding data comprises a sliding speed; determining whether the slip speed is greater than a preset speed threshold; and in response to the fact that the sliding speed is larger than the preset speed threshold value, the video playing state is quitted, the function of quitting the video playing quickly and conveniently is achieved, the video quitting operation is simplified, and the user experience is improved.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a video exit method and apparatus, and an electronic device.
Background
With the development and popularization of personal computers and portable terminals, more and more users use intelligent terminal devices, such as smart phones, tablet computers and the like. The user can browse text information, picture information, video information and the like by using the equipment.
When the terminal device is used for video playing, the user may quit the video playing. In order to implement the exit of video playing, a user needs to execute operations such as clicking a return button in a video playing interface, confirming the exit, and the like.
Disclosure of Invention
The disclosure provides a video quitting method and device and electronic equipment, so as to simplify the operation of quitting video playing and improve the user experience.
In a first aspect, an embodiment of the present disclosure provides a video exit method, where the method includes: the method comprises the steps of responding to a received sliding operation of a user on a video playing interface of a video, and obtaining sliding data, wherein the sliding data comprises a sliding speed; determining whether the slip speed is greater than a preset speed threshold; and exiting the playing state of the video in response to determining that the sliding speed is greater than a preset speed threshold.
In a second aspect, an embodiment of the present disclosure provides a video exit device, including: the acquisition module is used for responding to the received sliding operation of a user on a video playing interface of the video and acquiring sliding data, wherein the sliding data comprises sliding speed; the determining module is used for determining whether the sliding speed is greater than a preset speed threshold value; and the exit module is used for exiting the playing state of the video in response to the fact that the sliding speed is larger than the preset speed threshold value.
In a third aspect, an electronic device includes: one or more processors; a storage device having one or more programs stored thereon which, when executed by the one or more processors, cause the one or more processors to implement the video exit method of the first aspect.
In a fourth aspect, the present disclosure provides a non-transitory computer-readable storage medium, on which executable instructions are stored, and when the executable instructions are executed on a processor, the video exit method according to the first aspect is implemented.
According to the video quitting method, the video quitting device and the electronic equipment, sliding data are obtained by responding to the received sliding operation of a user on a video playing interface of a video, wherein the sliding data comprise sliding speed; then, determining whether the sliding speed is greater than a preset speed threshold value; and finally, in response to determining that the sliding speed is greater than a preset speed threshold, exiting the playing state of the video. Therefore, the operation of exiting the video playing is simplified, and the user experience is improved.
Drawings
The accompanying drawings are included to provide a better understanding of the present disclosure, and are not to be construed as limiting the present disclosure in any way, wherein:
FIG. 1 is a flow diagram for one embodiment of a video exit method according to the present disclosure;
FIG. 2 is a flow diagram of another embodiment of a video exit method according to the present disclosure;
FIG. 3 is a flow diagram of another embodiment of a video exit method according to the present disclosure;
FIG. 4 is a flow diagram of another embodiment of a video exit method according to the present disclosure;
FIG. 5 is a schematic block diagram illustrating one embodiment of a video exit device according to the present disclosure;
FIG. 6 is a system architecture diagram of a video exit device according to the present disclosure;
FIG. 7 is a schematic block diagram of an electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect. The term 'include' and its variants, as used herein, are open-ended, i.e. 'include, but are not limited to'. The term 'based on' is 'based at least in part on'. The term 'one embodiment' means 'at least one embodiment'; the term 'another embodiment' means 'at least one further embodiment'; the term 'some embodiments' means 'at least some embodiments'. Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first," "second," and the like in this disclosure are only used for distinguishing different devices, modules, or units, and are not used for limiting the order or interdependence of the functions performed by these groups of devices, modules, or units.
It is noted that references to 'a' or 'a' modification in this disclosure are illustrative rather than limiting and that those skilled in the art will understand that reference to 'one or more' unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
Referring to fig. 1, a flow diagram for one embodiment of a video exit method according to the present disclosure is shown. As shown in fig. 1, the video exit method includes the following steps:
The video in this embodiment may be a normal video, a short video, a small video, or the like. The video can be displayed on various terminal devices. In addition, the video playing interface here can be a video playing interface presented in the instant application session window.
In the present embodiment, the sliding speed is obtained according to the following steps:
and acquiring the coordinates of an initial point and an end point generated by the sliding operation of the user, calculating the sliding distance, and acquiring the sliding speed according to the sliding time. The terminal device can sense touch pressure generated when a user touches the screen, and records the coordinates of an initial point and the coordinates of an end point when the pressure disappears. The sliding speed may be obtained from a quotient of the sliding distance divided by the sliding time (i.e., the duration of the sliding operation).
The sliding operation performed by the user on the touch screen generates an initial point due to the touch on the screen and an end point due to the touch off the screen. An initial point may be used as an origin, and coordinate axes may be set, where an x-axis passes through the initial point and is parallel to upper and lower borders of the screen, and a y-axis passes through the initial point and is parallel to left and right borders of the screen. And acquiring the coordinates of the end point in the coordinate system. In this case, the unit of the coordinates is a pixel (pixel). As an exemplary illustration, if the coordinate of the initial point of the sliding is a (0, 0), the sliding is performed to the end point B after 2 seconds. If the coordinate of the end point in the coordinate system is (200 ). According to the pythagorean theorem, the distance between the two points A, B is:the sliding speed can be calculated according to the sliding time and the sliding distance
The preset speed threshold here may be any value greater than zero. The preset speed threshold may be set according to a specific application scenario, and is not specifically limited herein.
If the sliding speed obtained in step 101 is lower than the preset speed threshold, it may be determined that the sliding operation is invalid.
If the sliding speed obtained in step 101 is greater than the preset speed threshold, step 103 may be entered.
And step 103, in response to the fact that the sliding speed is larger than the preset speed threshold value, exiting the playing state of the video broadcast.
In this embodiment, if it is determined in step 102 that the sliding speed is greater than the preset speed threshold, the video playing state may be exited. The exiting of the video playing state may be returning to the previous page, entering the next page, or stopping the video playing only on the current page.
The video exit method provided by the embodiment can realize exiting the playing state of the video according to one sliding operation of the user. In the video playing exit method in the prior art, a user clicks a return button and clicks a confirmation exit option. Compared with the video playing exit method in the prior art, the video exit method provided by the embodiment can realize video exit only by performing one touch operation by a user. Therefore, the video playing can be quitted more quickly, the user operation is simplified, and the user experience is improved.
With continuing reference to fig. 2, fig. 2 shows a flow diagram of another embodiment of a video exit method according to the present disclosure, including the steps of:
The sliding operation performed by the user on the touch screen generates an initial point by touching the screen and an end point by leaving the screen. An initial point may be used as an origin, and coordinate axes may be set, where an x-axis passes through the initial point and is parallel to upper and lower borders of the screen, and a y-axis passes through the initial point and is parallel to left and right borders of the screen. And acquiring the coordinates of the end point in the coordinate system.
The sliding distance is a straight-line distance between two points calculated from the sliding initial point and the sliding end point. If the coordinates of the ending point generated during the sliding operation of the user in the coordinate system are (x2, y2), the distance between the two points can be calculated by the Pythagorean theorem, and the formula is as follows:
wherein the absolute value of x is not greater than the width of the current screen and the absolute value of y is not greater than the height of the current screen.
The step 101 of the embodiment shown in fig. 1 can be referred to for obtaining the sliding speed, which is not described herein again.
Firstly, judging whether the sliding distance is greater than a preset distance threshold, if so, further judging whether the sliding speed is greater than a preset speed threshold, and if so, carrying out the next operation.
If the sliding speed is smaller than the preset speed threshold value or the sliding distance is smaller than the preset distance threshold value, the sliding operation is invalid.
The preset distance threshold may be any value greater than zero, and may be set according to a specific application scenario, which is not specifically limited herein.
The following is an example of a video exit:
the user touches a display screen of the terminal device which is playing the video and slides, the terminal device acquires a sliding initial point C (0, 0) and establishes a coordinate system by taking the sliding initial point C as an original point, and acquires a coordinate D (100 ) of an end point in the coordinate system. The sliding time is 2 seconds, where the coordinate unit is a pixel (pixel). Calculating a sliding distance ofAnd a sliding speed of
If the preset speed is 50 pixels/second and the numerical values of the preset distance are all 50 pixels, the sliding distance and the sliding speed in the sliding operation data are respectively greater than the preset speed and the preset distance. And the terminal equipment immediately exits the video playing state in response to the fact that the sliding distance and the sliding speed are respectively larger than the preset speed threshold and the preset distance threshold.
Compared with the embodiment shown in fig. 1, the video quitting method provided by the embodiment increases the limitation of the sliding distance, so that the judgment of the video quitting intention of the user is more accurate.
Continuing to refer to fig. 3, fig. 3 shows a flow diagram of another embodiment of a video exit method according to the present disclosure, including the steps of: step 301, in response to a received sliding operation of a user on a video playing interface of a video, obtaining sliding data, where the sliding data includes a sliding speed and a sliding direction.
The user performs a sliding operation on the touch screen, which generates an initial point when the user touches the screen and an end point when the user leaves the screen, and sets coordinate axes with the initial point as an origin, wherein an x-axis passes through the initial point and is parallel to upper and lower frames of the screen, and a y-axis passes through the initial point and is parallel to left and right frames of the screen. And acquiring the coordinates of the end point in the coordinate system.
In the present embodiment, the sliding speed and the sliding direction may be determined according to the initial point and the end point of the user sliding the screen.
The user slides the screen to generate an initial point (0, 0) and an end point (x2, y2) based onCalculating the sliding distance and the sliding speed according to the known sliding time tThe sliding direction needs to satisfy a preset sliding direction, wherein the preset sliding direction can be set according to an application scenario, and is not limited herein.
Firstly, judging whether the sliding direction accords with a preset sliding direction, and if the sliding direction accords with the preset sliding direction, further judging whether the sliding speed is greater than a preset speed threshold value. If the conditions are met, carrying out the next operation;
if the sliding speed is not greater than the preset speed threshold or the sliding direction does not accord with the preset sliding direction, the operation is invalid. And 303, in response to that the sliding speed is greater than the preset speed threshold value and the sliding direction is the preset sliding direction, exiting the video playing and returning to the previous page.
The scheme of this example is given below:
the terminal equipment acquires the coordinates of an initial point G, an end point H and sliding time t generated by the sliding operation of a user. And establishing a coordinate system by taking the G point as an origin, wherein the coordinate unit is a pixel. The x axis passes through the initial point and is parallel to the upper frame and the lower frame of the screen, the y axis passes through the initial point and is parallel to the left frame and the right frame of the screen, and the right extension of the x axis is a positive direction. End point coordinates are obtained where H (400 ), G (0, 0), and t are 2 seconds. Calculating the sliding distance according to the coordinates of the two pointsThe sliding speed is obtained by dividing the sliding distance by the sliding timeThe sliding direction in this embodiment is determined according to the angle θ between the line connecting the end point and the start point and the positive direction of the x-axis. In this embodiment, the included angle θ is 45 ° or greater than arctan (1).
If the preset speed threshold is 50 pixels/second, the preset distance threshold is 100 pixels, and the preset sliding direction rotates 45 degrees (theta is 45 degrees) counterclockwise along the positive direction of the x axis. Then it can be determined that the sliding speed is greater than the preset speed threshold, the sliding distance is greater than the preset distance threshold, and the sliding direction meets the preset sliding direction, and the video playing state is exited.
Compared with the embodiment shown in fig. 1, the video exit method provided by the embodiment highlights whether the respective preset conditions are met according to the sliding speed and the sliding direction, so that the video exit is realized, and the phenomenon of video exit caused by misoperation of a user can be reduced.
With continuing reference to fig. 4, fig. 4 shows a flow diagram of another embodiment of a video exit method according to the present disclosure, including the steps of:
step 401, in response to a received sliding operation of a user on a video playing interface of a video, obtaining sliding data, where the sliding data includes a sliding speed, a sliding distance, and a sliding direction.
The user performs a sliding operation on the touch screen, which generates an initial point when the user touches the screen and an end point when the user leaves the screen, and sets coordinate axes with the initial point as an origin, wherein an x-axis passes through the initial point and is parallel to upper and lower frames of the screen, and a y-axis passes through the initial point and is parallel to left and right frames of the screen. And acquiring the coordinates of the end point in the coordinate system. Taking the screen facing the user as an example, the direction in which the x axis extends to the right side of the user is the positive direction of the x axis.
In the present embodiment, the sliding distance, the sliding speed, and the sliding direction may be determined according to the initial point and the end point of the user sliding the screen.
The user slides the screen to generate an initial point (0, 0) and an end point (x2, y2) based onCalculating the sliding distance and the sliding speed according to the known sliding time tThe sliding direction needs to satisfy a preset sliding direction, wherein the preset sliding direction can be set according to an application scenario, and is not limited herein.
Firstly, judging whether the sliding direction accords with a preset sliding direction; if the sliding direction accords with the preset sliding direction, continuously judging whether the sliding distance is larger than a preset distance threshold value; if the sliding distance is greater than the preset distance threshold, continuously judging whether the sliding speed is greater than a preset speed threshold; and if so, carrying out the next operation.
If the sliding direction does not accord with the preset sliding direction; or the sliding distance is smaller than a preset distance threshold; or if the sliding speed is less than the preset speed threshold, the sliding operation is invalid.
In step 403, in response to determining that the sliding speed is greater than the preset speed threshold, the sliding distance is greater than the preset distance threshold, and the sliding direction is the preset sliding direction, the playing state of the video is exited.
The following is an example of a video exit:
acquiring an initial point E (0, 0) of sliding of a user on a touch screen of a terminal device, establishing a coordinate system by taking the initial point E as an origin, setting coordinates of an end point relative to the coordinate system as (100 ), setting sliding time of the sliding operation as 2 seconds, and calculating the sliding distance asSliding speed ofThe sliding direction is 45 degrees counterclockwise along the positive direction of the x-axis.
If the sliding preset speed threshold value is 50 pixels/second, the preset sliding distance threshold value is 50 pixels, and the preset sliding direction is in a direction of 45 degrees anticlockwise along the positive direction of the x axis, the sliding speed is determined to be greater than the preset speed threshold value, and the sliding direction meets the preset sliding direction
Compared with the embodiment shown in fig. 1, the video exit method provided by the embodiment determines whether to execute video exit by using whether the sliding speed, the sliding distance and the sliding direction respectively satisfy the respective conditions, so that the phenomenon of video exit caused by misoperation of a user can be reduced.
Further referring to fig. 5, as an implementation of the method shown in the above-mentioned figures, a schematic structural diagram of an embodiment of a video exit device according to the present disclosure is provided, where an embodiment of the device corresponds to the embodiment of the method shown in fig. 1, and the device may be specifically applied to various electronic devices.
Referring to fig. 5, the video exit device includes: an obtaining module 501, a determining module 502 and an exiting module 503, wherein the determining module 502 receives data about the sliding operation from the user obtained by the obtaining module 501. Wherein the exit module 503 is responsive to the information determining whether the obtained sliding data from the module 502 meets the threshold condition.
In this embodiment, specific processing of the obtaining module 501, the determining module 502, and the exiting module 503 of the video exiting apparatus and technical effects thereof may refer to related descriptions of step 101, step 102, and step 103 in the corresponding embodiment of fig. 1, which are not described herein again.
In some alternative implementations, the sliding data further includes a sliding distance; and the determination module is further to: determining whether the sliding distance is greater than a preset distance threshold; and the exit module is further to: and exiting the video playing state in response to determining that the sliding speed is greater than the preset speed threshold and the sliding distance is greater than the preset distance threshold.
In some optional implementations, the swipe data further includes a swipe direction: and the determination module is further to: determining whether the sliding direction is a preset sliding direction; and the exit module is further to: and exiting the video playing state in response to the fact that the speed is larger than the preset speed threshold value and the sliding direction is the preset sliding direction.
In some alternative implementations, the swipe data further includes a swipe distance and a swipe direction; and the determination module is further to: determining whether the sliding direction is a preset sliding direction; and the exit module is further to: and exiting the video playing state in response to the fact that the speed is larger than the preset speed threshold value and the sliding direction is the preset sliding direction.
Referring to fig. 6, fig. 6 is a schematic diagram of a system architecture of a video exit device according to the present disclosure.
As shown in fig. 6, the system architecture may include terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 serves to provide a medium for communication links between the terminal devices 601, 602, 603 and the server 605. Network 604 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few. The terminal devices and servers described above may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The terminal devices 601, 602, 603 may interact with the server 605 via the network 604 to receive or send messages or the like. The terminal 601, 602, 603 may have various client applications installed thereon, such as a video playing application, a search type application, and a news information type application.
The terminal devices 601, 602, 603 may be hardware or software. When the terminal devices 601, 602, 603 are hardware, they may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, mpeg compression standard Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), laptop portable computers, desktop computers, and the like. When the terminal device 601, 602, 603 is software, it can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., software or software modules used to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 605 may be a server that can provide various services, for example, receives a request transmitted by the terminal apparatuses 601, 602, 603, performs analysis processing on a video acquisition request, and transmits an analysis processing result (for example, video data corresponding to the acquisition request) to the terminal apparatuses 601, 602, 603.
It should be noted that the video exit method provided by the embodiment of the present disclosure is generally executed by the terminal device 601, 602, 603, and accordingly, the information processing apparatus is generally disposed in the terminal device 601, 602, 603.
It should be understood that the number of terminal devices, networks, and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 7, shown is a schematic diagram of an electronic device (e.g., the server of FIG. 6) suitable for use in implementing embodiments of the present disclosure. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, the electronic device may include a processing device (e.g., central processing unit, graphics processor, etc.) 701, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage device 606 into a Random Access Memory (RAM) 603. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 706 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 706, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: the method comprises the steps of responding to received sliding operation of a user on a video playing interface, and obtaining sliding data, wherein the sliding data comprises sliding speed; determining whether the sliding speed is greater than a preset speed threshold; and exiting the video playing state in response to determining that the sliding speed is greater than the preset speed threshold.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. The name of the module does not in some cases constitute a limitation on the module itself, for example, the acquiring module may also be described as a "module that acquires slide data of the video playing interface from the user".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description discloses only the preferred embodiment and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features with similar functions disclosed in the present disclosure are mutually replaced to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims (10)
1. A video exit method, comprising:
the method comprises the steps of responding to a received sliding operation of a user on a video playing interface of a video, and obtaining sliding data, wherein the sliding data comprises a sliding speed;
determining whether the slip speed is greater than a preset speed threshold;
and exiting the playing state of the video in response to determining that the sliding speed is greater than a preset speed threshold.
2. The method of claim 1, wherein the swipe data further comprises a swipe distance; and
the determining whether the slip speed is greater than a speed threshold further comprises:
determining whether the sliding distance is greater than a preset distance threshold; and
the exiting the playing state of the video in response to determining that the sliding speed is greater than a preset speed threshold comprises:
and exiting the playing state of the video in response to the fact that the sliding speed is larger than a preset speed threshold value and the sliding distance is larger than a preset distance threshold value.
3. The method of claim 1, wherein the swipe data further comprises a swipe direction: and
the determining whether the slip speed is greater than a speed threshold further comprises:
determining whether the sliding direction is a preset sliding direction; and
the exiting the playing state of the video in response to determining that the sliding speed is greater than a preset speed threshold comprises:
and exiting the playing state of the video in response to the fact that the speed is larger than a preset speed threshold value and the sliding direction is a preset sliding direction.
4. The method of claim 3, wherein the swipe data further comprises a swipe distance, and
the determining whether the slip speed is greater than a speed threshold further comprises:
determining whether the sliding distance is greater than a preset distance threshold; and
the exiting the playing state of the video in response to determining that the sliding speed is greater than a preset speed threshold comprises:
and exiting the video playing state in response to determining that the speed is greater than a preset speed threshold, the sliding direction meets a preset sliding direction, and the sliding distance is greater than a preset distance threshold.
5. A video exit device, comprising:
an acquisition module: the method comprises the steps of responding to a received sliding operation of a user on a video playing interface of a video, and obtaining sliding data, wherein the sliding data comprises a sliding speed;
a determination module: determining whether the slip speed is greater than a preset speed threshold;
an exit module: and exiting the playing state of the video in response to determining that the sliding speed is greater than a preset speed threshold.
6. The apparatus of claim 5, wherein the swipe data further comprises a swipe distance; and
the determination module is further to:
determining whether the sliding distance is greater than a preset distance threshold; and
the exit module is further to:
and exiting the playing state of the video in response to the fact that the sliding speed is larger than a preset speed threshold value and the sliding distance is larger than a preset distance threshold value.
7. The apparatus of claim 5, wherein the swipe data further comprises a swipe direction: and
the determination module is further to:
determining whether the sliding direction is a preset sliding direction; and
the exit module is further to:
and exiting the playing state of the video in response to the fact that the speed is larger than a preset speed threshold value and the sliding direction is a preset sliding direction.
8. The apparatus of claim 7, wherein the swipe data further comprises a swipe distance, and
the determination module is further to:
determining whether the sliding distance is greater than a preset distance threshold; and
the exit module is further to:
and exiting the video playing state in response to determining that the speed is greater than a preset speed threshold, the sliding direction meets a preset sliding direction, and the sliding distance is greater than a preset distance threshold.
9. An electronic device, comprising:
one or more processors;
storage means having one or more programs stored thereon which, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-4.
10. A non-transitory computer readable storage medium having stored thereon executable instructions, wherein the executable instructions, when executed on a processor, implement the method of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910833425.3A CN112306338A (en) | 2019-09-04 | 2019-09-04 | Video exit method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910833425.3A CN112306338A (en) | 2019-09-04 | 2019-09-04 | Video exit method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112306338A true CN112306338A (en) | 2021-02-02 |
Family
ID=74486757
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910833425.3A Pending CN112306338A (en) | 2019-09-04 | 2019-09-04 | Video exit method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112306338A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101308440A (en) * | 2008-06-25 | 2008-11-19 | 宇龙计算机通信科技(深圳)有限公司 | Interaction control method and system based on touch screen |
CN105898529A (en) * | 2015-12-03 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Video automatic playback and pause realizing method and system |
CN106249890A (en) * | 2016-07-28 | 2016-12-21 | 深圳市金立通信设备有限公司 | The control method of a kind of virtual reality device and virtual reality device |
JP2016220186A (en) * | 2015-05-22 | 2016-12-22 | カシオ計算機株式会社 | Display device, display method, and program |
CN106354404A (en) * | 2016-08-15 | 2017-01-25 | 合网络技术(北京)有限公司 | Page operation method and device |
CN107111436A (en) * | 2014-12-31 | 2017-08-29 | 华为技术有限公司 | A kind of method and terminal for being used to control multimedia file playing progress rate |
CN107509112A (en) * | 2017-09-01 | 2017-12-22 | 深圳市沃特沃德股份有限公司 | Video broadcasting method and device |
CN108737904A (en) * | 2018-04-13 | 2018-11-02 | 维沃移动通信有限公司 | A kind of video data handling procedure and mobile terminal |
-
2019
- 2019-09-04 CN CN201910833425.3A patent/CN112306338A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101308440A (en) * | 2008-06-25 | 2008-11-19 | 宇龙计算机通信科技(深圳)有限公司 | Interaction control method and system based on touch screen |
CN107111436A (en) * | 2014-12-31 | 2017-08-29 | 华为技术有限公司 | A kind of method and terminal for being used to control multimedia file playing progress rate |
JP2016220186A (en) * | 2015-05-22 | 2016-12-22 | カシオ計算機株式会社 | Display device, display method, and program |
CN105898529A (en) * | 2015-12-03 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Video automatic playback and pause realizing method and system |
CN106249890A (en) * | 2016-07-28 | 2016-12-21 | 深圳市金立通信设备有限公司 | The control method of a kind of virtual reality device and virtual reality device |
CN106354404A (en) * | 2016-08-15 | 2017-01-25 | 合网络技术(北京)有限公司 | Page operation method and device |
CN107509112A (en) * | 2017-09-01 | 2017-12-22 | 深圳市沃特沃德股份有限公司 | Video broadcasting method and device |
CN108737904A (en) * | 2018-04-13 | 2018-11-02 | 维沃移动通信有限公司 | A kind of video data handling procedure and mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110784754A (en) | Video display method and device and electronic equipment | |
CN110633126B (en) | Information display method and device and electronic equipment | |
CN111459364B (en) | Icon updating method and device and electronic equipment | |
CN111597467A (en) | Display method and device and electronic equipment | |
CN113721807B (en) | Information display method and device, electronic equipment and storage medium | |
CN113934349B (en) | Interaction method, interaction device, electronic equipment and storage medium | |
CN111258736A (en) | Information processing method and device and electronic equipment | |
CN110910469A (en) | Method, device, medium and electronic equipment for drawing handwriting | |
CN111259291B (en) | View display method and device and electronic equipment | |
CN111273847B (en) | Page processing method and device, electronic equipment and storage medium | |
CN112053286A (en) | Image processing method, image processing device, electronic equipment and readable medium | |
CN112307393A (en) | Information issuing method and device and electronic equipment | |
CN111273884A (en) | Image display method and device and electronic equipment | |
CN111290692B (en) | Picture display method and device, electronic equipment and computer readable medium | |
CN114064593B (en) | Document sharing method, device, equipment and medium | |
CN113163483B (en) | Timestamp updating method and device and electronic equipment | |
CN111258582B (en) | Window rendering method and device, computer equipment and storage medium | |
CN112306338A (en) | Video exit method and device and electronic equipment | |
CN114520928A (en) | Display information generation method, information display method and device and electronic equipment | |
CN112822328A (en) | Data display method and device and electronic equipment | |
CN111399730A (en) | Image processing method, image processing device, electronic equipment and computer readable storage medium | |
CN110708425A (en) | Message display method and device and electronic equipment | |
CN111258475B (en) | Information updating method and device and electronic equipment | |
CN112114723B (en) | Page sliding method and device and electronic equipment | |
CN112636971B (en) | Service degradation method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210202 |