CN103259929B - Method and device for controlling playing of multi-media file - Google Patents

Method and device for controlling playing of multi-media file Download PDF

Info

Publication number
CN103259929B
CN103259929B CN201310141612.8A CN201310141612A CN103259929B CN 103259929 B CN103259929 B CN 103259929B CN 201310141612 A CN201310141612 A CN 201310141612A CN 103259929 B CN103259929 B CN 103259929B
Authority
CN
China
Prior art keywords
acceleration
space
minor peaks
change
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310141612.8A
Other languages
Chinese (zh)
Other versions
CN103259929A (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 Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201310141612.8A priority Critical patent/CN103259929B/en
Publication of CN103259929A publication Critical patent/CN103259929A/en
Priority to PCT/CN2013/091073 priority patent/WO2014173170A1/en
Application granted granted Critical
Publication of CN103259929B publication Critical patent/CN103259929B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1694Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being a single or a set of motion sensors for pointer control or gesture input obtained by sensing movements of the portable computer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method and device for controlling playing of a multi-media file and belongs to the field of a multimedia technology. The method includes the steps that acceleration detection is carried out on a terminal for playing the multi-media file; changes of the acceleration are judged whether to be in accordance with mode characteristics of a double-click event; if the changes of the acceleration are in accordance with the mode characteristics of the double-click event, the playing of the multi-media file is controlled. Due to the fact that the double-click operation performed by a user can be showed through the acceleration of the terminal, the playing of the multi-media file is controlled, and furthermore, on the premise that user operation is simplified, control speed of playing the multi-media file is increased and the probability of touching other function buttons by mistake is reduced, so that the probability of proper operation is increased.

Description

The control method for playing back of multimedia file and device
Technical field
The present invention relates to multimedia technology field, particularly a kind of control method for playing back of multimedia file and device.
Background technology
After carrying out multimedia file broadcasting, often due to some reasons, the multimedia file to starting to play is needed to carry out Play Control.Such as, the time-out interrupting the multimedia file of current broadcasting controls; Or, for the Play Control suspending the multimedia file continuation broadcasting of playing.Therefore, the Play Control how realizing multimedia file is the key that can player meet consumers' demand.
At present, during to multimedia file Play Control, need to be introduced into player control panel, then click the Play Control button on player control panel, to realize the Play Control of multimedia file.Such as, pause button clicked by Play Control panel, realize the pause function of the multimedia file interrupting current broadcasting; Or, broadcast button clicked by Play Control panel, realizes the continuation playing function suspending multimedia file.
No matter be suspend multimedia file or continue to play to the multimedia file suspended; all need first to enter player control panel; the method of operation current multimedia file being suspended and play is very loaded down with trivial details, thus reduces the speed realizing multimedia file and suspend and play.In addition, player control panel also has other many function button except pause button, broadcast button.Such as: fast forward button, back, stop button etc., therefore only needing to suspend multimedia file to play or continue to play to the multimedia file suspended, and then when entering player control panel, add the chance of other function button of false touch, thus reduce proper operation probability.
Summary of the invention
In order to solve the problem of background technology, embodiments provide a kind of control method for playing back and device of multimedia file.
On the one hand, provide a kind of control method for playing back of multimedia file, described method comprises:
Obtain the accekeration that the transducer in the terminal of described play multimedia file records in rectangular coordinate system in space all directions;
Determine that space sets change and the current status of described terminal of the acceleration on vector according to the accekeration that described transducer records in rectangular coordinate system in space all directions;
If the current status of described terminal is flat condition, then judge that whether the change of the acceleration on described space setting vector is two minor peaks in appearance first number range, and whether the interval time of two minor peaks is less than the first Preset Time, if two minor peaks be changed in described first number range of appearance of the acceleration on described space setting vector, and be less than described first Preset Time the interval time of two minor peaks, then judge that the change of described acceleration meets the pattern feature of double-click event; Or, if the current status of described terminal is hand holding state, then judge whether the change of acceleration on described space setting vector is two minor peaks occurred within the scope of second value, and whether the interval time of two minor peaks is less than the second Preset Time, if two minor peaks be changed within the scope of the described second value of appearance of the acceleration on described space setting vector, and be less than described second Preset Time the interval time of two minor peaks, then judge that the change of described acceleration meets the pattern feature of double-click event;
If the change of described acceleration meets the pattern feature of double-click event, Play Control is carried out to described multimedia file.
Preferably, the described accekeration in rectangular coordinate system in space, all directions recorded according to described transducer determines the current status of described terminal, comprising:
Determine that space sets the acceleration mean value on vector according to the accekeration that described transducer records in rectangular coordinate system in space all directions;
If described acceleration mean value is less than first threshold, then determine that the current status of described terminal is flat condition;
If described acceleration mean value is not less than described first threshold, then determine that the current status of described terminal is hand holding state.
On the other hand, provide a kind of broadcast control device of multimedia file, described device comprises:
Detection module, the accekeration that the transducer in the terminal obtaining described play multimedia file records in rectangular coordinate system in space all directions;
First determination module, the accekeration for recording in rectangular coordinate system in space all directions according to described transducer determines the current status of described terminal;
Second determination module, the accekeration for recording in rectangular coordinate system in space all directions according to described transducer determines the change of the acceleration on space setting vector;
Judge module, for when the current status of described terminal is flat condition, judge that whether the change of the acceleration on described space setting vector is two minor peaks in appearance first number range, and whether the interval time of two minor peaks is less than the first Preset Time, when two minor peaks be changed in described first number range of appearance of the acceleration on described space setting vector, and when being less than described first Preset Time the interval time of two minor peaks, judge that the change of described acceleration meets the pattern feature of double-click event; Or, for when the current status of described terminal is hand holding state, then judge whether the change of acceleration on described space setting vector is two minor peaks occurred within the scope of second value, and whether the interval time of two minor peaks is less than the second Preset Time, if two minor peaks be changed within the scope of the described second value of appearance of the acceleration on described space setting vector, and be less than described second Preset Time the interval time of two minor peaks, then judge that the change of described acceleration meets the pattern feature of double-click event;
Control module, for when the change of described acceleration meets the pattern feature of double-click event, carries out Play Control to described multimedia file.
Preferably, described first determination module, comprising:
First determining unit, the accekeration for recording in rectangular coordinate system in space all directions according to described transducer determines the acceleration mean value on space setting vector;
Second determining unit, for when described acceleration mean value is less than first threshold, determines that the current status of described terminal is flat condition; When described acceleration mean value is not less than described first threshold, determine that the current status of described terminal is hand holding state.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
The double click operation performed due to user can be embodied by the acceleration of terminal, after user carries out double click operation, by the acceleration of sense terminals, judge whether the change of acceleration meets the pattern feature of double-click event, and according to judged result, Play Control is carried out to multimedia file, can realize carrying out Play Control according to double click operation to multimedia file, and then under the prerequisite simplifying user operation, improve the Play Control speed of multimedia file, reduce the chance of other function button of false touch, thus increase proper operation probability.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, 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.
Fig. 1 is the flow chart of the control method for playing back of a kind of multimedia file that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of the control method for playing back of a kind of multimedia file that the embodiment of the present invention two provides;
Fig. 3 is the structural representation of the broadcast control device of a kind of multimedia file that the embodiment of the present invention three provides;
Fig. 4 is the structural representation of a kind of judge module that the embodiment of the present invention three provides;
Fig. 5 is a kind of first structural representation determining submodule that the embodiment of the present invention three provides.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with accompanying drawing, the embodiment of the present invention is described in further detail.
Embodiment one
Present embodiments provide a kind of control method for playing back of multimedia file, see Fig. 1, the method flow that the present embodiment provides is specific as follows:
101: acceleration detection is carried out to the terminal of play multimedia file;
102: judge whether the change of acceleration meets the pattern feature of double-click event;
103: if the change of acceleration meets the pattern feature of double-click event, then Play Control is carried out to multimedia file.
Preferably, acceleration detection is carried out to the terminal of play multimedia file, comprising:
Obtain the accekeration that the transducer in the terminal of play multimedia file records in rectangular coordinate system in space all directions;
Judge whether the change of acceleration meets the pattern feature of double-click event, comprising:
The current status of accekeration determination terminal recorded in rectangular coordinate system in space all directions according to transducer and space set the change of the acceleration on vector;
Change according to the acceleration on the current status of terminal and space setting vector judges whether the change of acceleration meets the pattern feature of double-click event.
Preferably, according to the current status of accekeration determination terminal that transducer in rectangular coordinate system in space, all directions records, comprising:
Determine that space sets the acceleration mean value on vector according to the accekeration that transducer records in rectangular coordinate system in space all directions;
If acceleration mean value is less than first threshold, then determine that the current status of terminal is flat condition;
If acceleration mean value is not less than first threshold, then determine that the current status of terminal is hand holding state.
Here the space setting vector that acceleration mean value is corresponding, the space corresponding with the change of acceleration sets vector, can be identical, also can not be identical.
Preferably, judge whether the change of acceleration meets the pattern feature of double-click event, comprising according to the change of the acceleration on the current status of terminal and space setting vector:
If the current status of terminal is flat condition, then judges that whether the change of the acceleration on space setting vector is two minor peaks in appearance first number range, and whether be less than the first Preset Time the interval time of two minor peaks;
If two minor peaks be changed in appearance first number range of the acceleration on space setting vector, and be less than the first Preset Time the interval time of two minor peaks, then judge that the change of acceleration meets the pattern feature of double-click event.
Alternatively, judge whether the change of acceleration meets the pattern feature of double-click event, comprising according to the change of the acceleration on the current status of terminal and space setting vector:
If the current status of terminal is hand holding state, then judges whether the change of the acceleration on space setting vector is two minor peaks occurred within the scope of second value, and whether be less than the second Preset Time the interval time of two minor peaks;
If the acceleration on space setting vector be changed to two minor peaks occurred within the scope of second value, and the interval time of two minor peaks is less than the second Preset Time, then judge that the change of acceleration meets the pattern feature of double-click event.
The method that the present embodiment provides, the double click operation performed due to user can be embodied by the acceleration of terminal, after user carries out double click operation, by the acceleration of sense terminals, judge whether the change of acceleration meets the pattern feature of double-click event, and according to judged result, Play Control is carried out to multimedia file, can realize carrying out Play Control according to double click operation to multimedia file, and then under the prerequisite simplifying user operation, improve the Play Control speed of multimedia file, reduce the chance of other function button of false touch, thus increase proper operation probability.
In order to clearly set forth the control method for playing back of a kind of multimedia file that above-described embodiment provides, in conjunction with the content of above-described embodiment, for following embodiment two, a kind of control method for playing back of multimedia file is described in detail, refers to following embodiment two.
Embodiment two
Present embodiments provide a kind of control method for playing back of multimedia file, for convenience of explanation, the mobile phone that the present embodiment is Android system for the terminal of play multimedia for operating system, illustrates in detail to the method that the present embodiment provides.See Fig. 2, the method flow that the present embodiment provides is specific as follows:
201: obtain the accekeration that the transducer in mobile phone records in rectangular coordinate system in space all directions;
For this step, the present embodiment does not specifically limit transducer.Such as, transducer is the gyroscope in mobile phone, or can measure other transducer of acceleration in mobile phone.
In addition, the present embodiment does not also limit the concrete mode detected.Such as, one can be registered monitor module in the system platform of Android system, the accekeration recorded in rectangular coordinate system in space all directions by the transducer in this monitoring module acquisition mobile phone.
Wherein, rectangular coordinate system in space all directions are respectively x, y, z direction, and x is X direction, and y is y direction, and y is number axis direction.
202: the current status of accekeration determination mobile phone recorded in rectangular coordinate system in space all directions according to transducer and space set the change of the acceleration on vector;
For this step, determine that space sets the acceleration mean value on vector according to the accekeration that transducer records in rectangular coordinate system in space all directions, then according to this acceleration mean value, the current status of mobile phone can be determined.Here the space setting vector that acceleration mean value is corresponding, the space corresponding with the change of acceleration sets vector, can be identical, also can not be identical.
For convenience of explanation, comprise hand holding state and flat condition for mobile phone status, the acceleration mean value due to mobile phone hand holding state is generally greater than the acceleration mean value of mobile phone flat condition, therefore, setting first threshold, this first threshold is the minimum value of the acceleration of hand holding state.If acceleration mean value is less than first threshold, then determine that the current status of terminal is flat condition; If acceleration mean value is not less than first threshold, then determine that the current status of terminal is hand holding state.
Wherein, can determine first threshold based on experience value, the present embodiment does not limit the determination mode of first threshold and concrete size.Certainly, mobile phone status, except above-mentioned hand holding state and flat condition, can also have other state, and the present embodiment does not limit the current residing concrete state of mobile phone.In addition, the method of the current status of accekeration determination mobile phone recorded in rectangular coordinate system in space all directions according to transducer is except said method, can also have other method, the present embodiment does not also limit the concrete defining method of the current status of accekeration determination mobile phone recorded in rectangular coordinate system in space all directions according to transducer.
In addition, the accekeration recorded in rectangular coordinate system in space all directions due to transducer is vector, therefore according to the accekeration that transducer records in rectangular coordinate system in space all directions, a space setting vector can be determined, this space setting vector can be the arbitrary vector in space vector, and the present embodiment does not do concrete restriction to this.After statistics by the accekeration in the rectangular coordinate system in space all directions that detect in certain hour section transducer, the acceleration change on this space setting vector in this time period can also be obtained.
203: the change according to the acceleration on the current status of mobile phone and space setting vector judges whether the change of acceleration meets the pattern feature of double-click event, if the change of acceleration meets the pattern feature of double-click event, then perform step 204, if the change of acceleration does not meet the pattern feature of double-click event, then process ends;
For this step, judge that the concrete the judgment mode whether change of acceleration meets the pattern feature of double-click event can adopt but be not limited to following two kinds of modes according to the change of acceleration on the current status of mobile phone and space setting vector:
First kind of way: if the current status of mobile phone is flat condition, then judge that whether the change of the acceleration on space setting vector is two minor peaks in appearance first number range, and whether be less than the first Preset Time the interval time of two minor peaks;
For first kind of way, if two minor peaks be changed in appearance first number range of the acceleration on space setting vector, and be less than the first Preset Time the interval time of two minor peaks, then judge that the change of acceleration meets the pattern feature of double-click event; If space setting vector on acceleration be changed to two minor peaks do not occurred in the first number range, although or space setting vector on acceleration be changed to two minor peaks occurred in the first number range, but the interval time of two minor peaks is not less than the first Preset Time, then judge that the change of acceleration does not meet the pattern feature of double-click event.
In addition, whether the present embodiment is not two minor peaks in appearance first number range to the change of the acceleration judged on space setting vector, and the concrete decision method being less than the first Preset Time the interval time of two minor peaks limits.Such as, according to the change curve of acceleration on space setting vector, judge that whether this curve is two minor peaks in appearance first number range, and whether be less than the first Preset Time the interval time of two minor peaks.Preferably, the first number range can be 1m/s 2(rice/square second)-2m/s 2, the first Preset Time can for being less than arbitrary value of 200ms (millisecond).Certainly, the first number range and the first Preset Time can also be other numerical value, and the present embodiment does not limit the concrete size of the first number range and the first Preset Time.
The second way: if the current status of terminal is hand holding state, then judge whether the change of the acceleration on space setting vector is two minor peaks occurred within the scope of second value, and whether be less than the second Preset Time the interval time of two minor peaks;
For the second way, if the acceleration on space setting vector be changed to two minor peaks occurred within the scope of second value, and the interval time of two minor peaks is less than the second Preset Time, then judge that the change of acceleration meets the pattern feature of double-click event; If space setting vector on acceleration be changed to two minor peaks do not occurred within the scope of second value, although or there are two minor peaks within the scope of second value in the change of acceleration on space setting vector, but the interval time of two minor peaks is not less than the second Preset Time, then judge that the change of acceleration does not meet the pattern feature of double-click event.
In addition, whether the present embodiment is not two minor peaks occurred within the scope of second value to the change of acceleration judged on space setting vector, and the concrete decision method whether being less than the second Preset Time the interval time of two minor peaks limits.Such as, according to the change curve of the acceleration on space setting vector, judge whether this curve is two minor peaks occurred within the scope of second value, and be less than the second Preset Time the interval time of two minor peaks.Preferably, second value scope is 2m/s 2-3m/s 2, the second Preset Time is the arbitrary value between 300ms-500ms.Certainly, second value scope and the second Preset Time can also be other numerical value, and the present embodiment does not limit the concrete size of second value scope and the second Preset Time.
It should be noted that, the pattern feature of double-click event is except two minor peaks in above-mentioned appearance first number range, and the interval time of two minor peaks is less than the first Preset Time, or there are two minor peaks within the scope of second value, and be less than the interval time of two minor peaks outside the second Preset Time, can also be further feature, the present embodiment specifically limit the pattern feature of the event of double-click.
204: Play Control is carried out to multimedia file.
For this step, determine multimedia file status, and carry out Play Control according to multimedia file status.If multimedia file is in broadcast state, then suspend play multimedia file.Or, if multimedia file is in halted state, then play multimedia file.
In addition, multimedia file status can also be other state, and the present embodiment does not limit state concrete residing for multimedia file.In addition, when multimedia file is in other state except broadcast state and halted state, the operation of other Play Control is performed according to the concrete state that multimedia file is in, the present embodiment does not limit the concrete kind of Play Control, and the present embodiment does not also limit the concrete corresponding relation of multimedia state and Play Control.
In addition, the present embodiment does not limit the concrete judgment rule of multimedia file status, include but not limited to: because self meeting of playing controller carry out record to the multimedia file status of current broadcasting, so determine multimedia file status according to self meeting of playing controller to the record of the multimedia file status of current broadcasting.
It should be noted that, the present embodiment only for the terminal of play multimedia for mobile phone, the control method for playing back of the multimedia file that the present embodiment provides is illustrated.During concrete enforcement, the terminal of play multimedia, except mobile phone, can also be panel computer, or miscellaneous equipment, and the present embodiment does not limit the specific product form of the terminal of play multimedia.In addition, the operating system of the terminal use of play multimedia, except Android system, can also be Saipan system, or other system, and the present embodiment does not limit the operating system that the terminal of play multimedia uses.
The method that the present embodiment provides, the double click operation performed due to user can be embodied by the acceleration of terminal, after user carries out double click operation, by the acceleration of sense terminals, judge whether the change of acceleration meets the pattern feature of double-click event, and according to judged result, Play Control is carried out to multimedia file, can realize carrying out Play Control according to double click operation to multimedia file, and then under the prerequisite simplifying user operation, improve the Play Control speed of multimedia file, reduce the chance of other function button of false touch, thus increase proper operation probability.
Embodiment three
Present embodiments provide a kind of broadcast control device of multimedia file, the control method for playing back of multimedia file of this device for performing above-described embodiment one or embodiment two and providing.See Fig. 3, this terminal comprises:
Detection module 301, for carrying out acceleration detection to terminal;
Judge module 302, for judging whether the change of acceleration meets the pattern feature of double-click event;
Control module 303, for when the change of acceleration meets the pattern feature of double-click event, carries out Play Control to multimedia file.
Preferably, detection module 301, the accekeration that the transducer in the terminal obtaining play multimedia file records in rectangular coordinate system in space all directions;
See Fig. 4, judge module 302, comprising:
First determines submodule 3021, for the current status of accekeration determination terminal recorded in rectangular coordinate system in space all directions according to transducer;
Second determines submodule 3022, and the accekeration for recording in rectangular coordinate system in space all directions according to transducer determines the change of the acceleration on space setting vector;
Judge submodule 3023, the change for the acceleration on space setting vector according to the current status of terminal and transducer judges whether the change of acceleration meets the pattern feature of double-click event.
Participate in Fig. 5, first determines submodule 3021, comprising:
First determining unit 30211, the accekeration for recording in rectangular coordinate system in space all directions according to transducer determines the acceleration mean value on space setting vector;
Second determining unit 30212, for when acceleration mean value is less than first threshold, determines that the current status of terminal is flat condition; When acceleration mean value is not less than first threshold, determine that the current status of terminal is hand holding state.
Preferably, judge submodule 3023, for when the current status of terminal is flat condition, judges that whether the change of the acceleration on space setting vector is two minor peaks in appearance first number range, and whether be less than the first Preset Time the interval time of two minor peaks; When two minor peaks be changed in appearance first number range of the acceleration on space setting vector, and when the interval time of two minor peaks is less than the first Preset Time, judge that the change of acceleration meets the pattern feature of double-click event.
Alternatively, judge submodule 3023, for when the current status of terminal is hand holding state, judges whether the change of the acceleration on space setting vector is two minor peaks occurred within the scope of second value, and whether be less than the second Preset Time the interval time of two minor peaks; Be changed to when the acceleration on space setting vector two minor peaks occurred within the scope of second value, and when the interval time of two minor peaks is less than the second Preset Time, judge that the change of acceleration meets the pattern feature of double-click event.
The terminal that the present embodiment provides, the double click operation performed due to user can be embodied by the acceleration of terminal, after user carries out double click operation, by the acceleration of sense terminals, judge whether the change of acceleration meets the pattern feature of double-click event, and according to judged result, Play Control is carried out to multimedia file, can realize carrying out Play Control according to double click operation to multimedia file, and then under the prerequisite simplifying user operation, improve the Play Control speed of multimedia file, reduce the chance of other function button of false touch, thus increase proper operation probability.
It should be noted that: the Play Control terminal of the multimedia file that above-described embodiment provides is when realizing the Play Control of multimedia file, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by terminal is divided into different functional modules, to complete all or part of function described above.In addition, the Play Control terminal of the multimedia file that above-described embodiment provides and the control method for playing back embodiment of multimedia file belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (4)

1. a control method for playing back for multimedia file, is characterized in that, described method comprises:
Obtain the accekeration that the transducer in the terminal of described play multimedia file records in rectangular coordinate system in space all directions;
Determine that space sets change and the current status of described terminal of the acceleration on vector according to the accekeration that described transducer records in rectangular coordinate system in space all directions;
If the current status of described terminal is flat condition, then judge that whether the change of the acceleration on described space setting vector is two minor peaks in appearance first number range, and whether the interval time of two minor peaks is less than the first Preset Time, if two minor peaks be changed in described first number range of appearance of the acceleration on described space setting vector, and be less than described first Preset Time the interval time of two minor peaks, then judge that the change of described acceleration meets the pattern feature of double-click event; Or, if the current status of described terminal is hand holding state, then judge whether the change of acceleration on described space setting vector is two minor peaks occurred within the scope of second value, and whether the interval time of two minor peaks is less than the second Preset Time, if two minor peaks be changed within the scope of the described second value of appearance of the acceleration on described space setting vector, and be less than described second Preset Time the interval time of two minor peaks, then judge that the change of described acceleration meets the pattern feature of double-click event;
If the change of described acceleration meets the pattern feature of double-click event, Play Control is carried out to described multimedia file.
2. method according to claim 1, is characterized in that, the described accekeration in rectangular coordinate system in space, all directions recorded according to described transducer determines the current status of described terminal, comprising:
Determine that space sets the acceleration mean value on vector according to the accekeration that described transducer records in rectangular coordinate system in space all directions;
If described acceleration mean value is less than first threshold, determine that the current status of described terminal is flat condition;
If described acceleration mean value is not less than described first threshold, then determine that the current status of described terminal is hand holding state.
3. a broadcast control device for multimedia file, is characterized in that, described device comprises:
Detection module, the accekeration that the transducer in the terminal obtaining described play multimedia file records in rectangular coordinate system in space all directions;
First determination module, the accekeration for recording in rectangular coordinate system in space all directions according to described transducer determines the current status of described terminal;
Second determination module, the accekeration for recording in rectangular coordinate system in space all directions according to described transducer determines the change of the acceleration on space setting vector;
Judge module, for when the current status of described terminal is flat condition, judge that whether the change of the acceleration on described space setting vector is two minor peaks in appearance first number range, and whether the interval time of two minor peaks is less than the first Preset Time, when two minor peaks be changed in described first number range of appearance of the acceleration on described space setting vector, and when being less than described first Preset Time the interval time of two minor peaks, judge that the change of described acceleration meets the pattern feature of double-click event; Or, for when the current status of described terminal is hand holding state, then judge whether the change of acceleration on described space setting vector is two minor peaks occurred within the scope of second value, and whether the interval time of two minor peaks is less than the second Preset Time, if two minor peaks be changed within the scope of the described second value of appearance of the acceleration on described space setting vector, and be less than described second Preset Time the interval time of two minor peaks, then judge that the change of described acceleration meets the pattern feature of double-click event;
Control module, for when the change of described acceleration meets the pattern feature of double-click event, carries out Play Control to described multimedia file.
4. device according to claim 3, is characterized in that, described first determination module, comprising:
First determining unit, the accekeration for recording in rectangular coordinate system in space all directions according to described transducer determines the acceleration mean value on space setting vector;
Second determining unit, for when described acceleration mean value is less than first threshold, determines that the current status of described terminal is flat condition; When described acceleration mean value is not less than described first threshold, determine that the current status of described terminal is hand holding state.
CN201310141612.8A 2013-04-22 2013-04-22 Method and device for controlling playing of multi-media file Active CN103259929B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310141612.8A CN103259929B (en) 2013-04-22 2013-04-22 Method and device for controlling playing of multi-media file
PCT/CN2013/091073 WO2014173170A1 (en) 2013-04-22 2013-12-31 Multi-media file play control method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310141612.8A CN103259929B (en) 2013-04-22 2013-04-22 Method and device for controlling playing of multi-media file

Publications (2)

Publication Number Publication Date
CN103259929A CN103259929A (en) 2013-08-21
CN103259929B true CN103259929B (en) 2015-02-04

Family

ID=48963608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310141612.8A Active CN103259929B (en) 2013-04-22 2013-04-22 Method and device for controlling playing of multi-media file

Country Status (2)

Country Link
CN (1) CN103259929B (en)
WO (1) WO2014173170A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677807A (en) * 2015-12-31 2016-06-15 魅族科技(中国)有限公司 File control method and terminal

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103259929B (en) * 2013-04-22 2015-02-04 小米科技有限责任公司 Method and device for controlling playing of multi-media file
CN105898529A (en) * 2015-12-03 2016-08-24 乐视网信息技术(北京)股份有限公司 Video automatic playback and pause realizing method and system
CN106020510B (en) * 2016-05-17 2019-05-03 Oppo广东移动通信有限公司 The control method and device of terminal
CN105955621A (en) * 2016-05-18 2016-09-21 Tcl移动通信科技(宁波)有限公司 Method and system for unlocking screen through double click
CN109979919A (en) * 2017-12-27 2019-07-05 华为技术有限公司 A kind of chip and electronic equipment
CN111836108B (en) * 2020-07-24 2023-04-14 广州酷狗计算机科技有限公司 Media resource playing method, device, terminal and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7688306B2 (en) * 2000-10-02 2010-03-30 Apple Inc. Methods and apparatuses for operating a portable device based on an accelerometer
CN1728256A (en) * 2004-07-27 2006-02-01 乐金电子(惠州)有限公司 Method of controlling playing operation according to external devices
CN101533649A (en) * 2008-03-10 2009-09-16 创新科技有限公司 Method for simulating key-stoke operation by using action variation and portable media player
CN102377864A (en) * 2010-08-13 2012-03-14 希姆通信息技术(上海)有限公司 Mobile phone motion detection method based on acceleration sensor
CN102915110A (en) * 2011-08-05 2013-02-06 沈阳晨讯希姆通科技有限公司 Mobile phone having tapping selection menu and method thereof
CN102420905A (en) * 2011-11-30 2012-04-18 深圳市五巨科技有限公司 Method and device for controlling mobile phone to play music by using gravity sensor
CN103019796A (en) * 2012-12-28 2013-04-03 深圳市汇顶科技股份有限公司 Wakening method and system for touch terminal and touch terminal
CN103259929B (en) * 2013-04-22 2015-02-04 小米科技有限责任公司 Method and device for controlling playing of multi-media file

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677807A (en) * 2015-12-31 2016-06-15 魅族科技(中国)有限公司 File control method and terminal

Also Published As

Publication number Publication date
CN103259929A (en) 2013-08-21
WO2014173170A1 (en) 2014-10-30

Similar Documents

Publication Publication Date Title
CN103259929B (en) Method and device for controlling playing of multi-media file
CN104156171B (en) Method and device for preventing touch key misoperations in landscape screen state of mobile terminal
US10075582B2 (en) Terminal control method and apparatus, and terminal
CN106533988B (en) Application program network speed control method and mobile terminal
CN103150112A (en) Method, device and terminal for controlling audio play
CN103002148A (en) Music switching method based on mobile terminal in screen extinguishment mode and mobile terminal
CN102830906B (en) Method and the terminal unit of file process is carried out based on user interface
CN103226434B (en) A kind of method that menu information is shown and device
CN103064605A (en) Method and device for controlling application software of mobile terminal under screen extinguishing mode
CN103699298A (en) Information processing method and electronic equipment
CN106873869A (en) A kind of control method and device of music
WO2016179912A1 (en) Application program control method and apparatus, and mobile terminal
CN103888605A (en) Information processing method and electronic device
CN104519051A (en) Method and terminals for sharing multimedia data
CN105242780A (en) Interactive control method and apparatus
CN107402675A (en) A kind of response method of touch operation, device, storage medium and terminal
CN104539999A (en) Multimedia data sharing method and terminal
CN105320260B (en) The control method and mobile terminal of mobile terminal
CN103399662B (en) A kind of touch-screen that processes reports the method for coordinate event, system and mobile terminal
CN103399707A (en) Screen unlocking method and device
CN107734121A (en) Method for controlling volume, device, storage medium and electronic equipment
CN103164131B (en) A kind of unlock method of electronic equipment and electronic equipment
CN106909380B (en) Touch screen drive loading method and system based on mobile terminal
CN104238907A (en) Interface display method and device and terminal equipment
CN104407698A (en) Projecting method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Beijing Xiaomi Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP02 Change in the address of a patent holder

Address after: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13

Patentee after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Patentee before: Xiaomi Technology Co., Ltd.