CN111061412A - Playing control method and device for multimedia resources - Google Patents

Playing control method and device for multimedia resources Download PDF

Info

Publication number
CN111061412A
CN111061412A CN201911053824.4A CN201911053824A CN111061412A CN 111061412 A CN111061412 A CN 111061412A CN 201911053824 A CN201911053824 A CN 201911053824A CN 111061412 A CN111061412 A CN 111061412A
Authority
CN
China
Prior art keywords
multimedia
playing
dragging
speed
preset
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.)
Granted
Application number
CN201911053824.4A
Other languages
Chinese (zh)
Other versions
CN111061412B (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201911053824.4A priority Critical patent/CN111061412B/en
Publication of CN111061412A publication Critical patent/CN111061412A/en
Application granted granted Critical
Publication of CN111061412B publication Critical patent/CN111061412B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a method and a device for controlling the playing of multimedia resources, wherein in the method, the touch operation of a user on a preset multimedia playing interface is monitored; acquiring an initial position of the touch operation; constructing a circular touch interface by taking the initial position as a circle center and a preset distance threshold as a radius; acquiring the current position of the touch operation, and determining the position relation between the current position of the touch operation and the touch interface; and adjusting the playing of the multimedia according to the position relation. The scheme of the embodiment of the invention realizes that the user changes and recovers the multimedia playing speed at any time, and provides a more convenient multimedia playing speed adjusting mode for the user; the method and the device have the advantages that the user can change the multimedia playing progress at any time, a more convenient multimedia playing progress adjusting mode is provided for the user, and better multimedia playing experience is brought to the user.

Description

Playing control method and device for multimedia resources
Technical Field
The present invention relates to the field of multimedia playing technologies, and in particular, to a method and an apparatus for controlling playing of multimedia resources.
Background
With the development of information technology, mobile terminal devices are more and more popular, and the entertainment mode of watching videos by using mobile devices is more and more popular, but due to limited entertainment time of users and the fluctuation of plots, the users can select a watching mode of playing at double speed to skip certain plots and specially watch interesting segments.
Currently, the speed adjustment mode of the video player of the mobile device is a selection mode, and the selection mode needs to be completed in a speed list.
The operation of selecting and adjusting the play speed in the speed list has the problems of long response time and slow conversion speed. If the user sees the interesting plot and wants to recover the normal speed when the video is played at the double speed, the plot is played after the normal speed is selected from the speed list, and at this time, the user needs to go back to the adjustment progress again, which brings inconvenience to the user.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for controlling the playing of multimedia resources, so that a user can change and recover the multimedia playing speed at any time, a more convenient speed adjusting mode is provided for the user, and better playing operation experience is brought to the user. The specific technical scheme is as follows:
in a first aspect of the present invention, there is provided a method for controlling playing of a multimedia resource, the method including:
monitoring touch operation of a user on a preset multimedia playing interface;
acquiring an initial position of the touch operation;
constructing a circular touch interface by taking the initial position as a circle center and a preset distance threshold as a radius;
acquiring the current position of the touch operation, and determining the position relation between the current position of the touch operation and the touch interface;
and adjusting the playing of the multimedia according to the position relation.
Optionally, the adjusting the playing of the multimedia according to the position relationship includes:
acquiring the dragging duration of the touch operation; the dragging duration is the dragging duration from the initial position of the touch operation to the current position;
and when the dragging time length reaches a preset time length threshold value, the playing of the multimedia is adjusted according to the position relation.
Optionally, the adjusting the playing of the multimedia according to the position relationship includes:
adjusting the multimedia playing speed according to the position relation;
and/or adjusting the multimedia playing progress according to the position relation.
Optionally, the number of the preset distance threshold is one; the circular touch interface comprises a circle with a preset distance threshold as a radius; the adjusting the multimedia playing speed according to the position relationship comprises:
acquiring a dragging distance of the touch operation; the dragging distance is the dragging distance from the initial position of the touch operation to the current position;
if the dragging distance is greater than or equal to the preset distance threshold, adjusting the multimedia playing speed by adopting a preset first speed; the preset first speed is determined according to the preset distance threshold;
if the dragging distance is smaller than the preset distance threshold, adjusting the multimedia playing speed by adopting a preset second speed; and the preset second speed is determined according to the dragging distance, the preset distance threshold and the preset first speed.
Optionally, the number of the preset distance thresholds is multiple; the circular touch interface comprises areas divided by concentric circles with a plurality of preset distance thresholds as radiuses respectively; the adjusting the multimedia playing speed according to the position relationship comprises:
determining an area of the current position in the circular touch interface;
and adjusting the multimedia playing speed according to the area of the current position in the circular touch interface.
Optionally, the adjusting the multimedia playing progress according to the position relationship includes:
acquiring the dragging direction of the touch operation; the dragging direction is from the initial position of the touch operation to the current position;
if the dragging direction is within a preset first direction range, adjusting the multimedia playing progress to be fast forward;
and if the dragging direction is within a preset second direction range, adjusting the multimedia playing progress to be reversed.
Optionally, the method further includes:
and after the touch operation is finished, removing the touch interface, keeping the current multimedia playing progress, and restoring the multimedia playing speed to the initial playing speed.
In a second aspect of the present invention, there is also provided a device for controlling playing of a multimedia asset, the device including:
the touch operation monitoring module is used for monitoring the touch operation of a user on a preset multimedia playing interface;
the initial position acquisition module is used for acquiring an initial position of the touch operation;
the touch interface construction module is used for constructing a circular touch interface by taking the initial position as a circle center and a preset distance threshold as a radius;
the current position acquisition module is used for acquiring the current position of the touch operation and determining the position relation between the current position of the touch operation and the touch interface;
the position relation determining module is used for determining the position relation between the current position of the touch operation and the touch interface;
and the multimedia playing adjusting module is used for adjusting the playing of the multimedia according to the position relation.
Optionally, the multimedia playing adjusting module includes:
the dragging duration acquisition submodule is used for acquiring the dragging duration of the touch operation; the dragging duration is the dragging duration from the initial position of the touch operation to the current position;
and the multimedia playing adjustment submodule is used for adjusting the playing of the multimedia according to the position relation when the dragging time reaches a preset time threshold.
Optionally, the multimedia playing adjusting sub-module includes:
the playing speed adjusting unit is used for adjusting the multimedia playing speed according to the position relation;
and/or the playing progress adjusting unit is used for adjusting the multimedia playing progress according to the position relation.
Optionally, the number of the preset distance threshold is one; the circular touch interface comprises a circle with a preset distance threshold as a radius; the play-speed adjusting unit includes:
the dragging distance acquiring subunit is used for acquiring the dragging distance of the touch operation; the dragging distance is the dragging distance from the initial position of the touch operation to the current position;
the first playing speed adjusting subunit is configured to adjust the multimedia playing speed by using a preset first speed if the dragging distance is greater than or equal to the preset distance threshold; the preset first speed is determined according to the preset distance threshold;
a second playing speed adjusting subunit, configured to adjust the multimedia playing speed by using a preset second speed if the dragging distance is smaller than the preset distance threshold; and the preset second speed is determined according to the dragging distance, the preset distance threshold and the preset first speed.
Optionally, the number of the preset distance thresholds is multiple; the circular touch interface comprises areas divided by concentric circles with a plurality of preset distance thresholds as radiuses respectively; the play-speed adjusting unit includes:
the interface area determining subunit is used for determining an area of the current position in the circular touch interface;
and the area playing speed adjusting subunit is used for adjusting the multimedia playing speed according to the area of the current position in the circular touch interface.
Optionally, the playing progress adjusting unit includes:
the dragging direction acquiring subunit is used for acquiring the dragging direction of the touch operation; the dragging direction is from the initial position of the touch operation to the current position;
a first playing progress adjusting subunit, configured to adjust the multimedia playing progress to fast forward if the dragging direction is within a preset first direction range;
and the second playing progress adjusting subunit is used for adjusting the multimedia playing progress to be reversed if the dragging direction is within a preset second direction range.
Optionally, the apparatus further comprises:
and the touch interface removing module is used for removing the touch interface after the touch operation is finished, keeping the current multimedia playing progress and restoring the multimedia playing speed to the initial playing speed.
In another aspect of the present invention, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the playing control method of any multimedia resource when executing the program stored in the memory.
In yet another aspect of the present invention, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a play control method for any of the multimedia assets.
In another embodiment of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the method for controlling playback of a multimedia asset as described in any of the above embodiments.
According to the playing control method and device for the multimedia resources, provided by the embodiment of the invention, the monitoring method is established on the multimedia playing interface to monitor the touch operation of the user on the multimedia playing interface, and the playing speed and the playing progress of the multimedia are adjusted by monitoring the obtained position relation between the current position of the touch operation and the touch interface. The playing speed of the multimedia is determined by the dragging distance, the playing progress of the multimedia is determined by the dragging direction, and the dragging distance and the dragging direction are determined by the initial position and the current position of the touch operation. The dragging distance is a parameter which dynamically changes in real time, and the playing speed of the multimedia changes along with the change of the dragging distance, so that the playing speed of the multimedia also dynamically changes in real time; the dragging direction is in different direction ranges, and different multimedia playing progress directions exist; the user adjusts the playing speed of the multimedia through touch operation on the multimedia playing interface, the playing speed selection list is not required to be selected, the function of changing and recovering the playing speed of the multimedia at any time can be realized, and the multimedia playing speed adjusting method which is more convenient for the user is realized; the user adjusts the playing progress of the multimedia through touch operation on the multimedia playing interface, the progress bar is not required to be dragged, the playing progress of the multimedia can be changed at any time, and the multimedia playing progress adjusting method which is more convenient for the user is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a flowchart illustrating a first step of a method for controlling playback of a multimedia asset according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a second step of a method for controlling playback of a multimedia resource according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a touch interface according to an embodiment of the invention;
fig. 4 is a schematic view of an application scenario of a video playing control method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an application scenario two of the video play control method according to the embodiment of the present invention;
fig. 6 is a schematic structural diagram of an embodiment of a playback control apparatus for multimedia resources according to the present invention;
fig. 7 is a schematic structural diagram of an embodiment of an electronic device in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
The embodiment of the invention discloses a playing control method and a playing control device for multimedia resources, which are used for solving the problem that a user cannot change and recover the multimedia playing speed at any time, providing a more convenient speed adjusting mode for the user, and also providing a more convenient progress adjusting mode for the user, thereby improving the playing operation experience of the user. The following detailed description is made with reference to the accompanying drawings.
It should be noted that the embodiments of the present invention can be applied to various devices with touch operation, such as a mobile phone, a tablet computer, a personal digital assistant, a wearable device (e.g., glasses, a watch, etc.), and the like. The operating system of the device may include Android (Android), IOS, Windows Phone, Windows, etc., and may generally support playing of various multimedia. In the embodiment of the present invention, the multimedia resource may be a resource locally stored by the device, or may be a resource from other approaches (such as user upload, web page download, etc.); the multimedia resource may be audio or video, which is not limited in this embodiment of the present invention.
An embodiment of the present invention provides a method for controlling playing of a multimedia resource, and as shown in fig. 1, it shows a flowchart of a first step of the method for controlling playing of a multimedia resource according to the present invention, and the method of the present embodiment may include the following steps:
step 101, monitoring a touch operation of a user on a preset multimedia playing interface;
the method comprises the steps of monitoring touch operation of a user on a multimedia interface, starting a multimedia application program or a player under a terminal, and when a multimedia resource starts playing or pauses, establishing a user monitoring gesture method by the terminal on the multimedia playing interface to monitor user operation of the user on the multimedia playing interface, wherein a monitoring object can be touch operation of the user on the multimedia playing interface, and a monitoring range can be the multimedia playing interface.
In an embodiment of the present invention, the creating of the method for the user to monitor the gesture may be implemented by an ontouch (event) method of a getcuredetector type that can recognize different gestures, and specifically may be implemented by calling a function in an ongetcurelistener interface provided by a getcuredetector when the getcuredetector is implemented by a program. The terminal can monitor the gesture change of the user by creating a monitoring gesture so as to acquire the change condition of the user when the user touches the screen, and analyze the current operation intention of the user by adopting the acquired condition.
102, acquiring an initial position of the touch operation;
in a multimedia playing interface, a terminal can acquire a touch position of a user touch operation in the process of monitoring the user touch operation so as to acquire the change condition of the touch position; the obtaining of the initial position of the user touch operation may be obtaining a touch point when the user starts to touch the screen on the multimedia playing interface.
In an embodiment of the present invention, in a multimedia playing interface, a touch point of a user when touching a screen may be obtained, where the touch point of the user when starting to touch the screen may be obtained by calling an onshwess () method to know that the current user is touching the screen when implementing a getcuredetector. The terminal obtains the touch point change of the user in the gesture change process by obtaining the touch point when the user starts to touch the screen.
103, constructing a circular touch interface by taking the initial position as a circle center and a preset distance threshold as a radius;
in an embodiment of the present invention, a circular touch interface may be constructed in the multimedia playing interface by using the coordinates of the touch point when the user starts to touch the screen as the center of a circle and using the preset distance threshold as the radius. It should be noted that the preset distance threshold may be multiple, that is, multiple circles with different radii may be constructed; it should be noted that the shape of the touch interface may be a circle, a square, a diamond, an ellipse, and the like, which is not limited in the embodiment of the present invention.
And when the terminal monitors the touch operation of the user on the multimedia playing interface, a visual touch interface is established on the multimedia playing interface. By constructing the touch interface, the mobile terminal not only can clearly obtain the touch operation of the user on the multimedia interface, but also the user can visually know the gesture change of the user on the touch interface.
Step 104, acquiring the current position of the touch operation, and determining the position relation between the current position of the touch operation and the touch interface;
in an embodiment of the invention, in the process of monitoring the gesture change of the user, the touch position of the touch operation of the user can be obtained in real time, so as to obtain the change condition of the touch position; the obtaining of the current position of the user touch operation may be obtaining a real-time touch point of the user on the multimedia playing interface. In a multimedia playing interface, determining the position relation between a real-time touch point of a user and a constructed touch interface, and judging which of the following three conditions the current touch point belongs to: the touch control interface is positioned within the range of the touch control interface, positioned on the boundary line of the touch control interface and positioned outside the range of the touch control interface.
And 105, adjusting the playing of the multimedia according to the position relation.
In an embodiment of the present invention, in the multimedia interface, the playing of the multimedia is adjusted according to the determined position relationship, the position relationship between the current touch point of the user and the touch interface is different, the adjustment rule for the playing of the multimedia is different, the playing of the multimedia changes with the change of the touch point, both are dynamic changing processes, that is, the playing of the multimedia is controlled by the gesture of the user.
The relationship between the current position of the touch operation of the user and the position of the touch interface is a dynamically changing relationship, because the current position is a dynamically changing coordinate point, which can be the end position of the touch operation when the user finishes touching the screen, or any position before the user finishes touching the screen; and adjusting the multimedia playing according to the position relationship, wherein the position relationship is a dynamically changing relationship, and the multimedia playing is further dynamically changed. Therefore, the playing of the multimedia is adjusted according to the acquired current position of the touch operation of the user on the multimedia playing interface, and the playing of the multimedia can be dynamically controlled.
In another embodiment provided by the present invention, a method for controlling playing of a multimedia resource is further provided, as shown in fig. 2, which shows a flowchart of steps of a second embodiment of the method for controlling playing of a multimedia resource according to the present invention, where the method of the present embodiment may include the following steps:
step 201, a user gesture monitoring method is created on a multimedia playing interface for monitoring a user touch operation of the multimedia playing interface.
And opening a multimedia application program or a player under the terminal, and when the multimedia resource starts playing or is paused, establishing a user gesture monitoring method for the terminal in a multimedia playing interface so as to monitor the touch operation of the user in the multimedia playing interface.
In an embodiment of the present invention, specifically, the mobile terminal may identify different gestures in the user touch operation through a gesture monitoring class getturedetector provided by the Android sdk, and implement the operation of controlling video playing according to the present invention according to the gesture in the monitored user touch operation.
Step 202, acquiring a touch point of a user when the user starts to touch a screen;
in an embodiment of the present invention, in the multimedia playing interface, when the terminal monitors the gesture of the user starting to touch the screen, the touch position of the user starting to touch the screen at the moment is obtained, and the method may call an onscreen () method to determine the starting position of the user touch operation, and obtain the touch point coordinate P0 at the moment (X0, Y0).
Step 203, constructing a circular touch interface by taking a touch point when a user starts to touch the screen as a circle center and a preset distance threshold as a radius;
the terminal acquires the coordinates of the touch point at the moment and creates and displays a touch interface visible for the user by monitoring the gesture of the user starting to touch the screen. The terminal may draw the touch interface on the multimedia playing interface with P0(X0, Y0) as the center, where the shape of the touch interface may be a circle, a square, a rectangle, an ellipse, or the like, which is not limited in this embodiment of the present invention.
In an embodiment of the invention, as shown in fig. 3, a schematic diagram of a touch interface according to an embodiment of the invention is shown. The touch interface is circular, the coordinates of the initial position of the user touch operation are P0(X0, Y0), a solid circle Round is drawn by taking P0 as a circle center and R0 as a radius, a Ring Ring is drawn by taking P0 as a circle center and R1(R1> R0) as a radius, and the combination of the solid circle Round and the Ring constitutes the touch interface. Wherein Round represents the current position of the user touch, and in the current touch, the point moves along with the movement of the user touch point; ring represents the limits of the Round range of motion, representing that in the current touch, Round is within the Ring range or Round is beyond the Ring range. It should be noted that the circular touch interface may be the combination, or a plurality of concentric circles with different radii may be drawn with the P0 as a center, which is not limited in the embodiment of the present invention.
The terminal adjusts the playing of the multimedia according to the touch operation by monitoring the touch operation acted on the multimedia interface by the user. The terminal is used for establishing and displaying the touch interface, so that the purpose of controlling the multimedia playing is achieved, the multimedia playing experience of the user is improved, and the user can know the change of the touch operation of the user.
Step 204, acquiring a touch point of a user when the user touches the screen currently, and determining the position relation between the current touch point and the touch interface;
in an embodiment of the present invention, in a multimedia playing interface, when a user performs touch dragging on a screen, a touch point thereof also moves along with movement of a touch operation of the user, and a touch point coordinate at this time is obtained, where the touch point coordinate at this time is a current position of the touch operation of the user; when the terminal monitors the gesture of a user starting to touch the screen and monitors the gesture change of the user, the touch position of the user touching the screen at the moment is obtained, the method can call an onScroll () method to determine the current position of the touch operation of the user, and obtain the current touch point coordinates, and it needs to be explained that the number of the current touch points can be multiple; and comparing the acquired current touch point coordinate with the constructed interface coordinate area of the touch interface, and determining the position relation between the current touch point coordinate and the touch interface.
Step 205, adjusting multimedia playing according to the position relation between the current touch point and the touch interface.
In the multimedia playing interface, the terminal acquires the position relationship between the current touch point of the user and the touch interface, and the playing of the multimedia is adjusted through the position relationship, it needs to be explained that the playing rules corresponding to different position relationships are different, the multimedia playing changes along with the change of the position relationship, and both are dynamic changing processes, namely, the playing of the multimedia is controlled according to the gesture change of the user. In one embodiment of the present invention, step 204 may include the following sub-steps:
substep S11, obtaining a dragging duration of the touch operation; the dragging duration is the dragging duration from the initial position of the touch operation to the current position;
in an embodiment of the present invention, when monitoring a gesture of a user starting to touch a screen, a terminal acquires a dragging duration of a user touch operation on a video playing interface, where the method of acquiring the dragging duration may be by creating a Timer, and starting to time by creating a good Timer, where the Timer starts to time from when the user starts to touch the screen until the user finishes timing the touch screen, and records a length of the time period, where the length of the time period is the dragging duration of the user touch operation.
And a substep S12, adjusting the multimedia playing according to the position relation when the dragging time reaches a preset time threshold.
In an embodiment of the present invention, when the terminal monitors a gesture of starting the touch of the user on the screen, a Timer may be created and a time with a length of T seconds may be set (a specific value of T may be set as required), where the value of T seconds is a preset time threshold. If the timer does not count the time Ts when the user finishes touching the screen, canceling the established timer; if the user touches the screen to Ts and the user does not finish touching the screen, reserving the established timer, and adjusting the playing of the multimedia according to the position relation between the touch point of the current touch screen of the user and the touch interface. In one embodiment of the present invention, the sub-step S12 may include the following sub-steps:
substep S121, according to the said position relation, adjust the multimedia playing speed;
and when the dragging time reaches Ts, adjusting the playing speed of the multimedia according to the position relation between the touch point of the current touch screen of the user and the touch interface. In an embodiment of the present invention, the number of the preset distance threshold is one; the circular touch interface comprises a circle with a preset distance threshold as a radius; the substep S121 may include the substeps of:
a substep S1211, obtaining a dragging distance of the touch operation; the dragging distance is the dragging distance from the initial position of the touch operation to the current position;
the method comprises the steps of obtaining a dragging distance of touch operation of a user, wherein in a circular touch interface, a terminal needs to obtain touch points of a user touch screen in real time in the process of monitoring gestures of the user so as to determine a starting position of starting to touch the screen and a current position of the user currently touching the screen, it needs to be noted that the current positions can be multiple, the current position can be an end position of the user finishing touching the screen, and the dragging distance of the user in the touch operation of a multimedia playing interface is determined through the two positions.
In an embodiment of the present invention, when implementing a getturedetector, on getturelistener monitor, by calling an onscreen (MotionEvent event e1, MotionEvent e2, floatdistanceX, float distanceY) method, in the method, touch point coordinates of the start and current two positions of a touch operation are obtained according to a distanceX (distance, pixel in the horizontal direction) parameter and a distanceY (distance, pixel in the vertical direction) parameter, and a current dragging distance is calculated according to the obtained two touch point coordinates.
For example, obtain the start bit of user touch operationAt this time, the coordinate of the touch point is P0(X0,Y0) (ii) a Acquiring the current position of touch operation of a user, wherein the coordinate of a touch point at the moment is Pn (Xn, Yn), and n is a positive integer; the dragging distance at this time is:
Figure BDA0002256011240000121
in the substep S1212, if the dragging distance is greater than or equal to the preset distance threshold, adjusting the multimedia playing speed by adopting a preset first speed; the preset first speed is determined according to the preset distance threshold;
the terminal obtains the time length of the user in the multimedia playing interface timer and the time length set by the timer, compares the time lengths of the terminal and the multimedia playing interface timer, and determines the target playing speed of the multimedia according to the comparison result of the terminal and the multimedia playing interface timer.
In an embodiment of the present invention, when the dragging distance is greater than or equal to a preset distance threshold, that is, when the current position of the user touch operation is located outside the range of the touch interface or on the boundary line of the touch interface, the multimedia playing speed may be adjusted by using a preset first speed. The preset first speed is determined as the target playing speed of the multimedia, and the playing speed of the multimedia is adjusted to the target playing speed. It should be noted that the preset first speed may be determined according to a preset threshold, and the larger the preset threshold is, the larger the corresponding preset first speed is; that is, if there are circular touch interfaces with different radii, the preset first speeds corresponding to the circles with different radii are different, and the larger the radius is, the larger the corresponding preset first speed is.
In the substep S1213, if the dragging distance is smaller than the preset distance threshold, adjusting the multimedia playing speed by adopting a preset second speed; and the preset second speed is determined according to the dragging distance, the preset distance threshold and the preset first speed.
In an embodiment of the present invention, when the dragging distance is smaller than the preset distance threshold and is within the range of the touch interface, the multimedia playing speed may be adjusted by using a preset second speed. The preset second speed can be obtained by calculating a ratio of the dragging distance to the preset distance threshold and adopting the ratio and the preset first speed, determining the preset second speed as a target playing speed, and adjusting the playing speed of the multimedia to the target playing speed.
In an embodiment of the present invention, the normal playing speed of the multimedia is set to 0, and the preset first playing speed of the video is set to S. When the dragging distance X is equal to 0, i.e.
Figure BDA0002256011240000122
At this time, the current position of the user touch operation is the same as the initial position, the target playing speed is the same as the normal playing speed, the playing speed of the multimedia is 0, and the playing speed of the multimedia is the normal playing speed; when the dragging distance X is greater than or equal to a preset distance threshold R, i.e. when the dragging distance X is greater than or equal to a preset distance threshold R
Figure BDA0002256011240000131
Then, determining the preset playing speed S as a target playing speed when the current touch position is located outside the range of the touch interface or on the touch interface boundary line, and determining the playing speed of the multimedia as S; when the dragging distance X is smaller than the preset distance threshold R, that is
Figure BDA0002256011240000132
Figure BDA0002256011240000133
And then, when the current touch position is located in the range of the touch interface, calculating the ratio of the dragging distance X to the preset distance threshold value R, and determining the target playing speed by adopting the product of the ratio X/R and the preset playing speed S, wherein the playing speed of the multimedia is the playing speed at the moment
Figure BDA0002256011240000134
The terminal acquires the dragging distance of the user in the touch operation of the multimedia playing interface, and adjusts the playing speed of the multimedia through the dragging distance, it needs to be explained that the playing speeds corresponding to different dragging distances are different, the playing speed of the multimedia changes along with the change of the dragging distance, and both the playing speeds are dynamic changing processes, namely the playing speed of the multimedia is controlled according to the gesture of the user. The gesture of the user on the touch screen can be detected by using the GesturreDetector through the mobile terminal, and the multimedia playing speed can be adjusted according to the transverse dragging distance of the gesture of the user, so that the aim of dynamically controlling the multimedia playing speed is fulfilled.
In another embodiment of the present invention, the number of the preset distance threshold is plural; the circular touch interface comprises areas divided by concentric circles with a plurality of preset distance thresholds as radiuses respectively; the above substep S121 may comprise the substeps of:
a substep S1211, determining a region of the current position in the circular touch interface;
in an embodiment of the present invention, a current position of a user touch operation is obtained, and a region of the current position in a circular touch interface may be determined, where the circular touch interface includes a plurality of concentric circles with different radii, and the plurality of concentric circles with different radii divide a circle or a circular ring region with different sizes; the onScroll () method can be called to determine the current position of the user touch operation, compare the acquired current touch point coordinate with the interface coordinate area of the constructed touch interface, and determine the position relationship between the current touch point coordinate and the area in the circular touch interface.
And a substep S1212, adjusting the multimedia playing speed according to the area of the current position in the circular touch interface.
In the multimedia playing interface, the terminal acquires the position relationship between the current touch point of the user and the area in the circular touch interface, and the playing of the multimedia is adjusted according to the position relationship, it needs to be explained that the playing rules corresponding to different position relationships are different, the multimedia playing changes along with the change of the position relationship, and both the multimedia playing and the playing are dynamic changing processes, namely, the playing of the multimedia is controlled according to the gesture change of the user.
And a substep S122, and/or adjusting the multimedia playing progress according to the position relation.
And when the dragging time reaches Ts, adjusting the playing progress of the multimedia according to the position relation between the touch point of the current touch screen of the user and the touch interface.
In one embodiment of the present invention, the sub-step S122 may include the following sub-steps:
step S1221, obtaining a dragging direction of the touch operation; the dragging direction is from the initial position of the touch operation to the current position;
acquiring a dragging distance of a user touch operation, and in a video playing interface, a mobile terminal needs to acquire a touch point of a user touch screen in real time in a process of monitoring a user gesture so as to determine a starting position of starting to touch the screen and a current position of the user currently touching the screen.
In an embodiment of the present invention, when implementing a getturedetector, on getturelistener monitor, an onFling (MotionEvent event e1, MotionEvent e2, streamvelockyx, float velockyy) method is called, in which a sliding direction of a touch operation is obtained according to a velockyx (moving speed in a horizontal direction, pixel/second) parameter and a velockyy (moving speed in a vertical direction, pixel/second) parameter, for example, when a user slides leftward by a distance exceeding 100px and the sliding speed exceeds 100px/s, it is determined that the touch operation slides leftward.
Step S1222, if the dragging direction is within the preset first direction range, adjusting the multimedia playing progress to fast forward;
the terminal acquires the dragging direction of a user on the multimedia playing interface, wherein the dragging direction can be any one direction within the range of 0-360 degrees, the terminal determines the range of the dragging direction, and the target playing progress direction of the multimedia is determined according to the result.
In an embodiment of the present invention, when the dragging direction is within a preset first direction range, the preset first direction range may be-90 ° (including 90 °), and the target play progress direction is a fast forward direction, and the multimedia play progress is adjusted to be fast forward.
And a substep S1223, if the dragging direction is within the preset second direction range, adjusting the multimedia playing progress to be a reverse direction.
In an embodiment of the present invention, when the dragging direction is within a preset second direction range, the preset second direction range may be 90 ° to 270 ° (including 270 °), and the target playing progress direction is a reverse direction, and the multimedia playing progress is adjusted to be reversed.
And step 206, after the touch operation is finished, removing the touch interface, keeping the current multimedia playing progress, and restoring the multimedia playing speed to the initial playing speed.
When the terminal monitors that the user finishes the gesture of touching the screen, the established timer is cancelled, the recorded length of the timing time period is cleared, and meanwhile, the touch interface element is removed from the multimedia playing area; and the current multimedia playing progress is kept, and the playing speed of the current multimedia is restored to the initial playing speed from the target playing speed. It should be noted that the initial play speed may be a normal play speed, or may be other play speeds, for example, a 1.5-time speed, a 2-time speed, and the like, which is not limited in this embodiment of the present invention.
In one embodiment of the invention, a multimedia application program or a player is opened under a mobile terminal, and when a multimedia resource starts to play or pauses, a user gesture monitoring method can be created through a gesture monitoring GesturreDetector provided by Android sdk on a multimedia playing interface for monitoring the touch operation of a user; when the terminal monitors the gesture of a user touching a screen, the touch point coordinates of the user touch operation can be obtained by calling an onScroll () method of an OnGestutureListener interface provided by a GestutureDetector, so that the initial position and the current position of the user in the multimedia playing interface touch operation can be obtained, and the position relationship between the current position and the touch interface can be known; the dragging time of the user in the touch operation of the multimedia playing interface can be determined by establishing a timer and timing the timer; the terminal can determine the target playing speed of the multimedia according to the dragging distance under the condition that the dragging duration meets the condition, and adjust the current playing speed of the multimedia to the target playing speed; the terminal can determine the target playing progress direction of the multimedia according to the dragging direction under the condition that the dragging duration meets the condition, and adjust the current playing speed of the multimedia to the target playing progress direction.
Since the touch point coordinates are dynamically changing coordinates, the drag distance is a dynamically changing value, and the target play speed is also a dynamically changing value. In the process of touch dragging of a user on a multimedia playing interface, a mobile terminal ceaselessly acquires the current touch point coordinate, ceaselessly calculates the dragging distance at the moment, ceaselessly determines the target playing speed at the moment and adjusts the playing speed of multimedia to the target playing speed until the terminal monitors the gesture of finishing touching the screen by the user. The embodiment of the invention can realize the technical effect of dynamically controlling the playing speed of the multimedia.
To facilitate understanding of the solution of the present invention, the following description is made in conjunction with an application scenario.
In another embodiment provided by the present invention, an application scenario of the video playing control method is further provided, as shown in fig. 4, which shows a schematic view of an application scenario of the video playing control method in an embodiment of the present invention. The playing interface is a video playing interface under the mobile terminal, the playing progress of the video content is displayed in the direction of the transverse axis, and the longer the playing duration of the video content is, the farther the slide block in the progress bar is from the initial end on the left side of the progress bar; when the user touches the video playing interface and the touch time reaches 1s (in the embodiment of the present invention, T is 1s), and the touch is not finished, a circular interface combining a solid circle and a ring is displayed in the video playing interface, which is a user touch interface, and the user can drag the solid circle within or outside the range of the ring.
In the user touch interface, a user uses a finger to touch and drag the solid circle from left to right in the range of the circular ring, which means that the user adjusts the playing speed and the playing progress of the currently played video. It should be noted that, in the embodiment of the present invention, the touch dragging operation of the user on the touch interface is in a left-to-right direction, that is, the dragging direction range at this time is-90 ° to 90 °, and the current video playing progress is in a fast forward direction; the embodiment of the present invention does not limit this to the direction of the touch drag operation.
In the application scene, coordinate points of two current positions are taken in the touch dragging process, and the video target playing speeds from the initial positions to the two current positions of the user are determined and adjusted. It should be noted that, in the process of dragging by the user touch operation, there are a plurality of current positions, and there are a plurality of positions in the process from the initial position to the first current position and from the initial position to the second current position.
Assuming that the mobile device is a full-screen mobile phone, the size of the mobile phone is 5.8 inches, i.e. 14.8cm × 7.1cm, the currently played video is in a full-screen playing mode, and the size of the playing interface of the video is 14cm × 7cm at this time. It is known that the shape of the user touch interface element is circular, and the initial position of the user touch operation is set as P0(9.5,3) by P0(9.5,3) drawing a solid circle Round with a radius of 0.5cm and R0 as the center, and taking P as the radius0(9.5,3) drawing a Ring Ring by taking the circle center R1 as the radius of 2 cm; and the initial playing speed of the video is set as the normal speed, namely 0.
Setting the first current position as P1(10.5,3), the second current position is P2(12.5,3), the preset dragging distance threshold at this time, R-R1-2 cm (in this case, R0)<R<R1), the preset playing speed S is 2 cm/S;
the user starts from the starting position P of the touch operation0Dragging from left to right to a first current position P1Drag distance of
Figure BDA0002256011240000161
At the moment, the playing progress of the video is fast forward;
at this time X1<R is thatThe current position is located within the range of the ring R1, then the playing speed of the multimedia is
Figure BDA0002256011240000162
User starts from the starting position P of touch operation0Dragging from left to right, past the first current position P1To the second current position P2Drag distance of
Figure BDA0002256011240000171
At the moment, the playing progress of the video is fast forward;
at this time X2And R, namely the current position is positioned outside the circular ring R1, the playing speed of the multimedia is 2cm/s at the moment.
It should be noted that, R0< R1, where the range of R values may also be R1, and may also be R > R1, which is not limited in this embodiment of the present invention; the initial playing speed and the preset playing speed S of the video may have other values, which is not limited in the embodiment of the present invention.
In a video playing interface of the mobile terminal, when a user starts to touch a screen on a touch interface and touches and drags to a first current position, the first current position is located within the range of a circular ring R1, the playing speed of a current video is changed from an initial playing speed of 0 to a target playing speed of 1cm/s, namely the playing speed is adjusted from a normal playing speed to a 2-time playing speed; when the user touches and drags from the first current position to the second current position, the second current position is located outside the range of the ring R1, and the playing speed of the current video is changed from 1cm/s to 2 cm/s; as the user performs touch operation from left to right, namely the current dragging direction range is-90 degrees, the playing progress of the current video is a fast-forward direction; when the user finishes touching the screen, the touch interface disappears on the video playing interface, the playing speed of the current video is changed from 2cm/s to 0, namely, the playing speed is restored to the normal playing speed from 3 times, and the current video playing progress is kept unchanged. The embodiment of the invention realizes the aim of dynamically controlling the playing of the video by the user.
To facilitate an understanding of the inventive arrangements, the following description is provided in connection with yet another application scenario.
In another embodiment provided by the present invention, an application scenario of the video playing control method is further provided, as shown in fig. 5, which shows a schematic diagram of an application scenario two of the video playing control method in the embodiment of the present invention. The playing interface is a video playing interface under the mobile terminal, a circular interface formed by combining a solid circle and a plurality of concentric circles of different sizes is displayed in the video playing interface, the interface is a user touch interface, and a user can drag the solid circle in the areas inside and outside the concentric circles.
In the user touch interface, a user uses a finger to touch and drag the solid circle to the upper left in the range of the circular ring area, which means that the user adjusts the playing speed and the playing progress of the currently played video. In the embodiment of the present invention, the touch and drag operation of the user on the touch interface is from right to oblique left and upward, that is, the drag direction range is 90 ° to 270 °. The current video playing progress direction is a reverse direction; the embodiment of the present invention does not limit this to the direction of the touch drag operation.
In the application scene, coordinate points of two current positions are taken in the touch dragging process, and the video target playing speeds from the initial positions to the two current positions of the user are determined and adjusted. It should be noted that, in the process of dragging by the user touch operation, there are a plurality of current positions, and there are a plurality of positions in the process from the initial position to the first current position and from the initial position to the second current position.
Assuming that the mobile device is a full-screen mobile phone, the size of the mobile phone is 5.8 inches, i.e. 14.8cm × 7.1cm, the currently played video is in a full-screen playing mode, and the size of the playing interface of the video is 14cm × 7cm at this time. It is known that the shape of the user touch interface element is circular, and the initial position of the user touch operation is set as P0(9.5,3) drawing a solid circle Round with P0(9.5,3) as the center and R0 ═ 0.5cm as the radius; drawing a ring by taking P0(9.5,3) as a center and taking R1 as 1.5cm as a radiusRing1, setting the preset playing speed at this time as S1 ═ 1 cm/S; drawing a Ring Ring2 by taking P0(9.5,3) as a center and R2-2.5 cm as a radius, and setting the preset playing speed at the moment as S2-2 cm/S; and the initial playing speed of the video is set as the normal speed, namely 0.
Assuming that the first current position is P1(7.5,4) and the second current position is P2(8.5,5), the dragging distance from the initial position P0 of the touch operation to the first current position P1 from the right-side to the oblique upper left side is P1
Figure BDA0002256011240000181
At the moment, the playing progress of the video is reversed;
at this time, X1< R1, that is, the current position is in the region of the circle R1, then the playing speed of the video is the preset playing speed S1 ═ 1 cm/S;
the dragging distance of the user from the starting position P0 of the touch operation to the second current position P2 from the right to the obliquely upper left
Figure BDA0002256011240000182
At the moment, the playing progress of the video is reversed;
at this time, R1< X2< R2, that is, the current position is located in the region between the ranges of the circles R1 and R2, the playing speed of the video at this time is the preset playing speed S2 ═ 2 cm/S.
It should be noted that the number of the concentric rings may be 2, or may be N (where N is a positive integer), which is not limited in the embodiment of the present invention; the preset playback speed values inside and outside the different circular ring regions are not limited in the embodiments of the present invention.
In another embodiment of the present invention, a playing control device for multimedia resources is further provided, as shown in fig. 6, which shows a schematic structural diagram of an embodiment of a playing control device for multimedia resources according to the present invention, and the device of this embodiment may include:
a touch operation monitoring module 601, configured to monitor a touch operation performed by a user on a preset multimedia playing interface;
a starting position obtaining module 602, configured to obtain a starting position of the touch operation;
a touch interface construction module 603, configured to construct a circular touch interface with a preset distance threshold as a radius according to the starting position as a circle center;
a current position obtaining module 604, configured to obtain a current position of the touch operation;
a position relation determining module 605, configured to determine a position relation between the current position of the touch operation and the touch interface;
a multimedia playing adjusting module 606, configured to adjust playing of multimedia according to the position relationship;
the touch interface removing module 607 is configured to remove the touch interface after the touch operation is finished, maintain the current multimedia playing progress, and restore the multimedia playing speed to the initial playing speed.
In an embodiment of the present invention, the multimedia playing adjusting module 606 includes:
the dragging duration acquisition submodule is used for acquiring the dragging duration of the touch operation; the dragging duration is the dragging duration from the initial position of the touch operation to the current position;
and the multimedia playing adjustment submodule is used for adjusting the playing of the multimedia according to the position relation when the dragging time reaches a preset time threshold.
In an embodiment of the present invention, the multimedia playing adjustment submodule includes:
the playing speed adjusting unit is used for adjusting the multimedia playing speed according to the position relation;
and/or the playing progress adjusting unit is used for adjusting the multimedia playing progress according to the position relation.
In an embodiment of the present invention, the number of the preset distance threshold is one; the circular touch interface comprises a circle with a preset distance threshold as a radius; the play-speed adjusting unit includes:
the dragging distance acquiring subunit is used for acquiring the dragging distance of the touch operation; the dragging distance is the dragging distance from the initial position of the touch operation to the current position;
the first playing speed adjusting subunit is configured to adjust the multimedia playing speed by using a preset first speed if the dragging distance is greater than or equal to the preset distance threshold; the preset first speed is determined according to the preset distance threshold;
a second playing speed adjusting subunit, configured to adjust the multimedia playing speed by using a preset second speed if the dragging distance is smaller than the preset distance threshold; and the preset second speed is determined according to the dragging distance, the preset distance threshold and the preset first speed.
In an embodiment of the present invention, the number of the preset distance threshold is multiple; the circular touch interface comprises areas divided by concentric circles with a plurality of preset distance thresholds as radiuses respectively; the play-speed adjusting unit includes:
the interface area determining subunit is used for determining an area of the current position in the circular touch interface;
and the area playing speed adjusting subunit is used for adjusting the multimedia playing speed according to the area of the current position in the circular touch interface.
In an embodiment of the present invention, the play progress adjusting unit includes:
the dragging direction acquiring subunit is used for acquiring the dragging direction of the touch operation; the dragging direction is from the initial position of the touch operation to the current position;
a first playing progress adjusting subunit, configured to adjust the multimedia playing progress to fast forward if the dragging direction is within a preset first direction range;
and the second playing progress adjusting subunit is used for adjusting the multimedia playing progress to be reversed if the dragging direction is within a preset second direction range.
An embodiment of the present invention further provides an electronic device, as shown in fig. 7, including a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702, and the memory 703 complete mutual communication through the communication bus 704,
a memory 703 for storing a computer program;
the processor 701 is configured to implement the steps of the method for controlling playback of a multimedia resource as described above when executing the program stored in the memory 703:
monitoring touch operation of a user on a preset multimedia playing interface;
acquiring an initial position of the touch operation;
constructing a circular touch interface by taking the initial position as a circle center and a preset distance threshold as a radius;
acquiring the current position of the touch operation, and determining the position relation between the current position of the touch operation and the touch interface;
and adjusting the playing of the multimedia according to the position relation.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which instructions are stored, and when the instructions are executed on a computer, the computer is enabled to execute the method for controlling playing of a multimedia resource according to any one of the above embodiments.
In another embodiment of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the method for controlling playback of a multimedia asset as described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (16)

1. A method for controlling playback of a multimedia asset, the method comprising:
monitoring touch operation of a user on a preset multimedia playing interface;
acquiring an initial position of the touch operation;
constructing a circular touch interface by taking the initial position as a circle center and a preset distance threshold as a radius;
acquiring the current position of the touch operation, and determining the position relation between the current position of the touch operation and the touch interface;
and adjusting the playing of the multimedia according to the position relation.
2. The method according to claim 1, wherein said adjusting the playing of the multimedia according to the position relationship comprises:
acquiring the dragging duration of the touch operation; the dragging duration is the dragging duration from the initial position of the touch operation to the current position;
and when the dragging time length reaches a preset time length threshold value, the playing of the multimedia is adjusted according to the position relation.
3. The method according to claim 1 or 2, wherein said adjusting the playing of the multimedia according to the position relationship comprises:
adjusting the multimedia playing speed according to the position relation;
and/or adjusting the multimedia playing progress according to the position relation.
4. The method according to claim 3, characterized in that the number of said preset distance thresholds is one; the circular touch interface comprises a circle with a preset distance threshold as a radius; the adjusting the multimedia playing speed according to the position relationship comprises:
acquiring a dragging distance of the touch operation; the dragging distance is the dragging distance from the initial position of the touch operation to the current position;
if the dragging distance is greater than or equal to the preset distance threshold, adjusting the multimedia playing speed by adopting a preset first speed; the preset first speed is determined according to the preset distance threshold;
if the dragging distance is smaller than the preset distance threshold, adjusting the multimedia playing speed by adopting a preset second speed; and the preset second speed is determined according to the dragging distance, the preset distance threshold and the preset first speed.
5. The method according to claim 3, wherein the number of the preset distance threshold is plural; the circular touch interface comprises areas divided by concentric circles with a plurality of preset distance thresholds as radiuses respectively; the adjusting the multimedia playing speed according to the position relationship comprises:
determining an area of the current position in the circular touch interface;
and adjusting the multimedia playing speed according to the area of the current position in the circular touch interface.
6. The method according to claim 3, wherein the adjusting the multimedia playing progress according to the position relationship comprises:
acquiring the dragging direction of the touch operation; the dragging direction is from the initial position of the touch operation to the current position;
if the dragging direction is within a preset first direction range, adjusting the multimedia playing progress to be fast forward;
and if the dragging direction is within a preset second direction range, adjusting the multimedia playing progress to be reversed.
7. The method of claim 1, further comprising:
and after the touch operation is finished, removing the touch interface, keeping the current multimedia playing progress, and restoring the multimedia playing speed to the initial playing speed.
8. A playback control apparatus for a multimedia asset, the apparatus comprising:
the touch operation monitoring module is used for monitoring the touch operation of a user on a preset multimedia playing interface;
the initial position acquisition module is used for acquiring an initial position of the touch operation;
the touch interface construction module is used for constructing a circular touch interface by taking the initial position as a circle center and a preset distance threshold as a radius;
the current position acquisition module is used for acquiring the current position of the touch operation and determining the position relation between the current position of the touch operation and the touch interface;
the position relation determining module is used for determining the position relation between the current position of the touch operation and the touch interface;
and the multimedia playing adjusting module is used for adjusting the playing of the multimedia according to the position relation.
9. The apparatus of claim 8, wherein the multimedia play adjustment module comprises:
the dragging duration acquisition submodule is used for acquiring the dragging duration of the touch operation; the dragging duration is the dragging duration from the initial position of the touch operation to the current position;
and the multimedia playing adjustment submodule is used for adjusting the playing of the multimedia according to the position relation when the dragging time reaches a preset time threshold.
10. The apparatus of claim 9, wherein the multimedia play adjustment submodule comprises:
the playing speed adjusting unit is used for adjusting the multimedia playing speed according to the position relation;
and/or the playing progress adjusting unit is used for adjusting the multimedia playing progress according to the position relation.
11. The apparatus according to claim 10, wherein the number of the preset distance threshold is one; the circular touch interface comprises a circle with a preset distance threshold as a radius; the play-speed adjusting unit includes:
the dragging distance acquiring subunit is used for acquiring the dragging distance of the touch operation; the dragging distance is the dragging distance from the initial position of the touch operation to the current position;
the first playing speed adjusting subunit is configured to adjust the multimedia playing speed by using a preset first speed if the dragging distance is greater than or equal to the preset distance threshold; the preset first speed is determined according to the preset distance threshold;
a second playing speed adjusting subunit, configured to adjust the multimedia playing speed by using a preset second speed if the dragging distance is smaller than the preset distance threshold; and the preset second speed is determined according to the dragging distance, the preset distance threshold and the preset first speed.
12. The apparatus according to claim 10, wherein the number of the preset distance threshold is plural; the circular touch interface comprises areas divided by concentric circles with a plurality of preset distance thresholds as radiuses respectively; the play-speed adjusting unit includes:
the interface area determining subunit is used for determining an area of the current position in the circular touch interface;
and the area playing speed adjusting subunit is used for adjusting the multimedia playing speed according to the area of the current position in the circular touch interface.
13. The apparatus of claim 10, wherein the play progress adjusting unit comprises:
the dragging direction acquiring subunit is used for acquiring the dragging direction of the touch operation; the dragging direction is from the initial position of the touch operation to the current position;
a first playing progress adjusting subunit, configured to adjust the multimedia playing progress to fast forward if the dragging direction is within a preset first direction range;
and the second playing progress adjusting subunit is used for adjusting the multimedia playing progress to be reversed if the dragging direction is within a preset second direction range.
14. The apparatus of claim 8, further comprising:
and the touch interface removing module is used for removing the touch interface after the touch operation is finished, keeping the current multimedia playing progress and restoring the multimedia playing speed to the initial playing speed.
15. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 7 when executing a program stored in the memory.
16. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN201911053824.4A 2019-10-31 2019-10-31 Playing control method and device for multimedia resources Active CN111061412B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911053824.4A CN111061412B (en) 2019-10-31 2019-10-31 Playing control method and device for multimedia resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911053824.4A CN111061412B (en) 2019-10-31 2019-10-31 Playing control method and device for multimedia resources

Publications (2)

Publication Number Publication Date
CN111061412A true CN111061412A (en) 2020-04-24
CN111061412B CN111061412B (en) 2022-02-25

Family

ID=70298311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911053824.4A Active CN111061412B (en) 2019-10-31 2019-10-31 Playing control method and device for multimedia resources

Country Status (1)

Country Link
CN (1) CN111061412B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738627A (en) * 2020-12-23 2021-04-30 上海哔哩哔哩科技有限公司 Play control method and device
CN113507647A (en) * 2021-07-23 2021-10-15 广州酷狗计算机科技有限公司 Multimedia data play control method, device, terminal and readable storage medium
CN114390347A (en) * 2021-12-06 2022-04-22 上海工程技术大学 Wide-screen media playing rate control system and method
CN114598912A (en) * 2022-02-10 2022-06-07 互影科技(北京)有限公司 Multimedia file display method and device, storage medium and electronic equipment
CN114911407A (en) * 2022-06-20 2022-08-16 上海联影医疗科技股份有限公司 Image playing control device of medical diagnosis and treatment system
CN116320642A (en) * 2023-05-22 2023-06-23 北京达佳互联信息技术有限公司 Multimedia resource playing method, device, terminal and storage medium
CN116350113A (en) * 2023-05-31 2023-06-30 科沃斯家用机器人有限公司 Robot control method, system and client device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103226960A (en) * 2013-03-21 2013-07-31 北京小米科技有限责任公司 Method and device for controlling play of multimedia data
CN103513918A (en) * 2013-04-27 2014-01-15 展讯通信(上海)有限公司 Method and device capable of controlling playing progress on touch control equipment and touch control equipment
CN103809888A (en) * 2012-11-12 2014-05-21 北京三星通信技术研究有限公司 Mobile terminal and manipulation method thereof
CN106155458A (en) * 2015-04-01 2016-11-23 腾讯科技(深圳)有限公司 A kind of Multimedia Message player method and device
CN106383642A (en) * 2016-09-09 2017-02-08 北京金山安全软件有限公司 Display method and related device for control of media playing interface
US20190087060A1 (en) * 2017-09-19 2019-03-21 Sling Media Inc. Dynamic adjustment of media thumbnail image size based on touchscreen pressure

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103809888A (en) * 2012-11-12 2014-05-21 北京三星通信技术研究有限公司 Mobile terminal and manipulation method thereof
CN103226960A (en) * 2013-03-21 2013-07-31 北京小米科技有限责任公司 Method and device for controlling play of multimedia data
CN103513918A (en) * 2013-04-27 2014-01-15 展讯通信(上海)有限公司 Method and device capable of controlling playing progress on touch control equipment and touch control equipment
CN106155458A (en) * 2015-04-01 2016-11-23 腾讯科技(深圳)有限公司 A kind of Multimedia Message player method and device
CN106383642A (en) * 2016-09-09 2017-02-08 北京金山安全软件有限公司 Display method and related device for control of media playing interface
US20190087060A1 (en) * 2017-09-19 2019-03-21 Sling Media Inc. Dynamic adjustment of media thumbnail image size based on touchscreen pressure

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738627A (en) * 2020-12-23 2021-04-30 上海哔哩哔哩科技有限公司 Play control method and device
CN113507647A (en) * 2021-07-23 2021-10-15 广州酷狗计算机科技有限公司 Multimedia data play control method, device, terminal and readable storage medium
CN113507647B (en) * 2021-07-23 2024-02-20 广州酷狗计算机科技有限公司 Method, device, terminal and readable storage medium for controlling playing of multimedia data
CN114390347A (en) * 2021-12-06 2022-04-22 上海工程技术大学 Wide-screen media playing rate control system and method
CN114390347B (en) * 2021-12-06 2024-04-26 上海工程技术大学 Control method of wide-screen media playing speed control system
CN114598912A (en) * 2022-02-10 2022-06-07 互影科技(北京)有限公司 Multimedia file display method and device, storage medium and electronic equipment
CN114598912B (en) * 2022-02-10 2024-05-10 互影科技(北京)有限公司 Multimedia file display method and device, storage medium and electronic equipment
CN114911407A (en) * 2022-06-20 2022-08-16 上海联影医疗科技股份有限公司 Image playing control device of medical diagnosis and treatment system
CN116320642A (en) * 2023-05-22 2023-06-23 北京达佳互联信息技术有限公司 Multimedia resource playing method, device, terminal and storage medium
CN116320642B (en) * 2023-05-22 2024-01-19 北京达佳互联信息技术有限公司 Multimedia resource playing method, device, terminal and storage medium
CN116350113A (en) * 2023-05-31 2023-06-30 科沃斯家用机器人有限公司 Robot control method, system and client device
CN116350113B (en) * 2023-05-31 2023-08-08 科沃斯家用机器人有限公司 Robot control method, system and client device

Also Published As

Publication number Publication date
CN111061412B (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN111061412B (en) Playing control method and device for multimedia resources
US11816303B2 (en) Device, method, and graphical user interface for navigating media content
US11599154B2 (en) Adaptive enclosure for a mobile computing device
CN115048007B (en) Device and method for adjusting interface operation icon distribution range and touch screen device
US20140270414A1 (en) Auxiliary functionality control and fingerprint authentication based on a same user input
CN103069379A (en) Motion continuation of touch input
JP6273081B2 (en) Content moving method and apparatus using pointing device
CN107608601B (en) Video playback method, mobile terminal and computer readable storage medium
TWI556155B (en) Electronic apparatus and messaging method
CN107105342B (en) Video playing control method and mobile terminal
CN112099707A (en) Display method and device and electronic equipment
CN110647286A (en) Screen element control method, device, equipment and storage medium
CN112887802A (en) Video access method and device
WO2017054142A1 (en) Video data acquisition method, apparatus and system, and computer readable storage medium
JP2018531564A6 (en) Method, apparatus and system for obtaining video data and computer-readable storage medium
TWI595407B (en) Electronic apparatus and display switching method
WO2018157655A1 (en) Method and device for redefining control display area of screen
US9875020B2 (en) Method for capturing user input from a touch screen and device having a touch screen
WO2020000974A1 (en) Video recording method, client, terminal and storage medium
US20150169153A1 (en) Enhancing a viewing area around a cursor
CN113691869B (en) Video playing method and device and electronic equipment
CN112911400B (en) Video playing control method and device, storage medium and mobile terminal
US20240045572A1 (en) Device, method, and graphical user interface for navigating media content
AU2017200632B2 (en) Device, method and, graphical user interface for navigating media content
CN115474087A (en) Bullet screen control 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
GR01 Patent grant
GR01 Patent grant