CN113691869B - Video playing method and device and electronic equipment - Google Patents

Video playing method and device and electronic equipment Download PDF

Info

Publication number
CN113691869B
CN113691869B CN202110878169.7A CN202110878169A CN113691869B CN 113691869 B CN113691869 B CN 113691869B CN 202110878169 A CN202110878169 A CN 202110878169A CN 113691869 B CN113691869 B CN 113691869B
Authority
CN
China
Prior art keywords
playing
input
rate
video
target
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
CN202110878169.7A
Other languages
Chinese (zh)
Other versions
CN113691869A (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 Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou 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 Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202110878169.7A priority Critical patent/CN113691869B/en
Publication of CN113691869A publication Critical patent/CN113691869A/en
Application granted granted Critical
Publication of CN113691869B publication Critical patent/CN113691869B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44218Detecting physical presence or behaviour of the user, e.g. using sensors to detect if the user is leaving the room or changes his face expression during a TV program
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface
    • 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/47217End-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 controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks

Abstract

The application discloses a video playing method and device and electronic equipment, and belongs to the technical field of multimedia. Receiving a first input of a user under the condition of playing video; responding to the first input, determining a playing mode according to a first input direction of the first input, and determining a playing rate according to a first input distance of the first input in a target direction; according to a first playing mode, playing the video according to a first playing rate; the first playing mode includes any one of the following: forward play mode, backward play mode.

Description

Video playing method and device and electronic equipment
Technical Field
The application belongs to the technical field of multimedia, and particularly relates to a video playing method, a video playing device and electronic equipment.
Background
In general, in a scenario where a user views a video through an electronic device, the user may perform a sliding input on a display screen of the electronic device, so that the electronic device may determine, according to an input rate of the sliding input, a playing rate at which the electronic device plays the video, and play the video according to the playing rate, so as to satisfy a viewing experience of the user.
However, since the input rate of the sliding input performed by the user may be too fast (or too slow), the playing rate determined by the electronic device may be too large (or too small), which may result in poor accuracy of determining the playing rate required by the user.
In this way, the electronic device cannot play the video at the playing rate required by the user.
Disclosure of Invention
The embodiment of the application aims to provide a video playing method and device and electronic equipment, which can solve the problem that the electronic equipment cannot play videos according to the playing speed required by users.
In a first aspect, an embodiment of the present application provides a video playing method, where the method includes: receiving a first input of a user under the condition of playing video; responding to the first input, determining a playing mode according to a first input direction of the first input, and determining a playing rate according to a first input distance of the first input in a target direction; according to a first playing mode, playing the video according to a first playing rate; the first playing mode includes any one of the following: forward play mode, backward play mode.
In a second aspect, an embodiment of the present application provides a video playing device, where: the device comprises a receiving module, a determining module and a playing module. The receiving module is used for receiving a first input of a user under the condition of playing the video. The determining module is used for responding to the first input received by the receiving module, determining a first playing mode according to a first input direction of the first input, and determining a first playing rate according to a first input distance of the first input in a target direction. And the playing module is used for playing the video according to the first playing mode determined by the determining module and the first playing rate. The first playing mode includes any one of the following: forward play mode, backward play mode.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In the embodiment of the application, under the condition that the electronic device plays the video, the electronic device can determine a first playing mode (namely, a forward playing mode or a backward playing mode) according to the first input direction of the first input of the user, and determine a first playing rate according to the first input distance of the first input in the target direction, so that the electronic device can play the video according to the first playing mode and the first playing rate. The electronic device can determine that the playing mode of the video is a forward playing mode (or a backward playing mode) according to the input direction input by the user, and determine the playing rate of the video according to the input distance of the user input in the target direction, so that the electronic device can play the video according to the forward playing mode (or the backward playing mode), and determine the playing rate of the video according to the determined playing rate of the video, and the playing rate of the video played by the electronic device does not need to be determined according to the input rate input by the user.
Drawings
Fig. 1 is a schematic diagram of a video playing method according to an embodiment of the present application;
fig. 2 is an example schematic diagram of an interface of a mobile phone according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a preset direction and an input direction according to an embodiment of the present application;
FIG. 4 is a second schematic diagram of a video playing method according to the embodiment of the present application;
FIG. 5 is a schematic view of a first distance of an embodiment of the present application;
FIG. 6 is a second exemplary diagram of an interface of a mobile phone according to an embodiment of the present application;
FIG. 7 is a third schematic diagram of a video playing method according to the embodiment of the present application;
fig. 8 is a schematic structural diagram of a video playing device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 10 is a schematic hardware diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The video playing method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The video playing method provided by the embodiment of the application can be applied to the scene of watching video.
If the user needs to watch (or review) a specific scene of the video, the user can perform sliding input on the display screen of the electronic device, so that the electronic device can determine the playing rate of the video played by the electronic device according to the input rate of the sliding input, and forward (or backward) play the video according to the playing rate, so as to meet the watching experience of the user. However, since the input rate of the sliding input performed by the user may be too fast (or too slow), the playing rate determined by the electronic device may be too large (or too small), which may result in poor accuracy of determining the playing rate required by the user.
However, in the embodiment of the present application, if a user needs to watch (or review) a specific scene of a video, the user may perform a sliding input on a display screen of the electronic device, so that the electronic device may determine a forward play mode (or a backward play mode) according to an input direction of the sliding input, and determine a play rate according to an input distance of the sliding input in one direction, so that the electronic device may play the video according to the determined forward play mode (or the backward play mode) and determine the play rate of the video by the electronic device according to the determined play rate, without determining the play rate of the video by the electronic device according to the input rate input by the user, thereby avoiding a situation that the input rate input by the user is too fast (or too slow), and improving accuracy of determining the play rate required by the user by the electronic device.
Fig. 1 shows a flowchart of a video playing method according to an embodiment of the present application. As shown in fig. 1, the video playing method provided in the embodiment of the present application may include the following steps 101 to 103.
Step 101, under the condition that the video playing device plays the video, the video playing device receives a first input of a user.
Optionally, in the embodiment of the present application, when an interface of the "set" application is displayed, the video playing device may display the "forward and backward set" interface according to the click input of the user on the "forward and backward set" option in the interface, and start the "forward and backward" function according to the click input of the user on the "global switch" option in the "forward and backward set" interface, so that, when the video playing device plays the video, the user may perform the first input.
For example, a video playing device is taken as a mobile phone for illustration. As shown in fig. 2, the mobile phone displays a "forward and backward setting" interface (e.g., interface 10), where the interface 10 includes a "global switch" option, so that the user can perform click input on the "global switch" option, so that the mobile phone can turn on the "forward and backward" function, and the user can perform the first input.
In the embodiment of the present application, the first input is used to trigger the video playing device to play the video according to the forward playing mode (or the backward playing mode).
Optionally, in an embodiment of the present application, the first input may specifically be: a user sliding input on a display screen of a video playback device.
Step 102, the video playing device responds to the first input, determines a first playing mode according to a first input direction of the first input, and determines a first playing rate according to a first input distance of the first input in a target direction.
In an embodiment of the present application, the first playing mode includes any one of the following: forward play mode, backward play mode.
Optionally, in the embodiment of the present application, when the first input direction is matched with the first preset direction, the first playing mode is an advancing playing mode; and under the condition that the first input direction is matched with the second preset direction, the first playing mode is a backward playing mode.
It can be understood that, in the case that the direction of the first input is different, the playing modes determined by the video playing device are different playing modes.
It should be noted that, the "the first input direction matches the first preset direction" may be understood as: the included angle between the first input direction and the first preset direction is larger than or equal to a first threshold value and smaller than or equal to a second threshold value. The "the first input direction matches the second preset direction" may be understood as: the included angle between the first input direction and the second preset direction is larger than or equal to a first threshold value and smaller than or equal to a second threshold value.
Optionally, in an embodiment of the present application, the first threshold may specifically be: 0 °, the second threshold may specifically be: 90 deg..
Further optionally, in an embodiment of the present application, the first preset direction may specifically be: a direction perpendicular to non-adjacent two edge lines of the display screen, e.g. a horizontal right direction. The second preset direction is opposite to the first preset direction, for example, a horizontal left direction.
For example, as shown in fig. 3, the first preset direction is a direction (e.g., direction 11) perpendicular to two non-adjacent edge lines of the display screen, and the second preset direction (e.g., direction 12) is opposite to the direction 11. In the case that the first input direction (for example, direction 13) matches with direction 11 (i.e., the angle between direction 13 and direction 11 is greater than or equal to 0 ° and less than or equal to 90 °), the first play mode is a forward play mode; in the case where the first input direction (e.g., direction 14) matches direction 12 (i.e., the angle between direction 14 and direction 12 is greater than or equal to 0 ° and less than or equal to 90 °), the first playback mode is a reverse playback mode.
Therefore, the video playing device can determine the playing mode of the video according to the input direction of the first input without multiple operations of the user, so that the operation of setting the video playing mode by the user can be simplified, and the use experience of the user can be improved.
Optionally, in the embodiment of the present application, after the video playing device determines the first playing mode, the video playing device may play the video at a default playing rate (for example, a start rate in the embodiment described below) first, and then determine the first playing rate according to the first input distance.
Optionally, in an embodiment of the present application, the target direction is different from the first preset direction, and the target direction is different from the second preset direction.
Further alternatively, in an embodiment of the present application, the target direction may specifically be: perpendicular to the direction of the non-adjacent two other edge lines of the display screen. It is understood that the target direction may be perpendicular to the first preset direction.
Optionally, in the embodiment of the present application, the video playing device may determine a change relationship (for example, the target sensitivity in the embodiment described below) between the first input distance and the first playing rate based on the first input distance and the initial input position of the first input, and a distance between one edge line of the video playing device, so that the video playing device may determine the first playing rate according to the first input distance and the change relationship.
It should be noted that, the above "play rate" can be understood as: a multiple relative to the normal play speed.
As will be illustrated below, how the video playback device determines the first playback rate.
Optionally, in an embodiment of the present application, the target direction includes any one of the following: a first direction and a second direction. Specifically, as shown in fig. 4 in conjunction with fig. 1, before "determining the first play rate according to the first input distance of the first input in the target direction" in the above step 102, the video play method provided in the embodiment of the present application may further include the following step 201 and step 202, and the above step 102 may be specifically implemented by the following step 102 a.
Step 201, the video playing device responds to the first input, determines a first playing mode according to a first input direction of the first input, and obtains a first distance between a starting input position of the first input and a first edge line of a display screen of the video playing device.
It should be noted that, the "initial input position" can be understood as: when the user makes the first input, the user's finger initially touches the display screen at the location.
In the embodiment of the present application, the first edge line is: edge lines perpendicular to the target direction.
Further alternatively, in an embodiment of the present application, the first edge line may be perpendicular to the first direction (and the second direction). Wherein the first direction and the second direction may be opposite.
Illustratively, the first edge line may specifically be: an upper edge line or a lower edge line of the display screen.
Illustratively, the first edge line may be: edge line towards which the target direction is oriented. In the case where the target direction is a first direction, the first edge line is an upper edge line, and the first direction may be a vertically upward direction; in the case where the target direction is the second direction, the second edge line is the lower edge line, and the second direction may be a vertically downward direction.
Further alternatively, in the embodiment of the present application, the video playing device may first acquire the first coordinate information of the initial input position, and then determine, according to the first coordinate information, the second coordinate information of the projection point of the initial input position on the first edge line, so that the video playing device may determine the first distance according to the first coordinate information and the second coordinate information, so as to acquire the first distance.
It can be appreciated that the first distance is: the vertical distance between the initial input position and the first edge line.
For example, as shown in fig. 5, the mobile phone may obtain a first distance h between a start input position (e.g., position 15) of the first input and a first edge line (e.g., edge line 16), i.e., a vertical distance between position 15 and edge line 16.
Step 202, the video playing device determines target sensitivity according to a preset target rate, a preset starting rate and a preset first distance.
Further alternatively, in an embodiment of the present application, the target rate may be any one of the following: highest rate, lowest rate.
In the embodiment of the application, under the condition that the target direction is the first direction, the target rate is the highest rate; in the case where the target direction is the second direction, the target rate is the lowest rate.
Further alternatively, in the embodiment of the present application, the video playing device may determine the rate difference according to the target rate and the initial rate, and then determine the target sensitivity according to the rate difference and the first distance.
Further optionally, in the embodiment of the present application, after the video playing apparatus starts the "forward and backward" function, the video playing apparatus may display a "highest rate" setting control, a "start rate" setting control, and a "lowest rate" setting control in the "forward and backward setting" interface, so that a user may set the highest rate in the "highest rate" setting control, set the lowest rate in the "lowest rate" setting control, and set the start rate in the "start rate" setting control, so that the video playing apparatus may determine a rate difference according to the preset highest rate (or lowest rate) and start rate.
For example, as shown in connection with fig. 2, after the handset turns on the "forward and reverse" function, the handset may display a "highest rate" setting control, a "start rate" setting control, and a "lowest rate" setting control in the interface 10, so that the user may set the highest rate (e.g., X64, i.e., 64 times) in the "highest rate" setting control, and the lowest rate (e.g., X0.5, i.e., 0.5 times) in the "lowest rate" setting control, and set the start rate (e.g., X4, i.e., 4 times) in the "start rate" setting control, so that the handset may determine the rate difference value based on the 64 times (or the 0.5 times) and 4 times.
Further alternatively, in the embodiment of the present application, the video playing device may determine an absolute value of a difference between the target rate and the start rate as the rate difference. It will be appreciated that the rate difference determined when the target rate is the highest rate is different from the rate difference determined when the target rate is the lowest rate.
In the embodiment of the present application, the target sensitivity is used to indicate a change relationship between the first input distance and the first playing rate.
Further alternatively, in the embodiment of the present application, the video playing device may determine a change relationship between the rate difference and the first distance as the target sensitivity. It will be appreciated that the target sensitivity determined when the target rate is the highest rate is different from the target sensitivity determined when the target rate is the lowest rate.
For example, assuming that the target direction is the first direction, the target rate is the highest rate, the highest rate is 10 times, the initial rate is 5 times, and the first distance is 5 centimeters (cm), the video playback device may determine a rate difference value, i.e., |10 times-5 times|=5 times, based on the highest rate and the initial rate, and then the video playback device may determine the target sensitivity, i.e., 5 times/5 cm=1 times/cm, based on the rate difference value and the first distance.
Step 102a, the video playing device determines a first playing rate based on the target sensitivity and the first input distance.
For example, the video playing device may determine a change value between the start rate and the first playing rate based on the first target sensitivity and the first input distance, and then determine the first playing rate according to the start rate and the change value.
For example, in the case that the target direction is the first direction, the variation value between the start rate and the first play rate is greater than 0; under the condition that the target direction is the second direction, the variation value between the initial rate and the first playing rate is smaller than 0.
It can be appreciated that when the target direction is the first direction, the video playing device can increase the start rate; when the target direction is the second direction, the video playing device can reduce the initial rate.
In the embodiment of the application, if the video playing device directly determines the playing rate (i.e., the first playing rate) required by the user according to the first input distance, under the condition that the playing rate required by the user is large, the situation that the first input distance is larger than the first distance, i.e., the first input slides out of the edge line of the display screen, so that the video playing device can determine the playing rate required by the user according to the target sensitivity and the first input distance, so as to avoid the situation that the first input slides out of the edge line of the display screen.
Therefore, the video playing device can acquire the first distance between the edge lines corresponding to the initial input position and the target direction of the first input, and determine the target sensitivity for indicating the change relationship between the first input distance and the first playing speed according to the preset highest speed (or lowest speed), the initial speed and the first distance, so that the video playing device can determine the first playing speed according to the target sensitivity and the first input distance, and not directly determine the first playing speed according to the first input distance, and thus, the situation that the first input distance is larger than the first distance can be avoided, and the accuracy of the video playing device in determining the playing speed required by the user can be improved, and the use experience of the user can be improved.
As will be illustrated below, the video playback device determines the first playback rate based on the target sensitivity and the first input distance.
Alternatively, in the embodiment of the present application, the above step 102a may be specifically implemented by the following step 102a 1.
In step 102a1, the video playing device calculates a first playing rate by using a target algorithm according to the initial rate, the target sensitivity and the first input distance.
In an embodiment of the present application, the target algorithm includes any one of the following: a first algorithm, a second algorithm, and a third algorithm.
Further optionally, in the embodiment of the present application, the "forward and backward setting" interface further includes a "rate change function" option, and the video playing device may display a first control, a second control, and a third control according to a click input of the user on the "rate change function" option, where the first control is used to indicate a first algorithm, the second control is used to indicate a second algorithm, and the third control is used to indicate a third algorithm, so that the video playing device may input a target control (i.e., any one of the first control, the second control, and the third control) according to the user, and determine a target algorithm (i.e., an algorithm indicated by the target control), so that the video playing device may calculate, by using the target algorithm, a first playing rate according to an initial rate, a target sensitivity, and a first input distance.
In the embodiment of the application, the first playing speeds calculated by different algorithms are different.
Further alternatively, in an embodiment of the present application, the first algorithm may specifically be: linear (once) function. The second algorithm may specifically be: an exponential function. The third algorithm may specifically be: a logarithmic function.
Illustratively, the first algorithm may specifically be: v 0 =v 1 +axh; wherein v is 0 For the first playing speed, v 1 For the initial rate, x is the target sensitivity, h is the first input distance, and a is an integer.
It will be appreciated that in the case where the target algorithm is the first algorithm, the first input distance and the first play rate are in a linear relationship, such as a linear increasing relationship, or a linear decreasing relationship, i.e. the value of the change between the start rate and the first play rate remains unchanged.
Illustratively, in the case where the target algorithm is the first algorithm, the start rate v is assumed 1 5 times, a first input distance h of 1cm, a target sensitivity x of 1, a of 1, v 0 Is 6 times, or assuming a starting rate v 1 5 times, a first input distance h of 2cm, a target sensitivity x of 1, a of 1, v 0 7 times.
Illustratively, the second algorithm may specifically be: v 0 =v 1 +e xh The method comprises the steps of carrying out a first treatment on the surface of the Wherein v is 0 For the first playing speed, v 1 For the initial rate, x is the target sensitivity and h is the first input distance.
It will be appreciated that in the case where the target algorithm is the second algorithm, the value of the change between the start rate and the first play rate increases with increasing first input distance.
Illustratively, in the case where the target algorithm is the second algorithm, the start rate v is assumed 1 5 times, the first input distance h is 1cm, v 0 Is 6 times, or assuming a starting rate v 1 5 times, the first input distance h is 2cm, v 0 8 times.
Illustratively, the third algorithm may specifically be: v 0 =v 1 +lg (xh); wherein v is 0 For the first playing speed, v 1 For the initial rate, x is the target sensitivity and h is the first input distance.
It will be appreciated that in the case where the target algorithm is the third algorithm, the value of the change between the start rate and the first play rate decreases with increasing first input distance.
Illustratively, in the case where the target algorithm is the third algorithm, the start rate v is assumed 1 5 times, the first input distance h is 1cm, v 0 Is 7 times, or assuming a starting rate v 1 5 times, the first input distance h is 2cm, v 0 8 times.
Therefore, the video playing device can calculate different first playing rates by adopting different algorithms according to the initial rate, the target sensitivity and the first input distance, so that the diversity of the playing rates determined by the video playing device can be improved, and the use experience of a user can be improved.
It can be understood that the user can select the algorithm required by the user according to the use requirement, and perform the first input on the video playing device, so that the video playing device can accurately determine the playing rate required by the user by adopting the algorithm required by the user according to the first input distance.
Step 103, the video playing device plays the video according to the first playing mode and the first playing rate.
Optionally, in the embodiment of the present application, the video playing device may adjust the start rate to the first playing rate and play the video.
According to the video playing method provided by the embodiment of the application, under the condition that the video playing device plays the video, the video playing device can determine a first playing mode (namely a forward playing mode or a backward playing mode) according to the first input direction of the first input of the user, and determine a first playing rate according to the first input distance of the first input in the target direction, so that the video playing device can play the video according to the first playing mode and the first playing rate. The video playing device can determine that the playing mode of the video is a forward playing mode (or a backward playing mode) according to the input direction input by the user, and determine the playing rate of the video according to the input distance of the user input in the target direction, so that the video playing device can play the video according to the forward playing mode (or the backward playing mode) and the playing rate of the video according to the determination, and the playing rate of the video playing device does not need to be determined according to the input rate input by the user.
Optionally, in the embodiment of the present application, after the video playing device plays the video according to the first playing mode and the first playing rate, the first playing mode and the first playing rate may be a playing mode and a playing rate required by a user, so that the user may perform different inputs on the video playing device, so that the video playing device may continue playing the video according to the first playing mode and the first playing rate, or play the video according to the normal playing rate.
Three possible implementations are illustrated below.
Further optionally, in one possible implementation manner of the embodiment of the present application, after the video playing device plays the video according to the first playing mode and the first playing rate, if the first playing rate is the playing rate required by the user, the user may perform a fourth input, where an input direction of the fourth input is a first preset direction (or a second preset direction), so that the video playing device may continue playing the video according to the first playing mode and the first playing rate; alternatively, the user may remove the finger from the display screen so that the video playback device may play the video at the normal playback rate.
Further optionally, in another possible implementation manner of the embodiment of the present application, the "forward/backward setting" interface further includes a "stop forward" option, and the video playing device may start the "stop forward" function according to a click input of the user on the "stop forward" option, so that after the video playing device plays the video according to the first playing mode and the first playing rate, if the first playing rate is the playing rate required by the user, the user may control the finger to remain stationary and continue to press the display screen, so that the video playing device may continue playing the video according to the first playing mode and the first playing rate; alternatively, the user may remove the finger from the display screen so that the video playback device may play the video at the normal playback rate.
Still alternatively, in another possible implementation manner of the embodiment of the present application, the "forward and backward setting" interface further includes an "automatic forward" option, and the video playing device may start the "automatic forward" function according to a click input of the user on the "automatic forward" option, so that after the video playing device plays the video according to the first playing mode and the first playing rate, if the first playing rate is the playing rate required by the user, the user may remove a finger from the display screen, so that the video playing device may continue playing the video according to the first playing mode and the first playing rate; alternatively, the user may make a press input (e.g., a click input) to the display screen so that the video playback device may play the video at the normal playback rate.
Optionally, in the embodiment of the present application, after the video playing device plays the video according to the first playing mode and the first playing rate, the first playing rate may not be the playing mode and the playing rate required by the user, so that the user may input the video playing device again, so that the video playing device may determine the playing rate again, and play the video according to the determined playing rate again. Specifically, referring to fig. 1, as shown in fig. 7, after the step 103, the video playing method provided in the embodiment of the present application may further include the following steps 301 to 303.
Step 301, the video playing device receives a second input from the user.
In the embodiment of the present application, the second input is used to trigger the video playing device to play the video according to the forward playing mode (or the backward playing mode).
In the embodiment of the present application, the input direction of the second input is matched with the first input direction.
It should be noted that, the "the input direction of the second input matches the first input direction" may be understood as: an included angle between the input direction of the second input and the first input direction is greater than or equal to a first threshold value and less than or equal to a second threshold value.
Further alternatively, in an embodiment of the present application, the second input and the first input may be continuous inputs. It should be noted that, the "continuous input" may be understood as: no other input is present between the two inputs, or the input time interval of the two inputs is less than or equal to the input of the preset time interval.
Optionally, in an embodiment of the present application, the second input may specifically be: a user sliding input on a display screen of a video playback device.
Step 302, the video playing device responds to the second input, and determines a second playing rate according to the first input distance and the second input distance of the second input in the third direction.
In an embodiment of the present application, the third direction is any one of the following: a first direction and a second direction.
Further alternatively, in an embodiment of the present application, the third direction may be the same as or opposite to the target direction.
It will be appreciated that in the case where the target direction is the first direction (or the second direction), the third direction may be the first direction (or the second direction), i.e., the target direction is the same as the first direction; alternatively, in the case where the target direction is the first direction (or the second direction), the third direction may be the second direction (or the first direction), that is, the target direction is opposite to the first direction.
Further alternatively, in the embodiment of the present application, when the third direction is the same as the target direction, the video playing device may determine the sum of the first input distance and the second input distance as the third input distance, and then determine the second playing rate according to the third input distance.
For example, assuming that the target direction is the first direction, and the third direction is the same as the target direction, that is, the third direction is also the first direction, and the first input distance is 1cm, and the second input distance is 1cm, the video playing device may determine the sum of 1cm and 1cm (i.e., 2 cm) as the third input distance, and then determine the second playing rate according to the 2 cm.
The video playing device may calculate the second playing rate according to the first playing rate, the target sensitivity and the third input distance by using a target algorithm.
It should be noted that, for the description that the video playing device may calculate the second playing rate by using a target algorithm according to the first playing rate, the target sensitivity and the third input distance, reference may be made to the embodiment that the video playing device may calculate the first playing rate by using the target algorithm according to the initial rate, the target sensitivity and the first input distance, which is not described herein.
Further alternatively, in the embodiment of the present application, in the case where the third direction is opposite to the target direction, the video playing device may determine the difference between the first input distance and the second input distance as the fourth input distance, and then determine the second playing rate according to the fourth input distance.
For example, assuming that the target direction is the first direction, the third direction is opposite to the target direction, i.e., the third direction is the second direction, the first input distance is 3cm, and the second input distance is 2cm, the video playing device may determine the difference between 3cm and 2cm (i.e., 1 cm) as the third input distance, and then determine the second playing rate according to the 1 cm.
The video playing device may calculate the second playing rate according to the first playing rate, the target sensitivity and the fourth input distance by using a target algorithm.
Step 303, the video playing device plays the video according to the first playing mode and the second playing rate.
Therefore, the video playing device can redetermine the playing rate of the video according to the first input distance and the second input distance of the second input in the third direction, and play the video according to the redetermined playing rate according to the first playing mode, so that the accuracy of the video playing device in determining the playing rate required by the user can be improved.
Optionally, in the embodiment of the present application, after the video playing device plays the video according to the first playing mode and the first playing rate, the first playing mode may not be a playing mode required by the user, so that the user may input the video playing device again, so that the video playing device may determine the playing mode and the playing rate again, and play the video according to the determined playing mode and the determined playing rate. Specifically, after the step 103, the video playing method provided by the embodiment of the present application may further include the following steps 401 to 403.
Step 401, the video playing device receives a third input from the user.
In the embodiment of the present application, the third input is used to trigger the video playing device to play the video according to the backward playing mode (or the forward playing mode).
In the embodiment of the present application, the third input direction of the third input is not matched with the first input direction.
It should be noted that, the "the third input direction of the third input does not match the first input direction" may be understood as: the included angle between the third input direction and the first input direction is greater than or equal to a third threshold value and less than or equal to a fourth threshold value.
Further alternatively, in an embodiment of the present application, the third threshold may specifically be: the fourth threshold may specifically be 90 °:180 deg..
Further alternatively, in an embodiment of the present application, the third input and the first input may be continuous inputs. It should be noted that, the "continuous input" may be understood as: no other input is present between the two inputs, or the input time interval of the two inputs is less than or equal to the input of the preset time interval.
Further optionally, in an embodiment of the present application, the third input may specifically be: a user sliding input on a display screen of a video playback device.
Step 402, the video playing device responds to the third input, determines the second playing mode according to the input direction of the third input, and determines the third playing rate according to the third input distance of the third input in the fourth direction.
Further optionally, in an embodiment of the present application, the second playing manner includes any one of the following: a backward play mode and a forward play mode.
In the embodiment of the application, when the first playing mode comprises a forward playing mode, the second playing mode comprises a backward playing mode; in the case where the first play mode includes a backward play mode, the second play mode includes a forward play mode.
It can be appreciated that the third input direction matches the first preset direction; or the third input direction is matched with the second preset direction.
In an embodiment of the present application, the fourth direction is any one of the following: a first direction and a second direction.
It should be noted that, for the description of determining the third playing rate according to the third input distance of the third input in the fourth direction by the video playing device, reference may be made to the specific description of determining the first playing rate according to the first input distance of the first input in the target direction by the video playing device in the above embodiment, and the embodiments of the present application are not repeated here.
Step 403, the video playing device plays the video according to the second playing mode and the third playing rate.
Therefore, the video playing device can redetermine a playing mode according to the input direction of the third input, redetermine a playing rate according to the third input distance of the third input in the fourth direction, and play the video according to the redetermined playing mode and the redetermined playing rate, so that the accuracy of the video playing device in determining the playing rate required by the user can be improved.
It should be noted that, in the video playing method provided by the embodiment of the present application, the execution body may be a video playing device, or a control module in the video playing device for executing the video playing method. In the embodiment of the application, a video playing method executed by a video playing device is taken as an example, and the video playing device provided by the embodiment of the application is described.
Fig. 8 shows a schematic diagram of a possible configuration of a video playback apparatus according to an embodiment of the present application. As shown in fig. 8, the video playback device 60 may include: a receiving module 61, a determining module 62 and a playing module 63.
The receiving module 61 is configured to receive a first input of a user when playing a video. The determining module 62 is configured to determine, in response to the first input received by the receiving module 61, a first playing mode according to a first input direction of the first input, and determine a first playing rate according to a first input distance of the first input in the target direction. The playing module 63 is configured to play the video according to the first playing mode determined by the determining module 62 and the first playing rate. The first playing mode includes any one of the following: forward play mode, backward play mode.
In one possible implementation manner, in a case that the first input direction matches a first preset direction, the first playing mode is a forward playing mode; and under the condition that the first input direction is matched with the second preset direction, the first playing mode is a backward playing mode.
In one possible implementation, the target direction includes any one of the following: a first direction and a second direction. The video playing device 60 provided in the embodiment of the present application may further include: and an acquisition module. The acquiring module is configured to acquire a first distance between a start input position of the first input and a first edge line of a display screen of the video playing device 60. The determining module 62 is further configured to determine a target sensitivity according to the preset target rate, the initial rate, and the first distance acquired by the acquiring module, where the target sensitivity is used to indicate a change relationship between the first input distance and the first playing rate. Wherein, the first edge line is: edge lines perpendicular to the target direction; in the case that the target direction is the first direction, the target rate is the highest rate; in the case where the target direction is the second direction, the target rate is the lowest rate.
In one possible implementation, the determining module 62 is specifically configured to calculate the first playing rate according to the initial rate, the target sensitivity, and the first input distance by using a target algorithm. Wherein the target algorithm comprises any one of the following: a first algorithm, a second algorithm, a third algorithm; the first playing speeds calculated by the different algorithms are different.
In a possible implementation manner, the receiving module 61 is further configured to receive a second input of the user, where an input direction of the second input matches the first input direction. The determining module 62 is further configured to determine, in response to the second input received by the receiving module 61, a second play rate according to the first input distance and the second input distance of the second input in the third direction. The playing module 63 is further configured to play the video according to the first playing mode and the second playing rate determined by the determining module 62.
In a possible implementation manner, the receiving module 61 is further configured to further receive a third input of the user, where an input direction of the third input does not match the first input direction. The determining module 62 is further configured to determine, in response to the third input received by the receiving module 61, a second playing mode according to an input direction of the third input, and determine a third playing rate according to a third input distance of the third input in a fourth direction. The playing module 63 is further configured to play the video according to the second playing mode determined by the determining module 62 and the third playing rate. Wherein, in the case that the first playing mode includes a forward playing mode, the second playing mode includes a backward playing mode; in the case where the first play mode includes a backward play mode, the second play mode includes a forward play mode.
According to the video playing device provided by the embodiment of the application, the video playing device can determine that the playing mode of the video is the forward playing mode (or the backward playing mode) according to the input direction input by the user, and determine the playing rate of the video according to the input distance of the user input in the target direction, so that the video playing device can play the video according to the forward playing mode (or the backward playing mode) and the playing rate of the video according to the determined playing rate of the video, and the playing rate of the video playing device does not need to be determined according to the input rate input by the user, thus the condition that the input rate input by the user is too fast (or too slow) can be avoided, the accuracy of the video playing device in determining the playing rate required by the user can be improved, and the video playing device can play the video according to the playing rate required by the user.
The video playing device in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in the terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (network attached storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and embodiments of the present application are not limited in particular.
The video playing device in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The video playing device provided by the embodiment of the present application can implement each process implemented by the embodiments of the methods of fig. 1 to 7, and in order to avoid repetition, a detailed description is omitted here.
Optionally, in the embodiment of the present application, as shown in fig. 9, the embodiment of the present application further provides an electronic device 70, which includes a processor 71, a memory 72, and a program or an instruction stored in the memory 72 and capable of running on the processor 71, where the program or the instruction implements each process of the embodiment of the video playing method when executed by the processor 71, and the process can achieve the same technical effect, and is not repeated herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 110 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein, the user input unit 107 is configured to receive a first input of a user in a case of playing a video.
A processor 110, configured to determine a first playing mode according to a first input direction of the first input in response to the first input, and determine a first playing rate according to a first input distance of the first input in a target direction; and playing the video according to the first playing mode and the first playing rate.
The first playing mode includes any one of the following: forward play mode, backward play mode.
According to the electronic device provided by the embodiment of the application, the electronic device can determine that the playing mode of the video is the forward playing mode (or the backward playing mode) according to the input direction input by the user, and determine the playing rate of the video according to the input distance of the user input in the target direction, so that the electronic device can play the video according to the forward playing mode (or the backward playing mode) and the playing rate of the video according to the determined playing rate of the video, and the playing rate of the video played by the electronic device does not need to be determined according to the input rate input by the user, so that the situation that the input rate input by the user is too fast (or too slow) can be avoided, and the accuracy of the electronic device in determining the playing rate required by the user can be improved, and the electronic device can play the video according to the playing rate required by the user.
Optionally, in an embodiment of the present application, the target direction includes any one of the following: a first direction and a second direction.
The processor 110 is further configured to obtain a first distance between a start input position of the first input and a first edge line of a display screen of the electronic device; and determining the target sensitivity according to the preset target rate, the initial rate and the first distance.
The target sensitivity is used for indicating the change relation between the first input distance and the first playing speed; the first edge line is: edge lines perpendicular to the target direction; in the case that the target direction is the first direction, the target rate is the highest rate; in the case where the target direction is the second direction, the target rate is the lowest rate.
Therefore, the electronic device can acquire the first distance between the edge lines corresponding to the initial input position and the target direction of the first input, and determine the target sensitivity for indicating the ratio between the first input distance and the first playing rate according to the preset highest rate (or lowest rate), the initial rate and the first distance, so that the electronic device can determine the first playing rate according to the target sensitivity and the first input distance, rather than directly determining the first playing rate according to the first input distance, and thus, the situation that the first input distance is larger than the first distance can be avoided, and the accuracy of the electronic device in determining the playing rate required by the user can be improved, and the use experience of the user can be improved.
Optionally, in the embodiment of the present application, the processor 110 is specifically configured to calculate the first playing rate by using a target algorithm according to the initial rate, the target sensitivity and the first input distance.
Wherein the target algorithm comprises any one of the following: a first algorithm, a second algorithm, a third algorithm; the first playing speeds calculated by the different algorithms are different.
Therefore, the electronic device can calculate different first playing rates by adopting different algorithms according to the initial rate, the target sensitivity and the first input distance, so that the diversity of the playing rates determined by the electronic device can be improved, and the use experience of a user can be improved.
Optionally, in an embodiment of the present application, the user input unit 107 is further configured to receive a second input of the user, where an input direction of the second input matches the first input direction.
The processor 110 is further configured to determine, in response to the second input, a second play rate according to the first input distance and a second input distance of the second input in a third direction; and playing the video according to the first playing mode and the second playing rate.
Therefore, the electronic device can redetermine the playing rate of the video according to the first input distance and the second input distance of the second input in the third direction, and play the video according to the redetermined playing rate according to the first playing mode, so that the accuracy of the electronic device in determining the playing rate required by the user can be improved.
Optionally, in an embodiment of the present application, the user input unit 107 is further configured to receive a third input of the user, where an input direction of the third input does not match the first input direction.
The processor 110 is further configured to determine, in response to the third input, a second play mode according to an input direction of the third input, and determine a third play rate according to a third input distance of the third input in a fourth direction; and playing the video according to the second playing mode and the third playing rate.
Wherein, in the case that the first playing mode includes a forward playing mode, the second playing mode includes a backward playing mode; in the case where the first play mode includes a backward play mode, the second play mode includes a forward play mode.
Therefore, the electronic device can redetermine a playing mode according to the input direction of the third input, redetermine a playing rate according to the third input distance of the third input in the fourth direction, and play the video according to the redetermined playing mode and the redetermined playing rate, so that the accuracy of determining the playing rate required by the user by the electronic device can be improved.
It should be appreciated that in embodiments of the present application, the input unit 104 may include a graphics processor (graphics processingunit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein. Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the video playing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the video playing method embodiment, and the same technical effects can be achieved, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (9)

1. A video playing method, the method comprising:
receiving a first input of a user under the condition of playing video;
responding to the first input, determining a first playing mode according to a first input direction of the first input, and determining a first playing rate according to a first input distance of the first input in a target direction;
playing the video according to the first playing mode and the first playing rate;
the determining a first playing rate according to the first input distance of the first input in the target direction includes:
calculating to obtain a first playing rate by adopting a target algorithm according to a target sensitivity, a preset starting rate and the first input distance, wherein the target sensitivity is used for indicating the change relation between the first input distance and the first playing rate;
the target sensitivity is determined according to a preset target rate, the initial rate and a first distance, wherein the first distance is the distance between the initial input position of the first input and a first edge line of a display screen of the electronic device, and the first edge line is an edge line facing the target direction;
The target algorithm is any one of the following: a first algorithm, a second algorithm, a third algorithm; the first playing speeds calculated by different algorithms are different;
the first playing mode includes any one of the following: forward play mode, backward play mode.
2. The method according to claim 1, wherein the first play mode is a forward play mode if the first input direction matches a first preset direction;
and under the condition that the first input direction is matched with the second preset direction, the first playing mode is a backward playing mode.
3. The method of claim 1, wherein the target direction is any one of: a first direction, a second direction, the first direction being opposite to the second direction;
in the case that the target direction is the first direction, the target rate is the highest rate; in the case where the target direction is the second direction, the target rate is the lowest rate.
4. The method of claim 1, wherein after playing the video at the first play rate according to the first play mode, the method further comprises:
Receiving a second input of a user, wherein the input direction of the second input is matched with the first input direction;
responsive to the second input, determining a second play rate in accordance with the first input distance and a second input distance of the second input in a third direction;
playing the video according to the first playing mode and the second playing rate;
wherein the third direction is any one of the following: a first direction, a second direction, the first direction being opposite the second direction.
5. The method of claim 1, wherein after playing the video at the first play rate according to the first play mode, the method further comprises:
receiving a third input of a user, wherein the input direction of the third input is not matched with the first input direction;
responding to the third input, determining a second playing mode according to the input direction of the third input, and determining a third playing rate according to a third input distance of the third input in a fourth direction;
playing the video according to the second playing mode and the third playing rate;
Wherein, when the first playing mode includes a forward playing mode, the second playing mode includes a backward playing mode;
in the case that the first playing mode includes a backward playing mode, the second playing mode includes a forward playing mode;
the fourth direction is any one of the following: a first direction, a second direction, the first direction being opposite the second direction.
6. A video playback device, the video playback device comprising: the device comprises a receiving module, a determining module and a playing module;
the receiving module is used for receiving a first input of a user under the condition of playing the video;
the determining module is used for responding to the first input received by the receiving module, determining a first playing mode according to a first input direction of the first input, determining a first playing rate according to a first input distance of the first input in a target direction, and indicating a change relation between the first input distance and the first playing rate by the target sensitivity;
the determining module is specifically configured to calculate, according to a target sensitivity, a preset starting rate and the first input distance, a target algorithm to obtain a first playing rate;
The playing module is used for playing the video according to the first playing mode determined by the determining module and the first playing rate;
the target sensitivity is determined according to a preset target rate, the initial rate and a first distance, wherein the first distance is the distance between the initial input position of the first input and a first edge line of a display screen of the electronic device, and the first edge line is an edge line facing the target direction;
the target algorithm is any one of the following: a first algorithm, a second algorithm, a third algorithm; the first playing speeds calculated by different algorithms are different;
wherein, the first playing mode is any one of the following: forward play mode, backward play mode.
7. The video playback device of claim 6, wherein the target direction is any one of: a first direction, a second direction, the first direction being opposite to the second direction;
in the case that the target direction is the first direction, the target rate is the highest rate; in the case where the target direction is the second direction, the target rate is the lowest rate.
8. The video playback device of claim 6, wherein the receiving module is further configured to receive a third input from a user, the third input having an input direction that does not match the first input direction;
the determining module is further configured to determine, in response to the third input received by the receiving module, a second playing mode according to an input direction of the third input, and determine a third playing rate according to a third input distance of the third input in a fourth direction;
the playing module is further configured to play the video according to the second playing mode determined by the determining module and the third playing rate;
wherein, when the first playing mode includes a forward playing mode, the second playing mode includes a backward playing mode;
in the case that the first playing mode includes a backward playing mode, the second playing mode includes a forward playing mode;
the fourth direction is any one of the following: a first direction, a second direction, the first direction being opposite the second direction.
9. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the video playback method of any one of claims 1 to 5.
CN202110878169.7A 2021-07-30 2021-07-30 Video playing method and device and electronic equipment Active CN113691869B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110878169.7A CN113691869B (en) 2021-07-30 2021-07-30 Video playing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110878169.7A CN113691869B (en) 2021-07-30 2021-07-30 Video playing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113691869A CN113691869A (en) 2021-11-23
CN113691869B true CN113691869B (en) 2023-11-03

Family

ID=78578550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110878169.7A Active CN113691869B (en) 2021-07-30 2021-07-30 Video playing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113691869B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681687A (en) * 2011-03-16 2012-09-19 新奥特(北京)视频技术有限公司 Operation method and system for quickly browsing video
CN106339149A (en) * 2016-08-09 2017-01-18 北京三快在线科技有限公司 Display control method and device as well as electronic equipment
CN106412706A (en) * 2016-09-28 2017-02-15 北京小米移动软件有限公司 Video playing control, apparatus and device
CN108108100A (en) * 2013-10-28 2018-06-01 华为技术有限公司 It is a kind of to adjust the method and device played
CN108616771A (en) * 2018-04-25 2018-10-02 维沃移动通信有限公司 Video broadcasting method and mobile terminal
CN109885174A (en) * 2019-02-28 2019-06-14 努比亚技术有限公司 Gesture control method, device, mobile terminal and storage medium
CN112684952A (en) * 2020-12-18 2021-04-20 网易(杭州)网络有限公司 Video playing control method and device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102577467B1 (en) * 2018-11-02 2023-09-12 엘지디스플레이 주식회사 Display device and method for controlling luminance

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681687A (en) * 2011-03-16 2012-09-19 新奥特(北京)视频技术有限公司 Operation method and system for quickly browsing video
CN108108100A (en) * 2013-10-28 2018-06-01 华为技术有限公司 It is a kind of to adjust the method and device played
CN106339149A (en) * 2016-08-09 2017-01-18 北京三快在线科技有限公司 Display control method and device as well as electronic equipment
CN106412706A (en) * 2016-09-28 2017-02-15 北京小米移动软件有限公司 Video playing control, apparatus and device
CN108616771A (en) * 2018-04-25 2018-10-02 维沃移动通信有限公司 Video broadcasting method and mobile terminal
CN109885174A (en) * 2019-02-28 2019-06-14 努比亚技术有限公司 Gesture control method, device, mobile terminal and storage medium
CN112684952A (en) * 2020-12-18 2021-04-20 网易(杭州)网络有限公司 Video playing control method and device and electronic equipment

Also Published As

Publication number Publication date
CN113691869A (en) 2021-11-23

Similar Documents

Publication Publication Date Title
CN108616771B (en) Video playing method and mobile terminal
US11138956B2 (en) Method for controlling display of terminal, storage medium, and electronic device
CN112954199B (en) Video recording method and device
CN112004117B (en) Video playing method and device
CN112162684A (en) Parameter adjusting method and device and electronic equipment
CN112433693B (en) Split screen display method and device and electronic equipment
CN111770374B (en) Video playing method and device
CN112214112A (en) Parameter adjusting method and device
CN112929734B (en) Screen projection method and device and electronic equipment
CN113691869B (en) Video playing method and device and electronic equipment
CN111818390A (en) Video capturing method and device and electronic equipment
CN113271494B (en) Video frame processing method and device and electronic equipment
CN115543137A (en) Video playing method and device
CN115002551A (en) Video playing method and device, electronic equipment and medium
CN112286429B (en) Control method and control device of electronic equipment and electronic equipment
CN113784192A (en) Screen projection method, screen projection device and electronic equipment
CN114245017A (en) Shooting method and device and electronic equipment
CN113190162A (en) Display method, display device, electronic equipment and readable storage medium
CN111770371B (en) Parameter adjusting method and device
CN112765508A (en) Information display method and device and electronic equipment
CN112165584A (en) Video recording method, video recording device, electronic equipment and readable storage medium
CN111930296A (en) Electronic equipment control method and device and electronic equipment
CN113569066B (en) Multimedia display method, device, electronic equipment, server and storage medium
CN113709375B (en) Image display method and device and electronic equipment
WO2016074120A1 (en) Scrolling animation or video playback controlled by touch user interface

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