WO2014173170A1 - Multi-media file play control method and apparatus - Google Patents

Multi-media file play control method and apparatus Download PDF

Info

Publication number
WO2014173170A1
WO2014173170A1 PCT/CN2013/091073 CN2013091073W WO2014173170A1 WO 2014173170 A1 WO2014173170 A1 WO 2014173170A1 CN 2013091073 W CN2013091073 W CN 2013091073W WO 2014173170 A1 WO2014173170 A1 WO 2014173170A1
Authority
WO
WIPO (PCT)
Prior art keywords
acceleration
change
terminal
peaks
double
Prior art date
Application number
PCT/CN2013/091073
Other languages
French (fr)
Chinese (zh)
Inventor
王超
朱才
欧阳洋
Original Assignee
小米科技有限责任公司
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 小米科技有限责任公司 filed Critical 小米科技有限责任公司
Publication of WO2014173170A1 publication Critical patent/WO2014173170A1/en

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

Definitions

  • the present disclosure relates to the field of multimedia technologies, and in particular, to a method and an apparatus for controlling playback of a multimedia file. Background technique
  • an embodiment of the present disclosure provides a method and apparatus for controlling playback of a multimedia file.
  • a method for controlling playback of a multimedia file includes:
  • the performing acceleration detection on the terminal that plays the multimedia file includes: acquiring, by using a sensor in the terminal that plays the multimedia file, in each direction of the space rectangular coordinate system Speed value
  • the determining whether the change in the acceleration conforms to a mode feature of the double-click event includes:
  • determining, according to the acceleration value measured by the sensor in each direction in the space rectangular coordinate system, the current state of the terminal including:
  • the average value of the acceleration is less than the first threshold, determining that the current state of the terminal is in a flat state; if the average value of the acceleration is not less than the first threshold, determining that the current state of the terminal is handheld status.
  • the determining, according to the change of the acceleration on the space setting vector and the current state of the terminal, whether the change of the acceleration meets the mode feature of the double-click event includes:
  • the current state of the terminal is in a flat state, determining whether the change in the acceleration on the space setting vector is two peaks in the first numerical range, and whether the interval between the two peaks is smaller than the first a preset time; if the change in the acceleration on the space setting vector is the occurrence of two peaks in the first value range, and the interval between the two peaks is less than the first preset time, determining the The change in acceleration is consistent with the pattern characteristics of the double click event.
  • the determining, according to the change of the acceleration on the space setting vector and the current state of the terminal, whether the change of the acceleration meets the mode feature of the double-click event includes:
  • the current state of the terminal is in the handheld state, determining whether the change in the acceleration on the spatial setting vector is two peaks in the second numerical range, and whether the interval between the two peaks is less than the second pre- Setting a time; if the change in the acceleration on the space setting vector is the occurrence of two peaks in the second numerical range, and the interval between the two peaks is less than the second preset time, determining the acceleration The change is consistent with the pattern characteristics of the double-click event.
  • a playback control device for a multimedia file comprising:
  • a detecting module configured to perform acceleration detection on a terminal that plays a multimedia file
  • a determining module configured to determine whether the change in the acceleration meets a mode feature of the double-click event
  • a control module configured to perform playback control on the multimedia file when the change in the acceleration conforms to a mode feature of the double-click event.
  • the detecting module is configured to acquire an acceleration value measured by the sensor in the terminal that plays the multimedia file in each direction of the space rectangular coordinate system;
  • the determining module includes: a first determining submodule, configured to determine, according to the acceleration value measured by the sensor in each direction of the space rectangular coordinate system, the current state of the terminal;
  • a second determining submodule configured to determine a change in acceleration on the spatial setting vector according to the acceleration value measured by the sensor in each direction of the spatial rectangular coordinate system
  • a judging sub-module configured to determine, according to a current state of the terminal and a change in acceleration on the space setting vector, whether the change in the acceleration conforms to a mode feature of a double-click event.
  • the first determining submodule includes:
  • a first determining unit configured to determine an average value of the acceleration on the space setting vector according to the acceleration value measured by the sensor in each direction of the space rectangular coordinate system
  • a second determining unit configured to: when the average value of the acceleration is less than the first threshold, determine that the current state of the terminal is in a flat state; and when the average value of the acceleration is not less than the first threshold, determine the The current state of the terminal is the handheld state.
  • the determining submodule is configured to determine, when the current state of the terminal is in a flat state, determine whether the change in the acceleration on the space setting vector is the first numerical range Two peaks within, and whether the interval between the two peaks is less than the first preset time; when the change in acceleration on the space setting vector is the occurrence of two peaks in the first numerical range, and twice When the interval of the peak is less than the first preset time, it is determined that the change of the acceleration conforms to the mode feature of the double-click event.
  • the determining submodule is configured to determine, when the current state of the terminal is in a handheld state, whether the change in acceleration on the space setting vector is within a second value range The two peaks, and whether the interval between the two peaks is less than the second preset time; when the change in the acceleration on the spatial setting vector is the occurrence of two peaks in the second numerical range, and two peaks When the interval time is less than the second preset time, it is determined that the change in the acceleration conforms to the mode feature of the double-click event.
  • the playback control of the multimedia file is realized according to the double-click operation, thereby improving the playback control speed of the multimedia file under the premise of simplifying the user operation, and reducing the chance of accidentally touching other function keys, thereby increasing the correct operation probability.
  • FIG. 1 is an exemplary flowchart of a method for controlling playback of a multimedia file according to Embodiment 1 of the present disclosure
  • FIG. 2 is an exemplary flowchart of a method for controlling playback of a multimedia file according to Embodiment 2 of the present disclosure
  • FIG. 4 is a schematic structural diagram of a determination module according to Embodiment 3 of the present disclosure
  • FIG. 5 is a schematic structural diagram of a first determining submodule according to Embodiment 3 of the present disclosure.
  • This embodiment provides a method for controlling playback of a multimedia file.
  • the method process provided in this embodiment includes the following steps.
  • step 101 acceleration detection is performed on the terminal that plays the multimedia file.
  • step 102 it is determined whether the change in acceleration conforms to the mode feature of the double tap event.
  • step 103 if the change in acceleration conforms to the mode feature of the double-click event, the multimedia file is subjected to play control.
  • performing acceleration detection on the terminal that plays the multimedia file includes: acquiring an acceleration value measured by the sensor in the terminal playing the multimedia file in each direction of the space rectangular coordinate system;
  • Whether the change of the acceleration conforms to the mode feature of the double-click event is determined according to the current state of the terminal and the change of the acceleration on the space setting vector.
  • determining the current state of the terminal according to the acceleration value measured by the sensor in each direction of the space rectangular coordinate system includes:
  • the average value of the acceleration is not less than the first threshold, it is determined that the current state of the terminal is the handheld state.
  • the space setting vector corresponding to the acceleration average value may be the same as or different from the space setting vector corresponding to the change in the acceleration.
  • determining whether the change of the acceleration conforms to the mode feature of the double-click event according to the current state of the terminal and the change of the acceleration on the space setting vector includes:
  • the change in the acceleration on the space setting vector is the occurrence of two peaks in the first value range, and the interval between the two peaks is less than the first preset time, it is determined that the change in acceleration conforms to the mode feature of the double-click event.
  • determining whether the change of the acceleration conforms to the mode feature of the double-click event according to the current state of the terminal and the change of the acceleration on the space setting vector includes:
  • the change in the acceleration on the space setting vector is the occurrence of two peaks in the second numerical range, and the interval between the two peaks is less than the second preset time, it is determined that the change in acceleration conforms to the mode feature of the double-click event.
  • the double-click operation performed by the user may be reflected by the acceleration of the terminal.
  • the acceleration of the terminal is detected to determine whether the change of the acceleration conforms to the mode feature of the double-click event, and according to the judgment result.
  • the multimedia file is played and controlled, and the multimedia file can be played and controlled according to the double-click operation, thereby improving the playback control speed of the multimedia file under the premise of simplifying the user operation, and reducing the chance of accidentally touching other function keys, thereby increasing the correct operation probability.
  • the present embodiment provides a method for controlling playback of a multimedia file.
  • the method provided in this embodiment is exemplified in detail by taking the mobile terminal as a mobile phone with the operating system as the Android system as an example. Referring to FIG. 2, the method process provided by this embodiment includes the following steps.
  • step 201 the acceleration values measured by the sensors in the mobile phone in various directions of the space rectangular coordinate system are obtained.
  • the sensor is not specifically limited in this embodiment.
  • the sensor is a gyroscope in a cell phone, or another sensor in a cell phone that can measure acceleration.
  • a monitoring module can be registered in the system platform of the Android system, and the monitoring module can obtain the acceleration value measured by the sensor in the mobile phone in all directions of the space rectangular coordinate system.
  • the spatial Cartesian coordinate system has x, y, and z directions, X is the horizontal axis direction, y is the vertical axis direction, and y is the number axis direction.
  • step 202 the current state of the mobile phone and the acceleration of the space setting vector are determined according to the acceleration values measured by the sensor in various directions of the spatial rectangular coordinate system.
  • the acceleration average value on the spatial setting vector is determined according to the acceleration value measured by the sensor in each direction of the space rectangular coordinate system, and according to the acceleration average value, the current state of the mobile phone can be determined.
  • the space setting vector corresponding to the acceleration average value may be the same as or different from the space setting vector corresponding to the change in the acceleration.
  • the first threshold is set, and the first threshold is set. The minimum value of the acceleration in the hand-held state. If the average value of the acceleration is less than the first threshold, it is determined that the current state of the terminal is a flat state; if the average value of the acceleration is not less than the first threshold, it is determined that the current state of the terminal is a handheld state.
  • the first threshold is determined according to the empirical value. This embodiment does not limit the determining manner and specific size of the first threshold.
  • the state in which the mobile phone is located may have other states besides the above-mentioned hand-held state and the flat state. This embodiment does not limit the specific state in which the mobile phone is currently located.
  • the method for determining the current state of the mobile phone according to the acceleration value measured by the sensor in each direction of the space rectangular coordinate system may be other methods besides the above method, and the present embodiment is also not based on the sensor in the space rectangular coordinate system.
  • the specific determination method for determining the current state of the mobile phone by the acceleration value measured in the direction is limited.
  • a spatial setting vector can be determined according to the acceleration values measured by the sensors in various directions of the spatial rectangular coordinate system.
  • the vector may be any vector in the space vector, which is not specifically limited in this embodiment.
  • step 203 it is determined whether the change of the acceleration conforms to the mode feature of the double-click event according to the current state of the mobile phone and the change of the acceleration on the space setting vector. If the change of the acceleration conforms to the mode feature of the double-click event, step 204 is performed. If the change in acceleration does not match the pattern characteristics of the double-click event, the process ends.
  • the specific judgment manner of determining whether the change of the acceleration conforms to the mode feature of the double-click event according to the current state of the mobile phone and the change of the acceleration on the space setting vector may be adopted but not limited to the following two modes.
  • the first way If the current state of the mobile phone is in a flat state, it is determined whether the change of the acceleration on the spatial setting vector is the two peaks in the first numerical range, and whether the interval between the two peaks is less than the first A preset time.
  • the change of the acceleration on the space setting vector is the occurrence of two peaks in the first numerical range, and the interval between the two peaks is less than the first preset time, it is determined that the change of the acceleration conforms to the double-click event.
  • Mode characteristic if the acceleration of the space setting vector changes to two peaks within the first value range, or although the acceleration of the space setting vector changes to two peaks within the first value range However, if the interval between the two peaks is not less than the first preset time, it is judged that the change in the acceleration does not conform to the mode feature of the double-click event.
  • the specific determination method for determining whether the change of the acceleration on the spatial setting vector is the two peaks in the first numerical range and the interval between the two peaks is less than the first preset time is not limited.
  • the curve of the acceleration on the space setting vector it is determined whether the curve is twice within the first numerical range Peak, and whether the interval between the two peaks is less than the first preset time.
  • the first value range may be lm/s2 (meters per square second) -2 m/s2, and the first preset time may be any value less than 200 ms (milliseconds).
  • the first numerical range and the first preset time may also be other values.
  • the specific value of the first numerical range and the first preset time is not limited.
  • the second mode if the current state of the terminal is the handheld state, it is determined whether the change of the acceleration on the spatial setting vector is the two peaks in the second numerical range, and whether the interval between the two peaks is less than the second Preset time.
  • the change of the acceleration on the space setting vector is the occurrence of two peaks in the second numerical range, and the interval between the two peaks is less than the second preset time, it is determined that the change of the acceleration conforms to the double-click event.
  • Mode characteristic if the change in acceleration on the space setting vector is such that two peaks in the second value range do not occur, or although the change in acceleration in the space setting vector occurs in two peaks in the second value range, If the interval between the two peaks is not less than the second preset time, it is determined that the change in the acceleration does not conform to the mode feature of the double-click event.
  • the present embodiment does not define whether the change of the acceleration on the spatial setting vector is the occurrence of two peaks in the second numerical range, and whether the interval time of the two peaks is less than the second predetermined time. For example, according to the curve of the acceleration on the space setting vector, it is determined whether the curve is the two peaks in the second numerical range, and the interval between the two peaks is less than the second preset time.
  • the second value range is 2 m/s 2-3 m/s 2 and the second preset time is any value between 300 m S and 500 ms.
  • the second value range and the second preset time may also be other values. This embodiment does not limit the specific size of the second value range and the second preset time.
  • the mode feature of the double-click event has two peaks in the first value range except the above, and the interval between the two peaks is less than the first preset time, or two peaks in the second value range appear, and The interval between the two peaks is smaller than the second preset time, and may be other features.
  • the mode feature of the double-click event is not specifically limited in this embodiment.
  • step 204 playback control is performed on the multimedia file.
  • the state of the multimedia file is determined, and the playback control is performed according to the state of the multimedia file. If the multimedia file is in the playback state, the multimedia file is paused. Or, if the multimedia file is in the paused state, the multimedia file is played.
  • the state in which the multimedia file is located may be other states.
  • This embodiment does not limit the specific state of the multimedia file.
  • when the multimedia file is in a state other than the playing state and the suspended state other playback control operations are performed according to the specific state in which the multimedia file is located.
  • This embodiment does not limit the specific type of the playback control, and the embodiment does not apply to the multimedia. The specific correspondence between the status and the playback control is limited.
  • this embodiment does not limit the specific determination rule of the state in which the multimedia file is located, including but not limited to: Since the playback controller itself records the state of the currently played multimedia file, according to the playback controller itself A record of the state of the currently playing multimedia file determines the state of the multimedia file.
  • the playback control method of the multimedia file provided in this embodiment is exemplified by taking the mobile terminal as the mobile phone as an example.
  • the terminal that plays multimedia can also be used in addition to the mobile phone.
  • this embodiment does not limit the specific product form of the terminal that plays multimedia.
  • the operating system used by the terminal playing the multimedia may be a Saipan system or other system in addition to the Android system. This embodiment does not limit the operating system used by the terminal playing the multimedia.
  • the double-click operation performed by the user may be reflected by the acceleration of the terminal.
  • the acceleration of the terminal is detected to determine whether the change of the acceleration conforms to the mode feature of the double-click event, and according to the judgment result.
  • the multimedia file is played and controlled, and the multimedia file can be played and controlled according to the double-click operation, thereby improving the playback control speed of the multimedia file under the premise of simplifying the user operation, and reducing the chance of accidentally touching other function keys, thereby increasing the correct operation probability.
  • the present embodiment provides a playback control device for a multimedia file, which is used to perform the playback control method of the multimedia file provided in the first embodiment or the second embodiment.
  • the terminal includes:
  • the detecting module 301 is configured to perform acceleration detection on the terminal;
  • the determining module 302 is configured to determine whether the change of the acceleration conforms to the mode feature of the double-click event
  • the control module 303 is configured to perform playback control on the multimedia file when the change of the acceleration conforms to the mode feature of the double-click event.
  • the detecting module 301 is configured to acquire an acceleration value measured by the sensor in the terminal playing the multimedia file in each direction of the space rectangular coordinate system.
  • the determining module 302 includes:
  • a first determining sub-module 3021 configured to determine, according to an acceleration value measured by the sensor in each direction of the space rectangular coordinate system, a current state of the terminal
  • a second determining sub-module 3022 configured to determine a change in acceleration on the spatial setting vector according to the acceleration value measured by the sensor in each direction of the spatial rectangular coordinate system
  • the determining sub-module 3023 is configured to determine, according to the current state of the terminal and the change of the acceleration of the sensor on the space setting vector, whether the change of the acceleration conforms to the mode feature of the double-click event.
  • the first determining sub-module 3021 includes:
  • the first determining unit 30211 is configured to determine an average value of the acceleration on the spatial setting vector according to the acceleration value measured by the sensor in each direction of the spatial rectangular coordinate system;
  • the second determining unit 30212 is configured to determine that the current state of the terminal is a flat state when the average value of the acceleration is less than the first threshold; and determine that the current state of the terminal is the handheld state when the average value of the acceleration is not less than the first threshold.
  • the determining sub-module 3023 is configured to determine, when the current state of the terminal is in a flat state, whether the change in the acceleration on the spatial setting vector is the two peaks in the first numerical range. And whether the interval between the two peaks is less than the first preset time; when the change in the acceleration on the space setting vector is the two peaks in the first numerical range, and the interval between the two peaks is less than the first preset At time, it is judged that the change in acceleration conforms to the mode feature of the double-click event.
  • the determining sub-module 3023 is configured to determine, when the current state of the terminal is in the handheld state, whether the change in the acceleration on the spatial setting vector is the occurrence of two peaks in the second numerical range. And whether the interval between the two peaks is less than the second preset time; when the change in the acceleration on the space setting vector is the two peaks in the second value range, and the interval between the two peaks is less than the second preset time At the time, it is judged that the change in acceleration conforms to the mode characteristic of the double-click event.
  • the double-click operation performed by the user may be reflected by the acceleration of the terminal.
  • the acceleration of the terminal is detected to determine whether the change of the acceleration conforms to the mode feature of the double-click event, and according to the judgment result.
  • the multimedia file is played and controlled, and the multimedia file can be played and controlled according to the double-click operation, thereby improving the playback control speed of the multimedia file under the premise of simplifying the user operation, and reducing the chance of accidentally touching other function keys, thereby increasing the correct operation probability.
  • the playback control terminal of the multimedia file provided by the foregoing embodiment implements the playback control of the multimedia file, only the division of the above functional modules is illustrated.
  • the foregoing function may be allocated according to requirements. Different functional modules are completed, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the functions described above.
  • the playback control terminal of the multimedia file provided by the foregoing embodiment is the same as the embodiment of the playback control method of the multimedia file. For the specific implementation process, refer to the method embodiment, which is not described here.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

The present disclosure relates to the field of multi-media technologies, and provides a multi-media file play control method and apparatus. The method comprises: performing acceleration detection on a terminal playing a multi-media file; determining whether an acceleration change conforms to a mode feature of a double-click event; and if the acceleration change conforms to the mode feature of the double-click event, controlling playing of the multi-media file. Because a double-click operation performed by a user can be represented through acceleration of the terminal, playing of the multi-media file is controlled, so that under the premise of simplifying a user operation, a control speed for the playing of the multi-media file is improved, an opportunity for mistakenly touching another functional key is reduced, and the probability of correct operation is improved.

Description

多媒体文件的播放控制方法及装置 本申请基于申请号为 201310141612.8、 申请日为 2013年 4月 22日的中国专利申请提 出, 并要求该中国专利申请的优先权, 该中国专利申请的全部内容在此引入本申请作为参 考。 技术领域  The present invention is based on a Chinese patent application with the application number of 201310141612.8 and the filing date of April 22, 2013, and claims the priority of the Chinese patent application, the entire contents of which is here This application is hereby incorporated by reference. Technical field
本公开涉及多媒体技术领域, 特别涉及一种多媒体文件的播放控制方法及装置。 背景技术  The present disclosure relates to the field of multimedia technologies, and in particular, to a method and an apparatus for controlling playback of a multimedia file. Background technique
在进行多媒体文件播放后, 往往由于一些原因, 需要对开始播放的多媒体文件进行播 放控制。 例如, 中断当前播放的多媒体文件的暂停控制; 或者, 对于暂停播放的多媒体文 件继续播放的播放控制。 因此, 如何实现多媒体文件的播放控制是播放器能否满足用户需 求的关键。  After playing a multimedia file, it is often necessary to play control on the multimedia file that starts playing for some reason. For example, interrupt control of the currently playing multimedia file is interrupted; or playback control for the playback of the paused multimedia file. Therefore, how to realize the playback control of multimedia files is the key to whether the player can meet the needs of users.
目前, 对多媒体文件播放控制时, 需要先进入播放器控制面板, 然后点击播放器控制 面板上的播放控制按钮, 以实现多媒体文件的播放控制。 例如, 在播放控制面板上点击暂 停按钮, 实现中断当前播放的多媒体文件的暂停功能; 或者, 在播放控制面板上点击播放 按钮, 实现暂停多媒体文件的继续播放功能。  At present, when playing multimedia file playback control, you need to enter the player control panel first, and then click the playback control button on the player control panel to control the playback of multimedia files. For example, click the pause button on the playback control panel to interrupt the pause function of the currently playing multimedia file; or, click the play button on the playback control panel to pause the playback of the multimedia file.
不论是对多媒体文件暂停还是对暂停的多媒体文件继续播放,均需要首先进入播放器 控制面板, 使得目前多媒体文件暂停和播放的操作方法十分繁琐, 从而降低实现多媒体文 件暂停和播放的速度。 另外, 播放器控制面板上除暂停按钮、 播放按钮之外还有其它许多 功能按钮。 例如: 快进按钮、 后退按钮、 停止按钮等, 因此在仅需要对多媒体文件暂停播 放或者对暂停的多媒体文件继续播放, 进而进入播放器控制面板时, 增加了误触其它功能 按钮的机会, 从而降低了正确操作概率。 发明内容  Whether the multimedia file is paused or the paused multimedia file continues to play, it is necessary to first enter the player control panel, so that the current operation method of suspending and playing the multimedia file is very cumbersome, thereby reducing the speed of suspending and playing the multimedia file. In addition, there are many other function buttons on the player control panel in addition to the pause button and play button. For example: fast forward button, back button, stop button, etc., so when it is only necessary to pause the playback of the multimedia file or continue to play the paused multimedia file, and then enter the player control panel, the chance of accidentally touching other function buttons is increased, thereby Reduced the probability of correct operation. Summary of the invention
为了解决背景技术的问题,本公开实施例提供了一种多媒体文件的播放控制方法及装 置。  In order to solve the problem of the background art, an embodiment of the present disclosure provides a method and apparatus for controlling playback of a multimedia file.
一方面, 提供了一种多媒体文件的播放控制方法, 所述方法包括:  In one aspect, a method for controlling playback of a multimedia file is provided, and the method includes:
对播放多媒体文件的终端进行加速度检测;  Acceleration detection of the terminal playing the multimedia file;
判断所述加速度的变化是否符合双击事件的模式特征;  Determining whether the change in the acceleration conforms to a mode feature of the double-click event;
如果所述加速度的变化符合双击事件的模式特征, 对所述多媒体文件进行播放控制。 作为一种可选的实施方式, 所述对播放多媒体文件的终端进行加速度检测, 包括: 获取所述播放多媒体文件的终端中的传感器在空间直角坐标系各个方向上测得的加 速度值; If the change in acceleration conforms to the mode feature of the double tap event, playback control is performed on the multimedia file. As an optional implementation manner, the performing acceleration detection on the terminal that plays the multimedia file includes: acquiring, by using a sensor in the terminal that plays the multimedia file, in each direction of the space rectangular coordinate system Speed value
所述判断所述加速度的变化是否符合双击事件的模式特征, 包括:  The determining whether the change in the acceleration conforms to a mode feature of the double-click event includes:
根据所述传感器在空间直角坐标系各个方向上测得的加速度值确定空间设定向量上 的加速度的变化及所述终端当前所处状态;  Determining, according to the acceleration value measured by the sensor in each direction of the space rectangular coordinate system, a change in acceleration on the spatial setting vector and a current state of the terminal;
根据所述空间设定向量上的加速度的变化及所述终端当前所处状态判断所述加速度 的变化是否符合双击事件的模式特征。  Determining whether the change in the acceleration conforms to a mode feature of the double-click event according to a change in acceleration on the space setting vector and a state in which the terminal is currently located.
作为一种可选的实施方式,所述根据所述传感器在空间直角坐标系中各个方向上测得 的加速度值确定所述终端当前所处状态, 包括:  As an optional implementation manner, determining, according to the acceleration value measured by the sensor in each direction in the space rectangular coordinate system, the current state of the terminal, including:
根据所述传感器在空间直角坐标系各个方向上测得的加速度值确定空间设定向量上 的加速度平均值;  Determining an average value of the acceleration on the spatial setting vector according to the acceleration value measured by the sensor in each direction of the space rectangular coordinate system;
如果所述加速度平均值小于第一阈值, 则确定所述终端当前所处状态为平放状态; 如果所述加速度平均值不小于所述第一阈值,则确定所述终端当前所处状态为手持状 态。  If the average value of the acceleration is less than the first threshold, determining that the current state of the terminal is in a flat state; if the average value of the acceleration is not less than the first threshold, determining that the current state of the terminal is handheld status.
作为一种可选的实施方式,所述根据所述空间设定向量上的加速度的变化及所述终端 当前所处状态判断所述加速度的变化是否符合双击事件的模式特征, 包括:  As an optional implementation manner, the determining, according to the change of the acceleration on the space setting vector and the current state of the terminal, whether the change of the acceleration meets the mode feature of the double-click event, includes:
如果所述终端当前所处状态为平放状态,则判断所述空间设定向量上的加速度的变化 是否为出现第一数值范围内的两次峰值, 且两次峰值的间隔时间是否小于第一预设时间; 如果所述空间设定向量上的加速度的变化为出现所述第一数值范围内的两次峰值,且 两次峰值的间隔时间小于所述第一预设时间,则判断所述加速度的变化符合双击事件的模 式特征。  If the current state of the terminal is in a flat state, determining whether the change in the acceleration on the space setting vector is two peaks in the first numerical range, and whether the interval between the two peaks is smaller than the first a preset time; if the change in the acceleration on the space setting vector is the occurrence of two peaks in the first value range, and the interval between the two peaks is less than the first preset time, determining the The change in acceleration is consistent with the pattern characteristics of the double click event.
作为一种可选的实施方式,所述根据所述空间设定向量上的加速度的变化及所述终端 当前所处状态判断所述加速度的变化是否符合双击事件的模式特征, 包括:  As an optional implementation manner, the determining, according to the change of the acceleration on the space setting vector and the current state of the terminal, whether the change of the acceleration meets the mode feature of the double-click event, includes:
如果所述终端当前所处状态为手持状态,则判断所述空间设定向量上的加速度的变化 是否为出现第二数值范围内的两次峰值, 且两次峰值的间隔时间是否小于第二预设时间; 如果所述空间设定向量上的加速度的变化为出现所述第二数值范围内的两次峰值,且 两次峰值的间隔时间小于所述第二预设时间,则判断所述加速度的变化符合双击事件的模 式特征。  If the current state of the terminal is in the handheld state, determining whether the change in the acceleration on the spatial setting vector is two peaks in the second numerical range, and whether the interval between the two peaks is less than the second pre- Setting a time; if the change in the acceleration on the space setting vector is the occurrence of two peaks in the second numerical range, and the interval between the two peaks is less than the second preset time, determining the acceleration The change is consistent with the pattern characteristics of the double-click event.
另一方面, 提供了一种多媒体文件的播放控制装置, 所述装置包括:  In another aspect, a playback control device for a multimedia file is provided, the device comprising:
检测模块, 用于对播放多媒体文件的终端进行加速度检测;  a detecting module, configured to perform acceleration detection on a terminal that plays a multimedia file;
判断模块, 用于判断所述加速度的变化是否符合双击事件的模式特征;  a determining module, configured to determine whether the change in the acceleration meets a mode feature of the double-click event;
控制模块, 用于当所述加速度的变化符合双击事件的模式特征时, 对所述多媒体文件 进行播放控制。  And a control module, configured to perform playback control on the multimedia file when the change in the acceleration conforms to a mode feature of the double-click event.
作为一种可选的实施方式, 所述检测模块, 用于获取所述播放多媒体文件的终端中的 传感器在空间直角坐标系各个方向上测得的加速度值;  As an optional implementation manner, the detecting module is configured to acquire an acceleration value measured by the sensor in the terminal that plays the multimedia file in each direction of the space rectangular coordinate system;
所述判断模块, 包括: 第一确定子模块,用于根据所述传感器在空间直角坐标系各个方向上测得的加速度值 确定所述终端当前所处状态; The determining module includes: a first determining submodule, configured to determine, according to the acceleration value measured by the sensor in each direction of the space rectangular coordinate system, the current state of the terminal;
第二确定子模块,用于根据所述传感器在空间直角坐标系各个方向上测得的加速度值 确定空间设定向量上的加速度的变化;  a second determining submodule configured to determine a change in acceleration on the spatial setting vector according to the acceleration value measured by the sensor in each direction of the spatial rectangular coordinate system;
判断子模块,用于根据所述终端当前所处状态及所述空间设定向量上的加速度的变化 判断所述加速度的变化是否符合双击事件的模式特征。  And a judging sub-module, configured to determine, according to a current state of the terminal and a change in acceleration on the space setting vector, whether the change in the acceleration conforms to a mode feature of a double-click event.
作为一种可选的实施方式, 所述第一确定子模块, 包括:  As an optional implementation manner, the first determining submodule includes:
第一确定单元,用于根据所述传感器在空间直角坐标系各个方向上测得的加速度值确 定空间设定向量上的加速度平均值;  a first determining unit, configured to determine an average value of the acceleration on the space setting vector according to the acceleration value measured by the sensor in each direction of the space rectangular coordinate system;
第二确定单元, 用于当所述加速度平均值小于第一阈值时, 确定所述终端当前所处状 态为平放状态; 当所述加速度平均值不小于所述第一阈值时, 确定所述终端当前所处状态 为手持状态。  a second determining unit, configured to: when the average value of the acceleration is less than the first threshold, determine that the current state of the terminal is in a flat state; and when the average value of the acceleration is not less than the first threshold, determine the The current state of the terminal is the handheld state.
作为一种可选的实施方式, 所述判断子模块, 用于当所述终端当前所处状态为平放状 态时, 判断所述空间设定向量上的加速度的变化是否为出现第一数值范围内的两次峰值, 且两次峰值的间隔时间是否小于第一预设时间; 当所述空间设定向量上的加速度的变化为 出现所述第一数值范围内的两次峰值, 且两次峰值的间隔时间小于所述第一预设时间时, 判断所述加速度的变化符合双击事件的模式特征。  As an optional implementation manner, the determining submodule is configured to determine, when the current state of the terminal is in a flat state, determine whether the change in the acceleration on the space setting vector is the first numerical range Two peaks within, and whether the interval between the two peaks is less than the first preset time; when the change in acceleration on the space setting vector is the occurrence of two peaks in the first numerical range, and twice When the interval of the peak is less than the first preset time, it is determined that the change of the acceleration conforms to the mode feature of the double-click event.
作为一种可选的实施方式, 所述判断子模块, 用于当所述终端当前所处状态为手持状 态时, 判断所述空间设定向量上的加速度的变化是否为出现第二数值范围内的两次峰值, 且两次峰值的间隔时间是否小于第二预设时间; 当所述空间设定向量上的加速度的变化为 出现所述第二数值范围内的两次峰值, 且两次峰值的间隔时间小于所述第二预设时间时, 判断所述加速度的变化符合双击事件的模式特征。  As an optional implementation manner, the determining submodule is configured to determine, when the current state of the terminal is in a handheld state, whether the change in acceleration on the space setting vector is within a second value range The two peaks, and whether the interval between the two peaks is less than the second preset time; when the change in the acceleration on the spatial setting vector is the occurrence of two peaks in the second numerical range, and two peaks When the interval time is less than the second preset time, it is determined that the change in the acceleration conforms to the mode feature of the double-click event.
本公开实施例提供的技术方案带来的一些有益效果可以包括:  Some of the beneficial effects brought by the technical solutions provided by the embodiments of the present disclosure may include:
由于用户执行的双击操作可以通过终端的加速度体现, 在用户进行双击操作后, 通过 检测终端的加速度, 判断加速度的变化是否符合双击事件的模式特征, 并根据判断结果对 多媒体文件进行播放控制, 可以实现根据双击操作对多媒体文件进行播放控制, 进而在简 化用户操作的前提下, 提高多媒体文件的播放控制速度, 减少误触其它功能按键的机会, 从而增加正确操作概率。  Since the double-click operation performed by the user can be reflected by the acceleration of the terminal, after the user performs the double-click operation, by detecting the acceleration of the terminal, determining whether the change of the acceleration conforms to the mode feature of the double-click event, and performing playback control on the multimedia file according to the judgment result, The playback control of the multimedia file is realized according to the double-click operation, thereby improving the playback control speed of the multimedia file under the premise of simplifying the user operation, and reducing the chance of accidentally touching other function keys, thereby increasing the correct operation probability.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。 附图说明  The above general description and the following detailed description are merely exemplary and are not intended to limit the disclosure. DRAWINGS
为了更清楚地说明本公开实施例中的技术方案,下面将对实施例描述中所需要使用的 附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本公开的一些实施例, 对于本 领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的 附图。 图 1是本公开实施例一提供的一种多媒体文件的播放控制方法的示例性流程图; 图 2是本公开实施例二提供的一种多媒体文件的播放控制方法的示例性流程图; 图 3是本公开实施例三提供的一种多媒体文件的播放控制装置的示例性结构示意图; 图 4是本公开实施例三提供的一种判断模块的示例性结构示意图; In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings which are used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present disclosure. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings. 1 is an exemplary flowchart of a method for controlling playback of a multimedia file according to Embodiment 1 of the present disclosure; FIG. 2 is an exemplary flowchart of a method for controlling playback of a multimedia file according to Embodiment 2 of the present disclosure; Is a schematic structural diagram of a playback control device for a multimedia file according to Embodiment 3 of the present disclosure; FIG. 4 is a schematic structural diagram of a determination module according to Embodiment 3 of the present disclosure;
图 5是本公开实施例三提供的一种第一确定子模块的示例性结构示意图。  FIG. 5 is a schematic structural diagram of a first determining submodule according to Embodiment 3 of the present disclosure.
通过上述附图, 已示出本公开明确的实施例, 后文中将有更详细的描述。 这些附图和 文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本 领域技术人员说明本公开的概念。 具体实施方式  The embodiments of the present disclosure have been shown by the above-described drawings, which will be described in more detail later. The drawings and the written description are not intended to limit the scope of the present disclosure in any way, and the concepts of the present disclosure are described by those skilled in the art by referring to the specific embodiments. detailed description
为使本公开实施例的目的、技术方案和优点更加清楚, 下面将结合附图对本公开实施 例作进一步地详细描述。  The embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.
实施例一  Embodiment 1
本实施例提供了一种多媒体文件的播放控制方法, 参见图 1, 本实施例提供的方法流 程包括如下步骤。  This embodiment provides a method for controlling playback of a multimedia file. Referring to FIG. 1, the method process provided in this embodiment includes the following steps.
在步骤 101中, 对播放多媒体文件的终端进行加速度检测。  In step 101, acceleration detection is performed on the terminal that plays the multimedia file.
在步骤 102中, 判断加速度的变化是否符合双击事件的模式特征。  In step 102, it is determined whether the change in acceleration conforms to the mode feature of the double tap event.
在步骤 103中, 如果加速度的变化符合双击事件的模式特征, 则对多媒体文件进行播 放控制。  In step 103, if the change in acceleration conforms to the mode feature of the double-click event, the multimedia file is subjected to play control.
作为一种可选的实施方式, 对播放多媒体文件的终端进行加速度检测, 包括: 获取播放多媒体文件的终端中的传感器在空间直角坐标系各个方向上测得的加速度 值;  As an optional implementation manner, performing acceleration detection on the terminal that plays the multimedia file includes: acquiring an acceleration value measured by the sensor in the terminal playing the multimedia file in each direction of the space rectangular coordinate system;
判断加速度的变化是否符合双击事件的模式特征, 包括:  Determine whether the change in acceleration matches the pattern characteristics of the double-click event, including:
根据传感器在空间直角坐标系各个方向上测得的加速度值确定终端当前所处状态及 空间设定向量上的加速度的变化;  Determining the current state of the terminal and the acceleration of the acceleration on the space setting vector according to the acceleration value measured by the sensor in each direction of the space rectangular coordinate system;
根据终端当前所处状态及空间设定向量上的加速度的变化判断加速度的变化是否符 合双击事件的模式特征。  Whether the change of the acceleration conforms to the mode feature of the double-click event is determined according to the current state of the terminal and the change of the acceleration on the space setting vector.
作为一种可选的实施方式,根据传感器在空间直角坐标系中各个方向上测得的加速度 值确定终端当前所处状态, 包括:  As an optional implementation manner, determining the current state of the terminal according to the acceleration value measured by the sensor in each direction of the space rectangular coordinate system includes:
根据传感器在空间直角坐标系各个方向上测得的加速度值确定空间设定向量上的加 速度平均值;  Determining an average value of the acceleration on the spatial setting vector according to the acceleration value measured by the sensor in each direction of the space rectangular coordinate system;
如果加速度平均值小于第一阈值, 则确定终端当前所处状态为平放状态;  If the average value of the acceleration is less than the first threshold, determining that the current state of the terminal is in a flat state;
如果加速度平均值不小于第一阈值, 则确定终端当前所处状态为手持状态。  If the average value of the acceleration is not less than the first threshold, it is determined that the current state of the terminal is the handheld state.
这里加速度平均值对应的空间设定向量, 与加速度的变化对应的空间设定向量, 可以 相同, 也可以不相同。 作为一种可选的实施方式,根据终端当前所处状态及空间设定向量上的加速度的变化 判断加速度的变化是否符合双击事件的模式特征, 包括: Here, the space setting vector corresponding to the acceleration average value may be the same as or different from the space setting vector corresponding to the change in the acceleration. As an optional implementation manner, determining whether the change of the acceleration conforms to the mode feature of the double-click event according to the current state of the terminal and the change of the acceleration on the space setting vector includes:
如果终端当前所处状态为平放状态,则判断空间设定向量上的加速度的变化是否为出 现第一数值范围内的两次峰值, 且两次峰值的间隔时间是否小于第一预设时间;  If the current state of the terminal is in a flat state, determining whether the change in the acceleration on the spatial setting vector is the two peaks in the first numerical range, and whether the interval between the two peaks is less than the first preset time;
如果空间设定向量上的加速度的变化为出现第一数值范围内的两次峰值,且两次峰值 的间隔时间小于第一预设时间, 则判断加速度的变化符合双击事件的模式特征。  If the change in the acceleration on the space setting vector is the occurrence of two peaks in the first value range, and the interval between the two peaks is less than the first preset time, it is determined that the change in acceleration conforms to the mode feature of the double-click event.
作为一种可选的实施方式,根据终端当前所处状态及空间设定向量上的加速度的变化 判断加速度的变化是否符合双击事件的模式特征, 包括:  As an optional implementation manner, determining whether the change of the acceleration conforms to the mode feature of the double-click event according to the current state of the terminal and the change of the acceleration on the space setting vector includes:
如果终端当前所处状态为手持状态,则判断空间设定向量上的加速度的变化是否为出 现第二数值范围内的两次峰值, 且两次峰值的间隔时间是否小于第二预设时间;  If the current state of the terminal is in the handheld state, determining whether the change in the acceleration on the spatial setting vector is the two peaks in the second numerical range, and whether the interval between the two peaks is less than the second preset time;
如果空间设定向量上的加速度的变化为出现第二数值范围内的两次峰值,且两次峰值 的间隔时间小于第二预设时间, 则判断加速度的变化符合双击事件的模式特征。  If the change in the acceleration on the space setting vector is the occurrence of two peaks in the second numerical range, and the interval between the two peaks is less than the second preset time, it is determined that the change in acceleration conforms to the mode feature of the double-click event.
本实施例提供的方法, 由于用户执行的双击操作可以通过终端的加速度体现, 在用户 进行双击操作后, 通过检测终端的加速度, 判断加速度的变化是否符合双击事件的模式特 征, 并根据判断结果对多媒体文件进行播放控制, 可以实现根据双击操作对多媒体文件进 行播放控制, 进而在简化用户操作的前提下, 提高多媒体文件的播放控制速度, 减少误触 其它功能按键的机会, 从而增加正确操作概率。  In the method provided by the embodiment, the double-click operation performed by the user may be reflected by the acceleration of the terminal. After the user performs the double-click operation, the acceleration of the terminal is detected to determine whether the change of the acceleration conforms to the mode feature of the double-click event, and according to the judgment result. The multimedia file is played and controlled, and the multimedia file can be played and controlled according to the double-click operation, thereby improving the playback control speed of the multimedia file under the premise of simplifying the user operation, and reducing the chance of accidentally touching other function keys, thereby increasing the correct operation probability.
为了更加清楚地阐述上述实施例提供的一种多媒体文件的播放控制方法,结合上述实 施例的内容, 以如下实施例二为例, 对一种多媒体文件的播放控制方法进行详细说明, 详 见如下实施例二。 实施例二  In order to more clearly explain the playback control method of the multimedia file provided by the foregoing embodiment, in conjunction with the content of the foregoing embodiment, a playback control method for a multimedia file is described in detail by using the following second embodiment as an example. Example 2. Embodiment 2
本实施例提供了一种多媒体文件的播放控制方法, 为了便于说明, 本实施例以播放多 媒体的终端为操作系统为安卓系统的手机为例,对本实施例提供的方法进行详细地举例说 明。 参见图 2, 本实施例提供的方法流程包括如下步骤。  The present embodiment provides a method for controlling playback of a multimedia file. For convenience of description, the method provided in this embodiment is exemplified in detail by taking the mobile terminal as a mobile phone with the operating system as the Android system as an example. Referring to FIG. 2, the method process provided by this embodiment includes the following steps.
在步骤 201中, 获取手机中的传感器在空间直角坐标系各个方向上测得的加速度值。 针对该步骤, 本实施例不对传感器进行具体限定。 例如, 传感器为手机中的陀螺仪, 或者手机中可以测出加速度的其它传感器。  In step 201, the acceleration values measured by the sensors in the mobile phone in various directions of the space rectangular coordinate system are obtained. For this step, the sensor is not specifically limited in this embodiment. For example, the sensor is a gyroscope in a cell phone, or another sensor in a cell phone that can measure acceleration.
另外, 本实施例也不对检测的具体方式进行限定。 例如, 可以在安卓系统的系统平台 中注册一个监听模块,通过该监听模块获取手机中的传感器在空间直角坐标系各个方向上 测得的加速度值。  In addition, this embodiment does not limit the specific manner of detection. For example, a monitoring module can be registered in the system platform of the Android system, and the monitoring module can obtain the acceleration value measured by the sensor in the mobile phone in all directions of the space rectangular coordinate system.
其中, 空间直角坐标系各个方向分别为 x、 y、 z方向, X为横轴方向, y为纵轴方向, y为数轴方向。  Wherein, the spatial Cartesian coordinate system has x, y, and z directions, X is the horizontal axis direction, y is the vertical axis direction, and y is the number axis direction.
在步骤 202中,根据传感器在空间直角坐标系各个方向上测得的加速度值确定手机当 前所处状态及空间设定向量上的加速度的变化。 针对该步骤,根据传感器在空间直角坐标系各个方向上测得的加速度值确定空间设定 向量上的加速度平均值, 再根据该加速度平均值, 可以确定手机当前所处状态。 这里加速 度平均值对应的空间设定向量, 与加速度的变化对应的空间设定向量, 可以相同, 也可以 不相同。 In step 202, the current state of the mobile phone and the acceleration of the space setting vector are determined according to the acceleration values measured by the sensor in various directions of the spatial rectangular coordinate system. For this step, the acceleration average value on the spatial setting vector is determined according to the acceleration value measured by the sensor in each direction of the space rectangular coordinate system, and according to the acceleration average value, the current state of the mobile phone can be determined. Here, the space setting vector corresponding to the acceleration average value may be the same as or different from the space setting vector corresponding to the change in the acceleration.
为了便于说明, 以手机所处状态包括手持状态和平放状态为例, 由于手机手持状态的 加速度平均值一般大于手机平放状态的加速度平均值, 因此, 设定第一阈值, 该第一阈值 为手持状态的加速度的最小值。如果加速度平均值小于第一阈值, 则确定终端当前所处状 态为平放状态;如果加速度平均值不小于第一阈值,则确定终端当前所处状态为手持状态。  For convenience of description, taking the state of the mobile phone, including the handheld state and the flat state, as an example, since the average value of the acceleration of the handheld state of the mobile phone is generally greater than the average value of the acceleration of the mobile phone in the flat state, the first threshold is set, and the first threshold is set. The minimum value of the acceleration in the hand-held state. If the average value of the acceleration is less than the first threshold, it is determined that the current state of the terminal is a flat state; if the average value of the acceleration is not less than the first threshold, it is determined that the current state of the terminal is a handheld state.
其中, 可以根据经验值确定第一阈值, 本实施例不对第一阈值的确定方式及具体大小 进行限定。 当然, 手机所处状态除上述手持状态和平放状态之外, 还可以有其它状态, 本 实施例不对手机当前所处的具体状态进行限定。另外, 根据传感器在空间直角坐标系各个 方向上测得的加速度值确定手机当前所处状态的方法除上述方法之外, 还可以有其它方 法,本实施例也不对根据传感器在空间直角坐标系各个方向上测得的加速度值确定手机当 前所处状态的具体确定方法进行限定。  The first threshold is determined according to the empirical value. This embodiment does not limit the determining manner and specific size of the first threshold. Of course, the state in which the mobile phone is located may have other states besides the above-mentioned hand-held state and the flat state. This embodiment does not limit the specific state in which the mobile phone is currently located. In addition, the method for determining the current state of the mobile phone according to the acceleration value measured by the sensor in each direction of the space rectangular coordinate system may be other methods besides the above method, and the present embodiment is also not based on the sensor in the space rectangular coordinate system. The specific determination method for determining the current state of the mobile phone by the acceleration value measured in the direction is limited.
此外, 由于传感器在空间直角坐标系各个方向上测得的加速度值均为向量, 因此根据 传感器在空间直角坐标系各个方向上测得的加速度值, 可以确定一个空间设定向量, 该空 间设定向量可以为空间向量中的任一向量, 本实施例对此不作具体限定。通过对传感器在 一定时间段内检测到的空间直角坐标系各个方向上的加速度值的统计后,还可以得到该时 间段内的该空间设定向量上的加速度变化。  In addition, since the acceleration values measured by the sensors in all directions of the space rectangular coordinate system are vectors, a spatial setting vector can be determined according to the acceleration values measured by the sensors in various directions of the spatial rectangular coordinate system. The vector may be any vector in the space vector, which is not specifically limited in this embodiment. By counting the acceleration values of the spatial rectangular coordinate system detected by the sensor in a certain period of time, the acceleration variation on the spatial setting vector in the time period can also be obtained.
在步骤 203中,根据手机当前所处状态及空间设定向量上的加速度的变化判断加速度 的变化是否符合双击事件的模式特征, 如果加速度的变化符合双击事件的模式特征, 则执 行步骤 204, 如果加速度的变化不符合双击事件的模式特征, 则结束流程。  In step 203, it is determined whether the change of the acceleration conforms to the mode feature of the double-click event according to the current state of the mobile phone and the change of the acceleration on the space setting vector. If the change of the acceleration conforms to the mode feature of the double-click event, step 204 is performed. If the change in acceleration does not match the pattern characteristics of the double-click event, the process ends.
针对该步骤,根据手机当前所处状态及空间设定向量上的加速度的变化判断加速度的 变化是否符合双击事件的模式特征的具体判断方式可以采用但不限于以下两种方式。  For this step, the specific judgment manner of determining whether the change of the acceleration conforms to the mode feature of the double-click event according to the current state of the mobile phone and the change of the acceleration on the space setting vector may be adopted but not limited to the following two modes.
第一种方式: 如果手机当前所处状态为平放状态, 则判断空间设定向量上的加速度的 变化是否为出现第一数值范围内的两次峰值,且两次峰值的间隔时间是否小于第一预设时 间。  The first way: If the current state of the mobile phone is in a flat state, it is determined whether the change of the acceleration on the spatial setting vector is the two peaks in the first numerical range, and whether the interval between the two peaks is less than the first A preset time.
针对第一种方式,如果空间设定向量上的加速度的变化为出现第一数值范围内的两次 峰值, 且两次峰值的间隔时间小于第一预设时间, 则判断加速度的变化符合双击事件的模 式特征; 如果空间设定向量上的加速度的变化为未出现第一数值范围内的两次峰值, 或者 虽然空间设定向量上的加速度的变化为出现了第一数值范围内的两次峰值,但是两次峰值 的间隔时间不小于第一预设时间, 则判断加速度的变化不符合双击事件的模式特征。  For the first mode, if the change of the acceleration on the space setting vector is the occurrence of two peaks in the first numerical range, and the interval between the two peaks is less than the first preset time, it is determined that the change of the acceleration conforms to the double-click event. Mode characteristic; if the acceleration of the space setting vector changes to two peaks within the first value range, or although the acceleration of the space setting vector changes to two peaks within the first value range However, if the interval between the two peaks is not less than the first preset time, it is judged that the change in the acceleration does not conform to the mode feature of the double-click event.
另外,本实施例不对判断空间设定向量上的加速度的变化是否为出现第一数值范围内 的两次峰值, 且两次峰值的间隔时间小于第一预设时间的具体判定方法进行限定。 例如, 根据空间设定向量上的加速度的变化曲线,判断该曲线是否为出现第一数值范围内的两次 峰值, 且两次峰值的间隔时间是否小于第一预设时间。 例如, 第一数值范围可以为 l m/s2 (米 /平方秒) -2m/s2, 第一预设时间可以为小于 200ms (毫秒) 的任一值。 当然, 第一数 值范围及第一预设时间还可以为其它数值,本实施例不对第一数值范围及第一预设时间的 具体大小进行限定。 In addition, in this embodiment, the specific determination method for determining whether the change of the acceleration on the spatial setting vector is the two peaks in the first numerical range and the interval between the two peaks is less than the first preset time is not limited. For example, according to the curve of the acceleration on the space setting vector, it is determined whether the curve is twice within the first numerical range Peak, and whether the interval between the two peaks is less than the first preset time. For example, the first value range may be lm/s2 (meters per square second) -2 m/s2, and the first preset time may be any value less than 200 ms (milliseconds). Certainly, the first numerical range and the first preset time may also be other values. In this embodiment, the specific value of the first numerical range and the first preset time is not limited.
第二种方式: 如果终端当前所处状态为手持状态, 则判断空间设定向量上的加速度的 变化是否为出现第二数值范围内的两次峰值,且两次峰值的间隔时间是否小于第二预设时 间。  The second mode: if the current state of the terminal is the handheld state, it is determined whether the change of the acceleration on the spatial setting vector is the two peaks in the second numerical range, and whether the interval between the two peaks is less than the second Preset time.
针对第二种方式,如果空间设定向量上的加速度的变化为出现第二数值范围内的两次 峰值, 且两次峰值的间隔时间小于第二预设时间, 则判断加速度的变化符合双击事件的模 式特征; 如果空间设定向量上的加速度的变化为未出现第二数值范围内的两次峰值, 或者 虽然空间设定向量上的加速度的变化出现第二数值范围内的两次峰值,但是两次峰值的间 隔时间不小于第二预设时间, 则判断加速度的变化不符合双击事件的模式特征。  For the second mode, if the change of the acceleration on the space setting vector is the occurrence of two peaks in the second numerical range, and the interval between the two peaks is less than the second preset time, it is determined that the change of the acceleration conforms to the double-click event. Mode characteristic; if the change in acceleration on the space setting vector is such that two peaks in the second value range do not occur, or although the change in acceleration in the space setting vector occurs in two peaks in the second value range, If the interval between the two peaks is not less than the second preset time, it is determined that the change in the acceleration does not conform to the mode feature of the double-click event.
另外,本实施例不对判断空间设定向量上的加速度的变化是否为出现第二数值范围内 的两次峰值, 且两次峰值的间隔时间是否小于第二预设时间的具体判定方法进行限定。例 如, 根据空间设定向量上的加速度的变化曲线, 判断该曲线是否为出现第二数值范围内的 两次峰值,且两次峰值的间隔时间小于第二预设时间。例如,第二数值范围为 2m/s2-3 m/s2, 第二预设时间为 300mS-500ms之间的任一值。当然,第二数值范围及第二预设时间还可以 为其它数值, 本实施例不对第二数值范围及第二预设时间的具体大小进行限定。 In addition, the present embodiment does not define whether the change of the acceleration on the spatial setting vector is the occurrence of two peaks in the second numerical range, and whether the interval time of the two peaks is less than the second predetermined time. For example, according to the curve of the acceleration on the space setting vector, it is determined whether the curve is the two peaks in the second numerical range, and the interval between the two peaks is less than the second preset time. For example, the second value range is 2 m/s 2-3 m/s 2 and the second preset time is any value between 300 m S and 500 ms. Certainly, the second value range and the second preset time may also be other values. This embodiment does not limit the specific size of the second value range and the second preset time.
需要说明的是, 双击事件的模式特征除上述出现第一数值范围内的两次峰值, 且两次 峰值的间隔时间小于第一预设时间, 或者出现第二数值范围内的两次峰值, 且两次峰值的 间隔时间小于第二预设时间之外, 还可以为其它特征, 本实施例不对双击事件的模式特征 进行具体限定。  It should be noted that the mode feature of the double-click event has two peaks in the first value range except the above, and the interval between the two peaks is less than the first preset time, or two peaks in the second value range appear, and The interval between the two peaks is smaller than the second preset time, and may be other features. The mode feature of the double-click event is not specifically limited in this embodiment.
在步骤 204中, 对多媒体文件进行播放控制。  In step 204, playback control is performed on the multimedia file.
针对该步骤, 确定多媒体文件所处状态, 并根据多媒体文件所处状态进行播放控制。 如果多媒体文件处于播放状态, 则暂停播放多媒体文件。 或者, 如果多媒体文件处于暂停 状态, 则播放多媒体文件。  For this step, the state of the multimedia file is determined, and the playback control is performed according to the state of the multimedia file. If the multimedia file is in the playback state, the multimedia file is paused. Or, if the multimedia file is in the paused state, the multimedia file is played.
除此之外, 多媒体文件所处状态还可以为其它状态, 本实施例不对多媒体文件所处具 体状态进行限定。 另外, 当多媒体文件处于除播放状态和暂停状态之外的其它状态时, 根 据多媒体文件处于的具体状态执行其它播放控制操作,本实施例不对播放控制的具体种类 进行限定, 本实施例也不对多媒体状态与播放控制的具体对应关系进行限定。  In addition, the state in which the multimedia file is located may be other states. This embodiment does not limit the specific state of the multimedia file. In addition, when the multimedia file is in a state other than the playing state and the suspended state, other playback control operations are performed according to the specific state in which the multimedia file is located. This embodiment does not limit the specific type of the playback control, and the embodiment does not apply to the multimedia. The specific correspondence between the status and the playback control is limited.
此外, 本实施例不对多媒体文件所处状态的具体判断规则进行限定, 包括但不限于: 由于播放控制器的自身会对当前播放的多媒体文件所处状态进行记录,所以根据播放控制 器的自身会对当前播放的多媒体文件所处状态的记录确定多媒体文件所处状态。  In addition, this embodiment does not limit the specific determination rule of the state in which the multimedia file is located, including but not limited to: Since the playback controller itself records the state of the currently played multimedia file, according to the playback controller itself A record of the state of the currently playing multimedia file determines the state of the multimedia file.
需要说明的是, 本实施例仅以播放多媒体的终端为手机为例, 对本实施例提供的多媒 体文件的播放控制方法进行举例说明。 具体实施时, 播放多媒体的终端除手机之外, 还可 以为平板电脑,或者其它设备,本实施例不对播放多媒体的终端的具体产品形态进行限定。 除此之外, 播放多媒体的终端使用的操作系统除安卓系统之外, 还可以为塞班系统, 或者 其它系统, 本实施例不对播放多媒体的终端使用的操作系统进行限定。 It should be noted that, in this embodiment, the playback control method of the multimedia file provided in this embodiment is exemplified by taking the mobile terminal as the mobile phone as an example. In specific implementation, the terminal that plays multimedia can also be used in addition to the mobile phone. In the case of a tablet computer or other device, this embodiment does not limit the specific product form of the terminal that plays multimedia. In addition, the operating system used by the terminal playing the multimedia may be a Saipan system or other system in addition to the Android system. This embodiment does not limit the operating system used by the terminal playing the multimedia.
本实施例提供的方法, 由于用户执行的双击操作可以通过终端的加速度体现, 在用户 进行双击操作后, 通过检测终端的加速度, 判断加速度的变化是否符合双击事件的模式特 征, 并根据判断结果对多媒体文件进行播放控制, 可以实现根据双击操作对多媒体文件进 行播放控制, 进而在简化用户操作的前提下, 提高多媒体文件的播放控制速度, 减少误触 其它功能按键的机会, 从而增加正确操作概率。 实施例三  In the method provided by the embodiment, the double-click operation performed by the user may be reflected by the acceleration of the terminal. After the user performs the double-click operation, the acceleration of the terminal is detected to determine whether the change of the acceleration conforms to the mode feature of the double-click event, and according to the judgment result. The multimedia file is played and controlled, and the multimedia file can be played and controlled according to the double-click operation, thereby improving the playback control speed of the multimedia file under the premise of simplifying the user operation, and reducing the chance of accidentally touching other function keys, thereby increasing the correct operation probability. Embodiment 3
本实施例提供了一种多媒体文件的播放控制装置,该装置用于执行上述实施例一或实 施例二所提供的多媒体文件的播放控制方法。 参见图 3, 该终端包括:  The present embodiment provides a playback control device for a multimedia file, which is used to perform the playback control method of the multimedia file provided in the first embodiment or the second embodiment. Referring to Figure 3, the terminal includes:
检测模块 301, 用于对终端进行加速度检测;  The detecting module 301 is configured to perform acceleration detection on the terminal;
判断模块 302, 用于判断加速度的变化是否符合双击事件的模式特征;  The determining module 302 is configured to determine whether the change of the acceleration conforms to the mode feature of the double-click event;
控制模块 303, 用于当加速度的变化符合双击事件的模式特征时, 对多媒体文件进行 播放控制。  The control module 303 is configured to perform playback control on the multimedia file when the change of the acceleration conforms to the mode feature of the double-click event.
作为一种可选的实施方式, 检测模块 301, 用于获取播放多媒体文件的终端中的传感 器在空间直角坐标系各个方向上测得的加速度值。  As an optional implementation manner, the detecting module 301 is configured to acquire an acceleration value measured by the sensor in the terminal playing the multimedia file in each direction of the space rectangular coordinate system.
参见图 4, 判断模块 302, 包括:  Referring to FIG. 4, the determining module 302 includes:
第一确定子模块 3021,用于根据传感器在空间直角坐标系各个方向上测得的加速度值 确定终端当前所处状态;  a first determining sub-module 3021, configured to determine, according to an acceleration value measured by the sensor in each direction of the space rectangular coordinate system, a current state of the terminal;
第二确定子模块 3022,用于根据传感器在空间直角坐标系各个方向上测得的加速度值 确定空间设定向量上的加速度的变化;  a second determining sub-module 3022, configured to determine a change in acceleration on the spatial setting vector according to the acceleration value measured by the sensor in each direction of the spatial rectangular coordinate system;
判断子模块 3023,用于根据终端当前所处状态及传感器在空间设定向量上的加速度的 变化判断加速度的变化是否符合双击事件的模式特征。  The determining sub-module 3023 is configured to determine, according to the current state of the terminal and the change of the acceleration of the sensor on the space setting vector, whether the change of the acceleration conforms to the mode feature of the double-click event.
参加图 5, 第一确定子模块 3021, 包括:  Referring to FIG. 5, the first determining sub-module 3021 includes:
第一确定单元 30211, 用于根据传感器在空间直角坐标系各个方向上测得的加速度值 确定空间设定向量上的加速度平均值;  The first determining unit 30211 is configured to determine an average value of the acceleration on the spatial setting vector according to the acceleration value measured by the sensor in each direction of the spatial rectangular coordinate system;
第二确定单元 30212, 用于当加速度平均值小于第一阈值时, 确定终端当前所处状态 为平放状态; 当加速度平均值不小于第一阈值时, 确定终端当前所处状态为手持状态。  The second determining unit 30212 is configured to determine that the current state of the terminal is a flat state when the average value of the acceleration is less than the first threshold; and determine that the current state of the terminal is the handheld state when the average value of the acceleration is not less than the first threshold.
作为一种可选的实施方式,判断子模块 3023,用于当终端当前所处状态为平放状态时, 判断空间设定向量上的加速度的变化是否为出现第一数值范围内的两次峰值,且两次峰值 的间隔时间是否小于第一预设时间; 当空间设定向量上的加速度的变化为出现第一数值范 围内的两次峰值, 且两次峰值的间隔时间小于第一预设时间时, 判断加速度的变化符合双 击事件的模式特征。 作为一种可选的实施方式,判断子模块 3023,用于当终端当前所处状态为手持状态时, 判断空间设定向量上的加速度的变化是否为出现第二数值范围内的两次峰值,且两次峰值 的间隔时间是否小于第二预设时间; 当空间设定向量上的加速度的变化为出现第二数值范 围内的两次峰值, 且两次峰值的间隔时间小于第二预设时间时, 判断加速度的变化符合双 击事件的模式特征。 As an optional implementation manner, the determining sub-module 3023 is configured to determine, when the current state of the terminal is in a flat state, whether the change in the acceleration on the spatial setting vector is the two peaks in the first numerical range. And whether the interval between the two peaks is less than the first preset time; when the change in the acceleration on the space setting vector is the two peaks in the first numerical range, and the interval between the two peaks is less than the first preset At time, it is judged that the change in acceleration conforms to the mode feature of the double-click event. As an optional implementation manner, the determining sub-module 3023 is configured to determine, when the current state of the terminal is in the handheld state, whether the change in the acceleration on the spatial setting vector is the occurrence of two peaks in the second numerical range. And whether the interval between the two peaks is less than the second preset time; when the change in the acceleration on the space setting vector is the two peaks in the second value range, and the interval between the two peaks is less than the second preset time At the time, it is judged that the change in acceleration conforms to the mode characteristic of the double-click event.
本实施例提供的终端, 由于用户执行的双击操作可以通过终端的加速度体现, 在用户 进行双击操作后, 通过检测终端的加速度, 判断加速度的变化是否符合双击事件的模式特 征, 并根据判断结果对多媒体文件进行播放控制, 可以实现根据双击操作对多媒体文件进 行播放控制, 进而在简化用户操作的前提下, 提高多媒体文件的播放控制速度, 减少误触 其它功能按键的机会, 从而增加正确操作概率。 需要说明的是:上述实施例提供的多媒体文件的播放控制终端在实现多媒体文件的播 放控制时, 仅以上述各功能模块的划分进行举例说明, 实际应用中, 可以根据需要而将上 述功能分配由不同的功能模块完成, 即将终端的内部结构划分成不同的功能模块, 以完成 以上描述的全部或者部分功能。另外, 上述实施例提供的多媒体文件的播放控制终端与多 媒体文件的播放控制方法实施例属于同一构思, 其具体实现过程详见方法实施例, 这里不 再赘述。  In the terminal provided by the embodiment, the double-click operation performed by the user may be reflected by the acceleration of the terminal. After the user performs the double-click operation, the acceleration of the terminal is detected to determine whether the change of the acceleration conforms to the mode feature of the double-click event, and according to the judgment result. The multimedia file is played and controlled, and the multimedia file can be played and controlled according to the double-click operation, thereby improving the playback control speed of the multimedia file under the premise of simplifying the user operation, and reducing the chance of accidentally touching other function keys, thereby increasing the correct operation probability. It should be noted that, when the playback control terminal of the multimedia file provided by the foregoing embodiment implements the playback control of the multimedia file, only the division of the above functional modules is illustrated. In practical applications, the foregoing function may be allocated according to requirements. Different functional modules are completed, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the playback control terminal of the multimedia file provided by the foregoing embodiment is the same as the embodiment of the playback control method of the multimedia file. For the specific implementation process, refer to the method embodiment, which is not described here.
上述本公开实施例序号仅仅为了描述, 不代表实施例的优劣。  The above-mentioned serial numbers of the embodiments of the present disclosure are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完 成, 也可以通过程序来指令相关的硬件完成, 所述的程序可以存储于一种计算机可读存储 介质中, 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。  A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
以上所述仅为本公开的较佳实施例, 并不用以限制本公开, 凡在本公开的精神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本公开的保护范围之内。  The above description is only the preferred embodiment of the present disclosure, and is not intended to limit the disclosure, and any modifications, equivalents, improvements, etc., made within the spirit and principles of the present disclosure should be included in the protection of the present disclosure. Within the scope.

Claims

权利要求 Rights request
1、 一种多媒体文件的播放控制方法, 其特征在于, 所述方法包括: 1. A method for controlling playback of multimedia files, characterized in that the method includes:
对播放多媒体文件的终端进行加速度检测; Perform acceleration detection on terminals that play multimedia files;
判断所述加速度的变化是否符合双击事件的模式特征; Determine whether the change in acceleration conforms to the pattern characteristics of a double-click event;
如果所述加速度的变化符合双击事件的模式特征, 对所述多媒体文件进行播放控制。 If the change in acceleration meets the pattern characteristics of a double-click event, playback of the multimedia file is controlled.
2、 根据权利要求 1所述的方法, 其特征在于, 所述对播放多媒体文件的终端进行加 速度检测, 包括: 2. The method according to claim 1, characterized in that the acceleration detection of a terminal playing multimedia files includes:
获取所述播放多媒体文件的终端中的传感器在空间直角坐标系各个方向上测得的加 速度值; Obtain the acceleration values measured by the sensor in the terminal that plays the multimedia file in each direction of the spatial rectangular coordinate system;
所述判断所述加速度的变化是否符合双击事件的模式特征, 包括: Determining whether the change in acceleration conforms to the pattern characteristics of a double-click event includes:
根据所述传感器在空间直角坐标系各个方向上测得的加速度值确定空间设定向量上 的加速度的变化及所述终端当前所处状态; Determine the change in acceleration on the spatial setting vector and the current state of the terminal according to the acceleration values measured by the sensor in each direction of the spatial rectangular coordinate system;
根据所述空间设定向量上的加速度的变化及所述终端当前所处状态判断所述加速度 的变化是否符合双击事件的模式特征。 Determine whether the change in acceleration conforms to the pattern characteristics of a double-click event according to the change in acceleration on the spatial setting vector and the current state of the terminal.
3、 根据权利要求 2所述的方法, 其特征在于, 所述根据所述传感器在空间直角坐标 系中各个方向上测得的加速度值确定所述终端当前所处状态, 包括: 3. The method according to claim 2, wherein determining the current state of the terminal based on the acceleration values measured by the sensor in each direction in the space rectangular coordinate system includes:
根据所述传感器在空间直角坐标系各个方向上测得的加速度值确定空间设定向量上 的加速度平均值; Determine the average acceleration value on the spatial setting vector according to the acceleration values measured by the sensor in each direction of the spatial rectangular coordinate system;
如果所述加速度平均值小于第一阈值, 确定所述终端当前所处状态为平放状态; 如果所述加速度平均值不小于所述第一阈值,则确定所述终端当前所处状态为手持状 态。 If the average acceleration is less than the first threshold, it is determined that the current state of the terminal is a flat state; if the average acceleration is not less than the first threshold, it is determined that the current state of the terminal is a handheld state .
4、 根据权利要求 2所述的方法, 其特征在于, 所述根据所述空间设定向量上的加速 度的变化及所述终端当前所处状态判断所述加速度的变化是否符合双击事件的模式特征, 包括: 4. The method according to claim 2, characterized in that: judging whether the change in acceleration conforms to the pattern characteristics of a double-click event based on the change in acceleration on the spatial setting vector and the current state of the terminal. , include:
如果所述终端当前所处状态为平放状态,则判断所述空间设定向量上的加速度的变化 是否为出现第一数值范围内的两次峰值, 且两次峰值的间隔时间是否小于第一预设时间; 如果所述空间设定向量上的加速度的变化为出现所述第一数值范围内的两次峰值,且 两次峰值的间隔时间小于所述第一预设时间,则判断所述加速度的变化符合双击事件的模 式特征。 If the current state of the terminal is a flat state, it is determined whether the change in acceleration on the spatial setting vector occurs two peaks within the first numerical range, and whether the interval between the two peaks is less than the first value. Preset time; If the change in acceleration on the spatial setting vector occurs two peaks within the first numerical range, and the interval between the two peaks is less than the first preset time, then determine that the The changes in acceleration are consistent with the pattern characteristics of double-click events.
5、 根据权利要求 2所述的方法, 其特征在于, 所述根据所述空间设定向量上的加速 度的变化及终端当前所处状态判断所述加速度的变化是否符合双击事件的模式特征, 包 括: 5. The method according to claim 2, characterized in that, judging whether the change in acceleration conforms to the pattern characteristics of a double-click event based on the change in acceleration on the spatial setting vector and the current state of the terminal, includes: :
如果所述终端当前所处状态为手持状态,则判断所述空间设定向量上的加速度的变化 是否为出现第二数值范围内的两次峰值, 且两次峰值的间隔时间是否小于第二预设时间; 如果所述空间设定向量上的加速度的变化为出现所述第二数值范围内的两次峰值,且 两次峰值的间隔时间小于所述第二预设时间,则判断所述加速度的变化符合双击事件的模 式特征。 If the current state of the terminal is a handheld state, it is determined whether the change in acceleration on the spatial setting vector occurs two peaks within the second value range, and whether the interval between the two peaks is less than the second predetermined value. Assume time; If the change in acceleration on the space setting vector occurs two peaks within the second value range, and If the interval between two peaks is less than the second preset time, it is determined that the change in acceleration conforms to the pattern characteristics of a double-click event.
6、 一种多媒体文件的播放控制装置, 其特征在于, 所述装置包括: 6. A multimedia file playback control device, characterized in that the device includes:
检测模块, 用于对播放多媒体文件的终端进行加速度检测; Detection module, used to detect acceleration of terminals that play multimedia files;
判断模块, 用于判断所述加速度的变化是否符合双击事件的模式特征; A judgment module, used to judge whether the change in acceleration conforms to the pattern characteristics of a double-click event;
控制模块,用于当所述加速度的变化符合双击事件的模式特征时,对所述多媒体文件 进行播放控制。 A control module configured to control the playback of the multimedia file when the change in acceleration conforms to the pattern characteristics of a double-click event.
7、 根据权利要求 6所述的装置, 其特征在于, 所述检测模块, 用于获取所述播放多 媒体文件的终端中的传感器在空间直角坐标系各个方向上测得的加速度值; 7. The device according to claim 6, characterized in that the detection module is used to obtain acceleration values measured by the sensor in the terminal that plays multimedia files in various directions of the spatial rectangular coordinate system;
所述判断模块, 包括: The judgment module includes:
第一确定子模块,用于根据所述传感器在空间直角坐标系各个方向上测得的加速度值 确定所述终端当前所处状态; The first determination sub-module is used to determine the current state of the terminal based on the acceleration values measured by the sensor in various directions of the spatial rectangular coordinate system;
第二确定子模块,用于根据所述传感器在空间直角坐标系各个方向上测得的加速度值 确定空间设定向量上的加速度的变化; The second determination sub-module is used to determine the change in acceleration on the spatial setting vector based on the acceleration values measured by the sensor in each direction of the spatial rectangular coordinate system;
判断子模块,用于根据所述终端当前所处状态及所述空间设定向量上的加速度的变化 判断所述加速度的变化是否符合双击事件的模式特征。 A judgment submodule is used to judge whether the change in acceleration conforms to the pattern characteristics of a double-click event based on the current state of the terminal and the change in acceleration on the spatial setting vector.
8、 根据权利要求 7所述的装置, 其特征在于, 所述第一确定子模块, 包括: 第一确定单元,用于根据所述传感器在空间直角坐标系各个方向上测得的加速度值确 定空间设定向量上的加速度平均值; 8. The device according to claim 7, characterized in that, the first determination sub-module includes: a first determination unit, configured to determine based on the acceleration values measured by the sensor in each direction of the spatial rectangular coordinate system. The average acceleration value on the spatial setting vector;
第二确定单元,用于当所述加速度平均值小于第一阈值时,确定所述终端当前所处状 态为平放状态; 当所述加速度平均值不小于所述第一阈值时,确定所述终端当前所处状态 为手持状态。 A second determination unit configured to determine that the current state of the terminal is a flat state when the average acceleration value is less than a first threshold; and determine that the terminal is in a flat state when the average acceleration value is not less than the first threshold value. The terminal is currently in a handheld state.
9、 根据权利要求 7所述的装置, 其特征在于, 所述判断子模块, 用于当所述终端当 前所处状态为平放状态时,判断所述空间设定向量上的加速度的变化是否为出现第一数值 范围内的两次峰值,且两次峰值的间隔时间是否小于第一预设时间; 当所述空间设定向量 上的加速度的变化为出现所述第一数值范围内的两次峰值,且两次峰值的间隔时间小于所 述第一预设时间时, 判断所述加速度的变化符合双击事件的模式特征。 9. The device according to claim 7, wherein the determination sub-module is used to determine whether the acceleration on the space setting vector changes when the terminal is currently in a flat state. When two peaks within the first numerical range occur, and whether the interval between the two peaks is less than the first preset time; when the change in acceleration on the space setting vector occurs, two peaks within the first numerical range occur. When the second peak value is reached and the interval between the two peak values is less than the first preset time, it is determined that the change in acceleration conforms to the pattern characteristics of a double-click event.
10、 根据权利要求 7所述的装置, 其特征在于, 所述判断子模块, 用于当所述终端当 前所处状态为手持状态时,判断所述空间设定向量上的加速度的变化是否为出现第二数值 范围内的两次峰值,且两次峰值的间隔时间是否小于第二预设时间; 当所述传感器在空间 设定向量上的加速度的变化为出现所述第二数值范围内的两次峰值,且两次峰值的间隔时 间小于所述第二预设时间时, 判断所述加速度的变化符合双击事件的模式特征。 10. The device according to claim 7, characterized in that: the determination sub-module is used to determine whether the change in acceleration on the space setting vector is when the current state of the terminal is a handheld state. Two peaks occur within the second numerical range, and whether the interval between the two peaks is less than the second preset time; When the change in acceleration of the sensor on the spatial setting vector occurs within the second numerical range When there are two peaks and the interval between the two peaks is less than the second preset time, it is determined that the change in acceleration conforms to the pattern characteristics of a double-click event.
PCT/CN2013/091073 2013-04-22 2013-12-31 Multi-media file play control method and apparatus WO2014173170A1 (en)

Applications Claiming Priority (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
CN201310141612.8 2013-04-22

Publications (1)

Publication Number Publication Date
WO2014173170A1 true WO2014173170A1 (en) 2014-10-30

Family

ID=48963608

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/091073 WO2014173170A1 (en) 2013-04-22 2013-12-31 Multi-media file play control method and apparatus

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
CN111836108A (en) * 2020-07-24 2020-10-27 广州酷狗计算机科技有限公司 Media resource playing method, device, terminal and storage medium

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
CN105677807A (en) * 2015-12-31 2016-06-15 魅族科技(中国)有限公司 File control method and terminal
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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728256A (en) * 2004-07-27 2006-02-01 乐金电子(惠州)有限公司 Method of controlling playing operation according to external devices
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
CN103019796A (en) * 2012-12-28 2013-04-03 深圳市汇顶科技股份有限公司 Wakening method and system for touch terminal and touch terminal
CN103259929A (en) * 2013-04-22 2013-08-21 北京小米科技有限责任公司 Method and device for controlling playing of multi-media file

Family Cites Families (3)

* 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
CN101533649A (en) * 2008-03-10 2009-09-16 创新科技有限公司 Method for simulating key-stoke operation by using action variation and portable media player
CN102420905A (en) * 2011-11-30 2012-04-18 深圳市五巨科技有限公司 Method and device for controlling mobile phone to play music by using gravity sensor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728256A (en) * 2004-07-27 2006-02-01 乐金电子(惠州)有限公司 Method of controlling playing operation according to external devices
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
CN103019796A (en) * 2012-12-28 2013-04-03 深圳市汇顶科技股份有限公司 Wakening method and system for touch terminal and touch terminal
CN103259929A (en) * 2013-04-22 2013-08-21 北京小米科技有限责任公司 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
CN111836108A (en) * 2020-07-24 2020-10-27 广州酷狗计算机科技有限公司 Media resource playing method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN103259929B (en) 2015-02-04
CN103259929A (en) 2013-08-21

Similar Documents

Publication Publication Date Title
WO2014173170A1 (en) Multi-media file play control method and apparatus
EP3401779B1 (en) Method and apparatus for invoking function in application
CN104598111B (en) Switch the method and device of display pattern
US10831342B2 (en) Method used by mobile terminal to return to home screen, mobile terminal and storage medium
US20130347101A1 (en) Terminal Authentication Method and Device
KR101488193B1 (en) Method And Apparatus for Executing Command Based on Context Awareness
US9965086B2 (en) Method for enabling function module of terminal, and terminal device
TW201915702A (en) Managing and mapping multi-sided touch
US20130222338A1 (en) Apparatus and method for processing a plurality of types of touch inputs
WO2014131277A1 (en) Method, apparatus and terminal for controlling audio play
US20150109221A1 (en) Method, device, and electronic terminal for unlocking
KR20140125078A (en) Electronic device and method for unlocking in the electronic device
WO2014044185A1 (en) Application control method and device based on mobile terminal and mobile terminal
EP2911038A1 (en) Terminal and method for the control thereof
CN107831987B (en) False touch control method and device for preventing gesture operation
KR101870392B1 (en) Method for processing touch signal and terminal device
WO2015131590A1 (en) Method for controlling blank screen gesture processing and terminal
WO2017161816A1 (en) Terminal unlock method and terminal
WO2015078300A1 (en) Television control method and remote controller for television
CN107967108A (en) The error touch control method and device of anti-gesture operation
CN104267810A (en) Control panel locking method and device
EP3282680B1 (en) Blowing action-based method for operating mobile terminal and mobile terminal
TW201443762A (en) Operation method of multi-touch device
CN105763719B (en) A kind of information processing method and communication equipment
CN109661644A (en) A kind of pressure touch method and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13883135

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13883135

Country of ref document: EP

Kind code of ref document: A1