CN104918121A - Media stream play control method and client - Google Patents

Media stream play control method and client Download PDF

Info

Publication number
CN104918121A
CN104918121A CN201410092940.8A CN201410092940A CN104918121A CN 104918121 A CN104918121 A CN 104918121A CN 201410092940 A CN201410092940 A CN 201410092940A CN 104918121 A CN104918121 A CN 104918121A
Authority
CN
China
Prior art keywords
progress rate
playing progress
control
current operation
predetermine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410092940.8A
Other languages
Chinese (zh)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201410092940.8A priority Critical patent/CN104918121A/en
Publication of CN104918121A publication Critical patent/CN104918121A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a media stream play control method. The method comprises steps: a control for progress control is built; a control for auxiliary control is built in an adjacent region of the control for progress control; an input event of a user on the control for auxiliary control is captured; according to the input event, a play progress control command for the media stream is generated; and according to the play progress control command for the media stream, the play progress of the media stream is adjusted. Through building the control for auxiliary control in the adjacent region of the control for progress control and adjusting the play progress of the media stream according to input of the user on the control for auxiliary control, a diversified adjustment scheme is provide, and use experience of the user is greatly enhanced.

Description

Media Stream control method for playing back and client
Technical field
The application relates to multimedia player field, particularly a kind of Media Stream control method for playing back and client.
Background technology
In actual life, people use player plays video or audio file.Such as utilize player plays movie or television acute, or play music.
Refer to Fig. 1, existing player generally includes video display window 1, progress bar 2, Play Control button harmony tone joint button etc.In the process of playing video file, in the content of display window display video, can show the progress of current broadcasting at progress bar.
In some cases, user watches in the process of video, or listen in the process of music, midway stops playing, follow-up when again opening video or audio file, may wish that the time point stopped from last time continues viewing video or listens to music, now user can drag progress bar, realizes regulating playing progress rate.
In existing player, all adopt the progress bar of elongate in shape, this progress bar uses as current played file time coordinate axle, is slided on a progress bar by progress block, just can navigate to the different time coordinate of current played file, realizes regulating playing progress rate.But existing progress bar regulates the Method compare of progress single, cannot meet the diversified user demand that user regulates playing progress rate.
Summary of the invention
The object of the application's execution mode is to provide a kind of Media Stream control method for playing back and client, can provide user multiple progress regulative mode.
For solving the problems of the technologies described above, the application provides a kind of Media Stream control method for playing back, comprising: create progress monitoring control; Auxiliary control control is created at progress monitoring control adjacent area; Catch the incoming event of user on auxiliary control control; The playing progress rate control command of described Media Stream is generated according to described incoming event; The playing progress rate of described Media Stream is adjusted according to the playing progress rate control command of described Media Stream.
The application also provides a kind of client, and described client comprises: control creation module, for creating progress monitoring control, and creates auxiliary control control at progress monitoring control adjacent area; Event capture module, for catching the incoming event of user on described auxiliary control control; Order generation module, for generating the playing progress rate control command of described Media Stream according to described incoming event; Adjustment module, for adjusting the playing progress rate of described Media Stream according to the playing progress rate control command of described Media Stream.
The technical scheme provided from above the application's execution mode, the application realizes by creating auxiliary control control at the adjacent area of progress monitoring control, and the playing progress rate of Media Stream is regulated according to the input of user on auxiliary control control, provide a kind of regulation scheme of diversification, improve the experience of user greatly.
Accompanying drawing explanation
In order to be illustrated more clearly in the application's execution mode or technical scheme of the prior art, be briefly described to the accompanying drawing used required in execution mode or description of the prior art below, apparently, the accompanying drawing that the following describes is only some execution modes recorded in the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic diagram of the player that Fig. 1 provides for prior art;
The flow chart of the Media Stream control method for playing back that Fig. 2 provides for the application's execution mode;
The flow chart of the Media Stream control method for playing back that Fig. 3 provides for the application's execution mode;
In the Media Stream control method for playing back that Fig. 4 provides for the application's execution mode, regulate the flow chart of the sub-step of playing progress rate;
The schematic diagram that the predetermine one that Fig. 5 provides for the application's execution mode rotates;
In the Media Stream control method for playing back that Fig. 6 provides for the application's execution mode, regulate the flow chart of the sub-step of playing progress rate according to current operation angle;
In the Media Stream control method for playing back that Fig. 7 provides for the application's execution mode, regulate the flow chart of the sub-step of playing progress rate according to current operation angle;
In the Media Stream control method for playing back that Fig. 8 provides for the application's execution mode, regulate the flow chart of the sub-step of playing progress rate according to current operation angle;
In the Media Stream control method for playing back that Fig. 9 provides for the application's execution mode, regulate the flow chart of the sub-step of playing progress rate;
In the Media Stream control method for playing back that Figure 10 provides for the application's execution mode, regulate the flow chart of the sub-step of playing progress rate according to current operation angle and current operation speed;
In the Media Stream control method for playing back that Figure 11 provides for the application's execution mode, regulate the flow chart of the sub-step of playing progress rate according to current operation angle and current operation speed;
The module diagram of the client that Figure 12 provides for the application's execution mode.
Embodiment
Technical scheme in the application is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the application's execution mode, technical scheme in the application's execution mode is clearly and completely described, obviously, described execution mode is only the application's part execution mode, instead of whole execution modes.Based on the execution mode in the application, those of ordinary skill in the art are not making the every other execution mode obtained under creative work prerequisite, all should belong to the scope of the application's protection.
Refer to Fig. 2, the Media Stream control method for playing back that an execution mode for the application provides.Described Media Stream control method for playing back be applicable to any can the equipment of audio plays or video, such as Mp4, mobile phone, panel computer, notebook computer, desktop computer or television set etc., divide according to mode of operation, this method goes for having the equipment of touching-type monitor and the equipment of non-tactile display.Described Media Stream control method for playing back comprises the following steps.
Step S10: create progress monitoring control; Auxiliary control control is created at progress monitoring control adjacent area.
In the present embodiment, when Media Stream is play, can display the play window on a display of the device, usually below broadcast window, creates progress monitoring control.Described progress monitoring control shows the playing progress rate of described Media Stream, and receives the input of user on described progress monitoring control.Concrete, be exemplified as: such as progress monitoring control can be progress bar, and user is input as the progress block dragging progress bar, then can corresponding progress block drag after the current playing progress rate of position adjustments.Auxiliary control control is arranged at the adjacent area of progress monitoring control, can for above or below progress monitoring control.Auxiliary control control may be used for the playing progress rate regulating Media Stream, but the amplitude regulated can be different from progress monitoring control.Be exemplified as: the auxiliary control that controls goes for regulating playing progress rate by a small margin, so improves degree of regulation.
Step S20: catch the incoming event of user on auxiliary control control.
In the present embodiment, described incoming event comprises touch event and mouse event.Corresponding to the equipment with touching-type monitor, display senses touch, can be both an incoming event, in present embodiment, catches and occurs in the auxiliary incoming event controlled on control.Corresponding to the equipment of non-touch sensitive display, can streak or click on auxiliary control control by mouse, form an incoming event.
In the present embodiment, auxiliary control control can be Concealable object, and after incoming event being detected, display is auxiliary controls control; When incoming event not detected, do not show.The auxiliary control that controls so can be avoided to take display space, user can also be convenient to and operate.
Step S30: the playing progress rate control command generating described Media Stream according to described incoming event.
Step S40: the playing progress rate adjusting described Media Stream according to the playing progress rate control command of described Media Stream.
In the present embodiment, in incoming event, the input of user can be received.Such as in the touch of auxiliary control control, or mouse is in the dragging etc. of auxiliary control control, and certainly, described input also may exist other form, at this as space is limited, no longer enumerates.Formulate the control command regulating playing progress rate according to incoming event, this control command is originally as the signal of telecommunication, but it represents the adjustment to playing progress rate, can comprise adjusting range and adjustment direction.The adjustable time span of adjusting range, adjustment direction can regulate towards the end of current played file, or towards the initial adjustment of current played file.
In the present embodiment, all there is a total duration in Media Stream such as video or audio file, in the process play, is using the time as coordinate, when the time coordinate residing for the content that Media Stream is play is playing progress rate.In the process that a Media Stream is play, user probably can regulate playing progress rate, to obtain desired content.Such as, be exemplified as: user is when watching video, and midway stops viewing, follow-uply plays this video once again, obvious user does not wish to repeat viewing for the video content seen, then the content that may progress be regulated forward to skip over to have watched; User needs to watch once once again after also may have viewed video part content, then may replay this partial content to readjustment joint progress.In like manner, user also may regulate the playing progress rate of audio frequency forward or backward.
In an execution mode of the application, described step S30 also comprises following sub-step: the playing progress rate control command generating described Media Stream according to described incoming event and the current state information of described progress monitoring control.
In the present embodiment, can determine to need the duration by playing progress rate adjustment according to incoming event, and the direction regulated, state information that can be current according to progress monitoring control, understand current playing progress rate, in conjunction with the duration regulated and current playing progress rate, can draw the time coordinate of the rear playing progress rate of adjustment, playing progress rate control command can for be adjusted to described time coordinate by playing progress rate.
In an execution mode of the application, described auxiliary control control comprises default object, presets the motion of object according to incoming event Dynamic Announce.
In the present embodiment, predetermine one can be an element that can show on a display of the device, and it can respond incoming event and move.This motion can be moved for the position of predetermine one, and namely moving to another position from a position, also can be the rotation of predetermine one self, can also be predetermine one show or hide in the display.Concrete, be exemplified as: incoming event can for move to another position by predetermine one from a position, corresponding to the equipment with touching-type monitor, can sense user's finger for touching-type monitor or pointer slides into another position to the touch of display from the current location of predetermine one, predetermine one moves to another position described from current location accordingly; Corresponding to the equipment with non-touch sensitive display, such as desktop computer, after mouse is clicked, slide into another position from the current location of predetermine one, predetermine one response incoming event, moves to described another location from current location.Certainly, the position of described predetermine one also can be fixing, and its motion can be only limitted to rotate, and can not move.Its shape can be regular irregular geometry, such as triangle, quadrangle, pentagon, circle or semicircle, or such as in gear shape or rounded, then or is designed to rocking bar shape etc. and will not enumerate as space is limited at this.
Refer to Fig. 3, in one embodiment, described Media Stream control method for playing back also comprises the steps.
Step S50: the motion monitoring described predetermine one.
In the present embodiment, incoming event causes the motion of predetermine one, may cause different functions, and monitor the motion of predetermine one, motion that just can be different according to predetermine one, starts corresponding function.Concrete, be exemplified as: predetermine one is moved to another location from current location, if this another position is the border of display, then may trigger the hidden function of predetermine one; Predetermine one is moved to the toolbar of software from current location, then predetermine one may be made to be embedded in toolbar; Predetermine one is rotated, then may trigger the function that progress regulates.Certainly, also only can monitor whether predetermine one there occurs rotation, find that predetermine one there occurs rotation, then trigger progress regulatory function.
Step S60: when described predetermine one rotates, regulates current playing progress rate.
In the present embodiment, predetermine one rotates, then trigger progress regulatory function.Predetermine one response incoming event rotates, and can be the geometry center rotating relative to predetermine one, the angle of rotation can be arbitrarily angled.When the rotation direction of predetermine one is clockwise, can for regulate progress forward, the end be towards current played file regulates playing progress rate, and the rotation direction of predetermine one is for be counterclockwise, for to regulate progress backward, the initial adjustment playing progress rate towards current played file can be.
The Media Stream control method for playing back that present embodiment provides, regulates the playing progress rate of audio or video, for user provides mode of operation different from the past by rotating predetermine one.
Refer to Fig. 4, in an execution mode of the application, described step S60 can comprise following sub-step.
Step S61: the current operation angle calculating described predetermine one.
In the present embodiment, predetermine one there occurs rotation, and certain angle of a bit rotating relative to the center of circle of predetermine one is rotational angle.Concrete, be exemplified as: refer to Fig. 5, suppose a some P of predetermine one, be some P ' after center of circle O rotates, point P and some P ' respectively with center of circle O line, obtain line PO and line P ' O, then the angle α between line PO and line P ' O is rotational angle.Because equipment itself just can obtain the distance between a P and some P ', and the length of line PO and line P ' O, according to trigonometric function relation, further calculating just can obtain the concrete numerical value of angle α, namely obtains rotational angle.
Step S62: regulate playing progress rate according to described current operation angle.
In the present embodiment, adjustment playing progress rate can be carried out in the rotation process of predetermine one, namely calculate a current operation angle at interval of a set time, adjust progress immediately, also can terminate for the rotation of predetermine one, after calculating rotational angle, then regulate playing progress rate.The amplitude of accommodation of playing progress rate, can determine according to the size of rotational angle.
Refer to Fig. 6, in one embodiment, described step S62 also comprises following sub-step.
Step S621: current operation angle is compared with references angle.
Step S623: described current operation angle is greater than described references angle, playing progress rate is regulated the first scheduled duration.
In the present embodiment, references angle for the angle value pre-set, if current operation angle is greater than references angle, can show that needs regulate for playing progress rate, if current operation angle is less than references angle, does not regulate playing progress rate.In the process that video or audio file are play, user may misoperation cause predetermine one to rotate accidentally, by arranging references angle, can to a certain degree avoid this misoperation to cause regulating playing progress rate.The value of references angle can be 5 degree, 10 degree, 15 degree or 20 degree, and certainly, the value of references angle can also have other value, will not enumerate as space is limited at this.
In the present embodiment, the first scheduled duration is the amplitude regulated playing progress rate, its time span can specified for any one, such as 1 second, 2 seconds, 3 seconds ... 15 seconds, 16 seconds ... 30 seconds etc., no longer enumerate as space is limited at this.In the process regulating playing progress rate, in conjunction with the rotation direction of predetermine one, playing progress rate can be regulated forward or backward.Concrete, be exemplified as: rotate if predetermine one is clockwise direction, direction then towards current played file end regulates playing progress rate, by the time coordinate of current broadcasting increase the first scheduled duration adjusted after time coordinate, if after current time coordinate increases by the first scheduled duration, be more than or equal to the total length of current played file, then the time coordinate after regulating is the time coordinate at most end.If predetermine one is counterclockwise rotate, then regulate playing progress rate towards the direction that current played file starts, by the time coordinate of current broadcasting reduce the first scheduled duration adjusted after time coordinate, if after current time coordinate reduces the first scheduled duration, be less than or equal to zero, time coordinate after then regulating is zero, namely plays from the beginning of current played file.
In the present embodiment, described step S62 can also comprise sub-step S625: described current operation angle is less than described references angle, playing progress rate is regulated the second scheduled duration, and the second scheduled duration is less than the first scheduled duration.Current operation angle is less than references angle, show that needs carry out adjustment by a small margin for playing progress rate, so the second scheduled duration can be less than the first scheduled duration, so degree of regulation can be improved, moreover realize to carry out accurate adjustment and coarse adjustment to playing progress rate by the difference of predetermine one rotational angle, improve the experience of user.Regulated by playing progress rate the second scheduled duration also can in conjunction with the rotation direction of predetermine one, principle, with the description of aforementioned adjustment first scheduled duration, no longer repeats as space is limited at this.The value of the second scheduled duration is less than in the first scheduled duration, specifically can set according to actual conditions.
Refer to Fig. 7, in one embodiment, described step S62 can also comprise following sub-step.
Step S622: the rotational angle of described predetermine one has span, the data in described span are corresponding with a time coordinate of current played file respectively, obtain the time coordinate that current operation angle is corresponding.
Step S624: regulate playing progress rate to the time coordinate corresponding with described current operation angle.
In the present embodiment, the rotation of predetermine one can be rotate around a center of circle, then can define a maximum rotation angle, can think span from 0 degree to maximum rotation angle.The value of maximum rotation angle can be 180 degree, 360 degree, 540 degree or 720 degree etc., will not enumerate as space is limited at this.
In the present embodiment, each rotational angle of predetermine one is corresponding with a time coordinate of current played file, then in the process of current played file broadcasting, predetermine one itself also rotates along with playing progress rate, so can show the progress of broadcasting to user.When predetermine one is because of after the control command of input rotates, playing progress rate is adjusted to rotate after time coordinate corresponding to rotational angle.In the present embodiment, if the maximum rotation angle of predetermine one is A, then the span of rotational angle is from 0 to A, if there is overall time length L in current played file, if current operation angle is C, if time coordinate corresponding to current operation angle is T, then the time coordinate that current operation angle is corresponding can be expressed as following formula.
T = C × L A
In above formula, current operation angle C is the rotational angle of predetermine one relative to original position, and wherein original position can be the state of predetermine one when current played file starts to play. can show that predetermine one often rotates 1 degree, need by playing progress rate regulate duration, by current operation angle C with do product and just can draw the time coordinate that current operation angle is corresponding.
Refer to Fig. 8, in one embodiment, described S62 can also comprise following sub-step.
Step S626: the rotational angle of described predetermine one has at least one angular range, at least one angular range described is a corresponding scheduled duration respectively, judges the angular range residing for described current operation angle.
Step S628: playing progress rate is regulated the scheduled duration that described angular range is corresponding.
In the present embodiment, predetermine one can have at least one angular range, can for being an angular range at interval of a predetermined angle angle value.Such as being exemplified as, is an angular range at interval of 20 degree, then 0 degree to 19 degree can be the first angular range, and 20 degree to 39 degree can be the second angular range, and 40 degree to 59 degree can be angular extent, by that analogy, no longer enumerates as space is limited at this.
In the present embodiment, the corresponding scheduled duration of each angular range, such as be exemplified as, the scheduled duration that first angular range is corresponding is 10 seconds, the scheduled duration that second angular range is corresponding is 20 seconds, scheduled duration corresponding to angular extent is 30 seconds, by that analogy, no longer enumerates as space is limited.
Be appreciated that; the angle at interval is not limited to 20 degree; it can also be 10 degree, 30 degree or 40 degree etc.; the scheduled duration that each angular range is corresponding is not limited to aforementioned citing; it can also be arranged to other numerical value; those skilled in the art also may make other and change under the enlightenment of present techniques marrow, as long as but its function and effect and the application same or similar, all should be covered by the application's protection range.
In the present embodiment, by judging the angular range residing for current operation angle, just can obtain the scheduled duration needing to regulate, thus further playing progress rate can be regulated scheduled duration.Concrete is exemplified as, and suppose predetermine one current operation 30 degree, current operation angle is in the second angular range, and the scheduled duration that the second angular range is corresponding is 20 seconds, then in conjunction with the rotation direction of predetermine one, playing progress rate is regulated 20 seconds forward or backward.
In an execution mode of the application, can be: when described predetermine one rotates that playing progress rate is regulated the 3rd scheduled duration in described step S60.
In the present embodiment, the 3rd scheduled duration is the amplitude regulated playing progress rate, its time span can specified for any one, such as 1 second, 2 seconds, 3 seconds ... 15 seconds, 16 seconds ... 30 seconds etc., no longer enumerate as space is limited at this.Predetermine one occurs once to rotate, and in conjunction with rotation direction, playing progress rate is regulated the 3rd scheduled duration forward or backward.Wherein, from predetermined, turn to predetermine one rotation to terminate can think once to rotate.The scheme that present embodiment provides, only judges whether predetermine one rotates and regulate playing progress rate, does not consider the angle of rotating, so makes Media Stream control method for playing back more simple.
Refer to Fig. 9, in one embodiment, described step S60 can comprise following sub-step.
Step S63: the current operation angle and the current operation speed that calculate described predetermine one.
In the present embodiment, about the computational methods of current operation angle, the description carried out in the foregoing embodiment, no longer repeats to introduce at this as space is limited.
In the present embodiment, the angular speed that current operation speed can be rotated for predetermine one also can be the linear velocity of some parts on predetermine one.Described angular speed is the angle that turns within the unit interval of predetermine one or radian, its speed rotated after can indicating the corresponding control command of predetermine one.Concrete, be exemplified as: angular speed can be the quotient of the time of current pivot angle degree and cost, namely sets angular speed as ω, if current operation angle is α, if the time of cost is t, then can be angular velocity omega=α/t, now the unit of angular velocity omega be angle/second.Certainly, also according to existing formula, angular velocity omega can be converted into international unit radian per second further.Described linear velocity can be the ratio of any portion on predetermine one, the arc length turned in predetermine one rotation process and time used.
In the present embodiment, current operation angle can be the some moment in predetermine one rotation process, the angle that predetermine one rotates relative to initial position, also can for predetermine one be after completing and once rotating, from rotating initial position to the angle of rotating end position corotation and crossing.Current operation speed can be the velocity of rotation in the some moment in predetermine one rotation process, also can for predetermine one be after completing once rotation, calculate the average rotation speed of predetermine one in rotation process, using average rotation speed as current operation speed.
Step S64: regulate playing progress rate according to described current operation angle and current operation speed.
In the present embodiment, in predetermine one rotation process, a current operation angle and current operation speed can be calculated at interval of a set time, and regulates playing progress rate immediately; Also after predetermine one rotation terminates, current operation angle can be calculated, in the rotation process of predetermine one, calculates a current operation speed at interval of a set time.When regulating playing progress rate, in conjunction with the rotation direction of predetermine one, playing progress rate can be regulated forward or backward, specifically describes in aforementioned embodiments, no longer repeat at this.
Refer to Figure 10, in one embodiment, described step S64 also comprises following sub-step.
Step S641: described current operation angle is compared with threshold value.
In the present embodiment, threshold value can be an angle value of setting, when current operation angle is not more than threshold value, does not regulate playing progress rate, when current operation angle is greater than threshold value, regulates playing progress rate.In the process that video or audio file are play, user may misoperation cause predetermine one to rotate accidentally, by arranging threshold value, can to a certain degree avoid this misoperation to cause regulating playing progress rate.The value of threshold value can be 5 degree, 10 degree, 15 degree or 20 degree, and certainly, the value of threshold value can also have other value, will not enumerate as space is limited at this.
Step S643: described current operation angle is greater than threshold value, searches the coefficient corresponding with current operation speed in coefficient list.
In the present embodiment, coefficient list can be predefined data list, and in it, corresponding record has velocity of rotation and coefficient.A corresponding coefficient can be all set for each velocity of rotation, it is interval that several velocities of rotation also can be set, the interval corresponding coefficient of each velocity of rotation.Concrete, take velocity of rotation as angular speed be example, see the following form 1 citing.
Table 1 coefficient list
Velocity of rotation scope Coefficient
Current operation speed < 5 degree/second 1
5 degree/second≤20 degree/second of current operation speed < 1.5
20 degree/second≤current operation speed < 50 degree/second 1.8
50 degree/second≤100 degree/second of current operation speed < 2.2
100 degree/second≤200 degree/second of current operation speed < 2.6
200 degree/second≤current operation speed 3
Coefficient list can store in one file in the mode of list, also can store in tables of data in a database, can also directly be integrated in the code segment of program.
Step S645: the 4th scheduled duration and described coefficient are done product and draws adjustment duration.
In the present embodiment, the 4th scheduled duration can for the time span of specifying pre-set, such as 1 second, 2 seconds, 3 seconds ... 15 seconds, 16 seconds ... 30 seconds etc., no longer enumerate as space is limited at this.4th scheduled duration and coefficient are done product to calculate and adjust duration, realize to change according to the velocity of rotation speed of predetermine one the amplitude of accommodation of playing progress rate.So, realize when needs significantly adjust playing progress rate, can quick rotation predetermine one, now because velocity of rotation is very fast, the coefficient of its correspondence is comparatively large, the adjustment duration calculated can corresponding comparatively greatly, can realize regulating playing progress rate faster.When adjusting playing progress rate by a small margin, now can slow rotation predetermine one, now because velocity of rotation is comparatively slow, the coefficient of its correspondence is less, and the adjustment duration that technology draws is corresponding less, realizes having higher degree of regulation.
Step S647: playing progress rate is regulated adjustment duration.
In the present embodiment, in the process regulating playing progress rate, in conjunction with the rotation direction of predetermine one, playing progress rate can be regulated forward or backward.Concrete, be exemplified as: rotate if predetermine one is clockwise direction, direction then towards current played file end regulates playing progress rate, by current broadcasting time coordinate increase adjustment duration adjusted after time coordinate, if after current time coordinate increases adjustment duration, be more than or equal to the total length of current played file, then the time coordinate after regulating is the time coordinate at most end.If predetermine one is counterclockwise rotate, then regulate playing progress rate towards the direction that current played file starts, by current broadcasting time coordinate reduce adjustment duration adjusted after time coordinate, if after current time coordinate reduces to regulate duration, be less than or equal to zero, time coordinate after then regulating is zero, namely plays from the beginning of current played file.
Refer to Figure 11, in one embodiment, the rotational angle of described predetermine one has span, and the data in described span are a corresponding scheduled duration respectively, and described step S64 also comprises following sub-step.
Step S642: obtain the scheduled duration that described current operation angle is corresponding, obtains the coefficient corresponding with current operation speed.
In the present embodiment, predetermine one can have at least one angular range, can for being an angular range at interval of a predetermined angle angle value.Such as being exemplified as, is an angular range at interval of 20 degree, then 0 degree to 19 degree can be the first angular range, and 20 degree to 39 degree can be the second angular range, and 40 degree to 59 degree can be angular extent, by that analogy, no longer enumerates as space is limited at this.
In the present embodiment, the corresponding scheduled duration of each angular range, such as be exemplified as, the scheduled duration that first angular range is corresponding is 10 seconds, the scheduled duration that second angular range is corresponding is 20 seconds, scheduled duration corresponding to angular extent is 30 seconds, by that analogy, no longer enumerates as space is limited.
Be appreciated that; the angle at interval is not limited to 20 degree; it can also be 10 degree, 30 degree or 40 degree etc.; the scheduled duration that each angular range is corresponding is not limited to aforementioned citing; it can also be arranged to other numerical value; those skilled in the art also may make other and change under the enlightenment of present techniques marrow, as long as but its function and effect and the application same or similar, all should be covered by the application's protection range.
In the present embodiment, can by corresponding with scheduled duration for angular range storage in one file, also can, by the two corresponding stored tables of data in a database, can also directly be integrated in the code segment of program.
In the present embodiment, can coefficient list be pre-set, in coefficient list, record velocity of rotation and coefficient.A corresponding coefficient can be all set for each velocity of rotation, it is interval that some velocities of rotation also can be set, the interval corresponding coefficient of each velocity of rotation.Coefficient list can store in one file in the mode of list, also can store in tables of data in a database, can also directly be integrated in the code segment of program.
Step S644: described scheduled duration and described coefficient are done product and draws adjustment duration.
Step S647: playing progress rate is regulated adjustment duration.
In the present embodiment, scheduled duration can according to the rotational angle of predetermine one different and respective change, coefficient can according to the velocity of rotation of predetermine one different and respective change, realize the adjustment of playing progress rate more flexible.Be exemplified as, in twice operation, predetermine one have rotated identical rotational angle, but the velocity of rotation of predetermine one is different, when namely first time rotates, velocity of rotation is slower, when second time is rotated, velocity of rotation is very fast, and the adjustment duration that now this secondary operation obtains may be different.Predetermine one have rotated identical angle, then the corresponding scheduled duration of rotational angle is identical, but owing to there being different velocities of rotation in secondary operation, make coefficient possibility different, in first time rotation, the coefficient of the less correspondence of velocity of rotation may be less, in second time rotation, the coefficient of the larger correspondence of velocity of rotation may be comparatively large, so when calculating adjustment duration, rotating the adjustment duration drawn for the first time and may be less than the adjustment duration rotating for the second time and draw.In like manner, in twice operation, predetermine one has identical velocity of rotation, but rotational angle is different, and namely the rotational angle of first time rotation is less, and the rotational angle that second time is rotated is comparatively large, and the adjustment duration that now this secondary operation obtains also may be different.The velocity of rotation of predetermine one is identical, coefficient then in this secondary operation is identical, but because rotational angle in this secondary operation is different, in first time rotation, rotational angle is less, corresponding scheduled duration may be less, and in second time rotation, rotational angle is comparatively large, and corresponding scheduled duration may be larger, when so calculating adjustment duration, rotate the adjustment duration drawn for the first time and may be less than the adjustment duration rotating for the second time and draw.
In the present embodiment, can regulate playing progress rate in conjunction with the rotation direction of predetermine one, the concrete scheme regulating playing progress rate, is described in the foregoing embodiment, no longer repeats as space is limited at this.
See also Figure 12, the application's execution mode also provides a kind of client 100.Client 100 can be any can the equipment of audio plays or video, such as Mp4, mobile phone, panel computer, notebook computer, desktop computer or television set etc., divide according to mode of operation, this method goes for having the equipment of touching-type monitor and the equipment of non-tactile display.
Client 100 comprises: control creation module 10, event capture module 20, order generation module 30 and adjustment module 40.
Control creation module 10 for creating progress monitoring control, and creates auxiliary control control at progress monitoring control adjacent area.
In the present embodiment, when Media Stream is play, can display the play window on a display of the device, and control creation module 10 creates progress monitoring control below broadcast window.Described progress monitoring control shows the playing progress rate of described Media Stream, and receives the input of user on described progress monitoring control.Concrete, be exemplified as: such as progress monitoring control can be progress bar, and user is input as the progress block dragging progress bar, then can corresponding progress block drag after the current playing progress rate of position adjustments.Control creation module 10 creates auxiliary control control at the adjacent area of progress monitoring control, and concrete can for above or below progress monitoring control.Auxiliary control control may be used for the playing progress rate regulating Media Stream, but the amplitude regulated can be different from progress monitoring control.Be exemplified as: the auxiliary control that controls goes for regulating playing progress rate by a small margin, so improves degree of regulation.
Event capture module 20 is for catching the incoming event of user on described auxiliary control control.
In the present embodiment, described incoming event comprises touch event and mouse event.Corresponding to the equipment with touching-type monitor, display senses touch, can be both an incoming event, and in present embodiment, event capture module 20 catches and occurs in the auxiliary incoming event controlled on control.Corresponding to the equipment of non-touch sensitive display, can streak or click on auxiliary control control by mouse, form an incoming event.
Order generation module 30 is for generating the playing progress rate control command of described Media Stream according to described incoming event.
In the present embodiment, order generation module 30 is formulated according to incoming event and is regulated playing progress rate control command, and this control command is originally as the signal of telecommunication, but it represents the adjustment to playing progress rate, can comprise adjusting range and adjustment direction.The adjustable time span of adjusting range, adjustment direction can regulate towards the end of current played file, or towards the initial adjustment of current played file.
In the present embodiment, all there is a total duration in Media Stream such as video or audio file, in the process play, is using the time as coordinate, when the time coordinate residing for the content that Media Stream is play is playing progress rate.In the process that a Media Stream is play, user probably can regulate playing progress rate, to obtain desired content.Such as, be exemplified as: user is when watching video, and midway stops viewing, follow-uply plays this video once again, obvious user does not wish to repeat viewing for the video content seen, then the content that may progress be regulated forward to skip over to have watched; User needs to watch once once again after also may have viewed video part content, then may replay this partial content to readjustment joint progress.In like manner, user also may regulate the playing progress rate of audio frequency forward or backward.
Adjustment module 40 is for adjusting the playing progress rate of described Media Stream according to the playing progress rate control command of described Media Stream.
In the present embodiment, after order generation module 30 produces playing progress rate control command, playing progress rate is adjusted to the time coordinate represented described in this control command.
The technical scheme provided from above the application's execution mode, the application realizes by creating auxiliary control control at the adjacent area of progress monitoring control, and the playing progress rate of Media Stream is regulated according to the input of user on auxiliary control control, provide a kind of regulation scheme of diversification, improve the experience of user greatly.
Although depict the application by execution mode, those of ordinary skill in the art know, the application has many distortion and change and do not depart from the spirit of the application, and the claim appended by wishing comprises these distortion and change and do not depart from the spirit of the application.

Claims (19)

1. a Media Stream control method for playing back, comprising:
Create progress monitoring control; Auxiliary control control is created at progress monitoring control adjacent area;
Catch the incoming event of user on auxiliary control control;
The playing progress rate control command of described Media Stream is generated according to described incoming event;
The playing progress rate of described Media Stream is adjusted according to the playing progress rate control command of described Media Stream.
2. the method for claim 1, is characterized in that: described incoming event comprises mouse event and touch event.
3. the method for claim 1, is characterized in that: described auxiliary control control is Concealable object, when described incoming event being detected, shows described auxiliary control control.
4. the method for claim 1, is characterized in that: described progress monitoring control shows the playing progress rate information of described Media Stream, and receives the input information of user on described progress monitoring control.
5. the method for claim 1, is characterized in that, the step generating the playing progress rate control command of described Media Stream according to described incoming event also comprises:
The playing progress rate control command of described Media Stream is generated according to described incoming event and the current state information of described progress monitoring control.
6. the method for claim 1, is characterized in that: described auxiliary control control comprises default object, presets the motion of object according to described incoming event Dynamic Announce.
7. method as claimed in claim 6, is characterized in that, also comprise:
Monitor the motion of described predetermine one;
When described predetermine one rotates, regulate playing progress rate.
8. method as claimed in claim 7, is characterized in that, the rotation direction of described predetermine one is that the end towards current played file regulates described playing progress rate clockwise.
9. method as claimed in claim 7, is characterized in that, the rotation direction of described predetermine one is counterclockwise, towards the described playing progress rate of initial adjustment of current played file.
10. method as claimed in claim 7, is characterized in that, also comprises in the step regulating playing progress rate:
Calculate the current operation angle of described predetermine one;
Described playing progress rate is regulated according to described current operation angle.
11. methods as claimed in claim 10, is characterized in that, are also comprising according in the step of described current operation angle adjustment playing progress rate:
Current operation angle is compared with references angle;
Described current operation angle is greater than described references angle, and described playing progress rate is regulated the first scheduled duration.
12. methods as claimed in claim 11, it is characterized in that, described method also comprises:
Described current operation angle is less than described references angle, and described playing progress rate is regulated the second scheduled duration, and described second scheduled duration is less than described first scheduled duration.
13. methods as claimed in claim 10, is characterized in that, are also comprising according in the step of described current operation angle adjustment playing progress rate:
The rotational angle of described predetermine one has span, and the data in described span are corresponding with a time coordinate of current played file respectively, obtains the time coordinate that current operation angle is corresponding;
Regulate described playing progress rate to the time coordinate corresponding with described current operation angle.
14. methods as claimed in claim 10, is characterized in that, are also comprising according in the step of described current operation angle adjustment playing progress rate:
The rotational angle of described predetermine one has at least one angular range, and at least one angular range described is a corresponding scheduled duration respectively, judges the angular range residing for described current operation angle;
Described playing progress rate is regulated the scheduled duration that described angular range is corresponding.
15. methods as claimed in claim 7, is characterized in that, when described predetermine one rotates, playing progress rate are regulated the 3rd scheduled duration.
16. methods as claimed in claim 7, is characterized in that, also comprise in the step regulating playing progress rate:
Calculate current operation angle and the current operation speed of described predetermine one;
Described playing progress rate is regulated according to described current operation angle and current operation speed.
17. methods as claimed in claim 16, is characterized in that, are also comprising according in the step of described current operation angle and current operation speed adjustment playing progress rate:
Described current operation angle is compared with threshold value;
Described current operation angle is greater than threshold value, searches the coefficient corresponding with current operation speed in coefficient list;
4th scheduled duration and described coefficient are done product and draws adjustment duration;
Described playing progress rate is regulated described adjustment duration.
18. methods as claimed in claim 16, is characterized in that, are also comprising according in the step of described current operation angle and current operation speed adjustment playing progress rate:
Obtain the scheduled duration that described current operation angle is corresponding, obtain the coefficient corresponding with described current operation speed;
Described scheduled duration and described coefficient are done product and draws adjustment duration;
Playing progress rate is regulated described adjustment duration.
19. 1 kinds of clients, is characterized in that, described client comprises:
Control creation module, for creating progress monitoring control, and creates auxiliary control control at progress monitoring control adjacent area;
Event capture module, for catching the incoming event of user on described auxiliary control control;
Order generation module, for generating the playing progress rate control command of described Media Stream according to described incoming event;
Adjustment module, for adjusting the playing progress rate of described Media Stream according to the playing progress rate control command of described Media Stream.
CN201410092940.8A 2014-03-13 2014-03-13 Media stream play control method and client Pending CN104918121A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410092940.8A CN104918121A (en) 2014-03-13 2014-03-13 Media stream play control method and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410092940.8A CN104918121A (en) 2014-03-13 2014-03-13 Media stream play control method and client

Publications (1)

Publication Number Publication Date
CN104918121A true CN104918121A (en) 2015-09-16

Family

ID=54086760

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410092940.8A Pending CN104918121A (en) 2014-03-13 2014-03-13 Media stream play control method and client

Country Status (1)

Country Link
CN (1) CN104918121A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108449641A (en) * 2018-03-28 2018-08-24 聚好看科技股份有限公司 Play method, apparatus, computer equipment and the storage medium of Media Stream
CN109379497A (en) * 2018-12-28 2019-02-22 努比亚技术有限公司 Voice messaging playback method, mobile terminal and computer readable storage medium
CN109407944A (en) * 2018-09-29 2019-03-01 传线网络科技(上海)有限公司 Multimedia resource plays adjusting method and device
CN111338489A (en) * 2020-02-21 2020-06-26 维沃移动通信有限公司 Parameter adjusting method and electronic equipment
WO2020238186A1 (en) * 2019-05-24 2020-12-03 珠海格力电器股份有限公司 Method and device for playing voice information, and storage medium
CN112614516A (en) * 2020-12-10 2021-04-06 广州酷狗计算机科技有限公司 Progress bar adjusting method and device, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110010933A (en) * 2009-07-27 2011-02-08 (주)빅트론닉스 Control method and device for touch panel, and mobile devices using the same
CN102238351A (en) * 2010-05-07 2011-11-09 Tcl集团股份有限公司 Method for fast forward and fast backward of audio and video file played by television, television and remote controller
CN102522097A (en) * 2012-01-06 2012-06-27 顾宁 Method for accurately controlling progress of player on touch type equipment and player
WO2013060551A1 (en) * 2011-10-27 2013-05-02 Sony Mobile Communications Ab Media reproduction control arrangement and method
CN103257825A (en) * 2013-04-28 2013-08-21 北京小米科技有限责任公司 Method and device for adjusting playing speed

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110010933A (en) * 2009-07-27 2011-02-08 (주)빅트론닉스 Control method and device for touch panel, and mobile devices using the same
CN102238351A (en) * 2010-05-07 2011-11-09 Tcl集团股份有限公司 Method for fast forward and fast backward of audio and video file played by television, television and remote controller
WO2013060551A1 (en) * 2011-10-27 2013-05-02 Sony Mobile Communications Ab Media reproduction control arrangement and method
CN102522097A (en) * 2012-01-06 2012-06-27 顾宁 Method for accurately controlling progress of player on touch type equipment and player
CN103257825A (en) * 2013-04-28 2013-08-21 北京小米科技有限责任公司 Method and device for adjusting playing speed

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108449641A (en) * 2018-03-28 2018-08-24 聚好看科技股份有限公司 Play method, apparatus, computer equipment and the storage medium of Media Stream
CN109407944A (en) * 2018-09-29 2019-03-01 传线网络科技(上海)有限公司 Multimedia resource plays adjusting method and device
CN109379497A (en) * 2018-12-28 2019-02-22 努比亚技术有限公司 Voice messaging playback method, mobile terminal and computer readable storage medium
WO2020238186A1 (en) * 2019-05-24 2020-12-03 珠海格力电器股份有限公司 Method and device for playing voice information, and storage medium
CN111338489A (en) * 2020-02-21 2020-06-26 维沃移动通信有限公司 Parameter adjusting method and electronic equipment
WO2021164760A1 (en) * 2020-02-21 2021-08-26 维沃移动通信有限公司 Parameter adjustment method and electronic device
CN111338489B (en) * 2020-02-21 2024-03-22 维沃移动通信有限公司 Parameter adjustment method and electronic equipment
CN112614516A (en) * 2020-12-10 2021-04-06 广州酷狗计算机科技有限公司 Progress bar adjusting method and device, terminal and storage medium
CN112614516B (en) * 2020-12-10 2023-12-08 广州酷狗计算机科技有限公司 Method and device for adjusting progress bar, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN104918121A (en) Media stream play control method and client
US11468749B2 (en) Devices, methods, and graphical user interfaces for providing haptic feedback
US10901513B2 (en) Devices, methods, and graphical user interfaces for haptic mixing
CN104811812B (en) Control method, device and the system of audio and video playing progress
US9632685B2 (en) Method of navigating through a media program displayed on a portable electronic device in a magnified time scale
US8552988B2 (en) Viewing device having a touch pad
CN103927107B (en) A kind of information processing method and electronic equipment
CN107608601B (en) Video playback method, mobile terminal and computer readable storage medium
US20120174005A1 (en) Content-based snap point
US9519420B2 (en) Apparatus and method for editing synchronous media
US11435897B2 (en) Content scrubber bar with real-world time indications
EP3465405B1 (en) Slow motion video playback method for computing devices with touch interfaces
CN104902335A (en) Method and device for controlling playback progress of multi-media file
US11099731B1 (en) Techniques for content management using a gesture sensitive element
US20090153518A1 (en) Method for controlling value of parameter
CN104122993A (en) Parameter setting device
WO2017218409A1 (en) Devices, methods, and graphical user interfaces for providing haptic feedback
CN102842319A (en) Control method and device of music playing
KR20160114995A (en) Apparatus, method, and computer program for viewing catoon data
US11765333B1 (en) Systems and methods for improved transitions in immersive media
US20220398008A1 (en) Volume Adjusting Gesture and Mistouch Prevention on Rolling Devices
CN114520849A (en) Control method and control device for media playing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150916