WO2017088311A1 - 控制音频播放的方法及装置、终端、计算机存储介质 - Google Patents

控制音频播放的方法及装置、终端、计算机存储介质 Download PDF

Info

Publication number
WO2017088311A1
WO2017088311A1 PCT/CN2016/074313 CN2016074313W WO2017088311A1 WO 2017088311 A1 WO2017088311 A1 WO 2017088311A1 CN 2016074313 W CN2016074313 W CN 2016074313W WO 2017088311 A1 WO2017088311 A1 WO 2017088311A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
pressing
value
preset
screen
Prior art date
Application number
PCT/CN2016/074313
Other languages
English (en)
French (fr)
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 WO2017088311A1 publication Critical patent/WO2017088311A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B19/00Driving, starting, stopping record carriers not specifically of filamentary or web form, or of supports therefor; Control thereof; Control of operating function ; Driving both disc and head
    • G11B19/02Control of operating function, e.g. switching from recording to reproducing

Definitions

  • the present invention relates to terminal technologies in the field of communications, and in particular, to a method and apparatus for controlling audio playback, a terminal, and a computer storage medium.
  • the terminal Users usually use the terminal to play audio, such as using mobile phones, tablets and other terminals to play music, audio novels and other audio.
  • the user When playing audio on the terminal, the user usually needs to control the playing of the audio, such as suspending the audio being played by the terminal, adjusting the volume of the audio played by the terminal, and controlling the terminal to play the last audio or the next audio.
  • the method for controlling audio playback in the related art generally includes two ways.
  • the method controls the playing of the audio by clicking a control button on the audio playing control interface; for example, the terminal plays the audio, and the user unlocks the terminal screen when the terminal screen is not unlocked,
  • the terminal does not display the audio playback control interface
  • the user performs a corresponding operation to enter the audio playback control interface, and the user clicks a corresponding control button on the audio playback control interface, such as a pause, fast forward or fast reverse button, thereby controlling audio playback
  • the audio is controlled by wireless or wired headphones; for example, the user connects the wireless or wired headset to the terminal, the terminal plays the audio, and the user presses the corresponding control button on the headset, such as a pause, fast forward or rewind button, thereby controlling Audio playback.
  • the method for controlling audio playback in the related art has the following problems: the control process requires the user to perform more operations, thereby making the operation of the audio playback control cumbersome; and the mode 1 can control the audio playback only when the terminal screen is unlocked, thereby The audio playback cannot be controlled when the terminal screen is not unlocked; although the second mode can control the audio playback when the terminal screen is unlocked or unlocked, the terminal needs to access the corresponding control device.
  • Embodiments of the present invention are directed to a method and apparatus for controlling audio playback, a terminal, and a computer storage medium to control audio playback conveniently and quickly when the terminal screen is unlocked or unlocked.
  • the embodiment of the invention discloses a method for controlling audio playback, the method comprising:
  • the audio playback control operation is performed when the pressing force and the pressing position satisfy the preset condition.
  • the determining whether the pressing force and the pressing position of pressing the screen action of the terminal meet the preset condition comprises:
  • the determining whether the pressing force value and the pressing position coordinate value meet a preset condition comprises:
  • performing an audio playback control operation including:
  • searching for an audio playback control operation associated with the pressing position includes:
  • An audio playback control operation associated with the preset screen area in which the pressed position coordinate value is located is searched from the mapping table.
  • the embodiment of the invention further discloses an apparatus for controlling audio playback, the apparatus comprising:
  • the determining module is configured to determine whether the pressing force and the pressing position of pressing the screen action of the terminal meet the preset condition
  • the execution module is configured to perform an audio playback control operation when the pressing force and the pressing position satisfy a preset condition.
  • the determining module is further configured to: when the terminal screen is in an unlocked state or an unlocked state, acquire a pressing force value and a pressing position coordinate value of pressing the screen action of the terminal; and determining whether the pressing force value and the pressing position coordinate value are Meet the preset conditions.
  • the determining module is further configured to determine whether the pressing force value is less than a preset strength value; and when the pressing force value is not less than a preset strength value, determining whether the pressing position coordinate value is in any one of the presets
  • the screen area coordinate range value is set; when the pressed position coordinate value is within any one of the preset screen area coordinate range values, it is confirmed that the pressing force value and the pressed position coordinate value satisfy a preset condition.
  • the execution module is further configured to: when the pressing force and the pressing position meet the preset condition, search for an audio play control operation associated with the pressed position; and find out the associated with the pressed position When the audio playback control operation is performed, the found audio playback control operation is performed.
  • the execution module is further configured to read the preset screen area and the audio play when the pressing force value is not less than the preset velocity value, and the pressing position coordinate value is within any one of the preset screen area coordinate range values.
  • a mapping table of control operations; and an audio playback control operation associated with the preset screen area in which the pressed position coordinate value is located is searched from the mapping table.
  • An embodiment of the present invention further provides a terminal, where the terminal is provided with the foregoing apparatus for controlling audio playback.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores executable instructions, and the executable instructions are used to execute the above method for controlling audio playback.
  • the method and device for controlling audio playing, the terminal, and the computer storage medium provided by the embodiment of the present invention determine whether the pressing force and the pressing position of the pressing terminal screen action meet the preset condition; when the pressing force and the pressing position satisfy the preset condition , perform audio playback control operations. In this way, the audio playback can be conveniently and quickly controlled when the terminal screen is unlocked or unlocked, and the corresponding control device is not required to be connected to the terminal, thereby improving the user experience.
  • FIG. 1 is a schematic flowchart of a method for controlling audio playback according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a location of a preset screen area according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a screen interface of a terminal according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of an apparatus for controlling audio playback according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a device for controlling audio playback according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart diagram of a specific embodiment of a method for controlling audio playback according to the present invention.
  • the terminal determines the pressing force and the pressing position of pressing the screen action of the terminal. Whether the preset condition is satisfied; when the pressing force and the pressing position satisfy the preset condition, the terminal performs an audio playback control operation.
  • FIG. 1 is a schematic flowchart of a method for controlling audio playback according to an embodiment of the present invention. As shown in FIG. 1 , the method includes:
  • Step 101 Determine whether the pressing force and the pressing position of pressing the screen action of the terminal meet the preset condition.
  • the terminal determines whether the pressing force and the pressing position of the pressing action performed on the terminal screen meet the preset condition. That is, pressing the terminal screen action is a pressing action performed on the terminal screen.
  • the step may include: when the terminal screen is in the unlocked state or the unlocked state, the terminal obtains the pressing force value and the pressing position coordinate value of pressing the terminal screen action; the terminal determines the pressing force value and the pressing position coordinate of pressing the terminal screen action Whether the value meets the preset condition.
  • the terminal when the terminal screen is in an unlocked state or an unlocked state, the terminal obtains a pressing force value and a pressing position coordinate value of pressing the terminal screen action, which may include: when the terminal screen is in an unlocked state or an unlocked state.
  • the terminal detects whether there is a pressing terminal screen action; when the pressing terminal screen action occurs, the terminal starts to record the pressure value of pressing the terminal screen action, and records the position coordinate value of pressing the terminal screen action; when the pressing terminal screen action ends, The terminal stops recording the pressure value of pressing the screen action of the terminal; the terminal calculates the pressing force value of pressing the screen action of the terminal according to the recorded pressure value.
  • the process of acquiring the pressing force value and the pressing position coordinate value may be: when the terminal screen is in the unlocked state or the unlocked state, the terminal collects the pressure value of the terminal screen; the pressure value of the terminal screen changes from zero to non-zero.
  • the terminal confirms that the pressing terminal screen action occurs, otherwise, the terminal confirms that the pressing of the terminal screen action does not occur; when it is confirmed that the pressing terminal screen action occurs, the terminal starts to record the pressure value of the collected terminal screen;
  • the terminal reads and records the position coordinate value of the terminal screen whose pressure value changes from zero to non-zero; when the pressure value of the terminal screen changes from non-zero to zero, the terminal stops recording the terminal screen of the collected terminal.
  • the pressure value the terminal calculates the average value of the recorded pressure value, and uses the average value as the pressing force value of pressing the terminal screen action, or the terminal determines the maximum pressure value from the recorded pressure value, and the maximum value The pressure value is used as the pressing force value for pressing the screen action of the terminal.
  • the terminal collects the pressure value of the terminal screen when the terminal screen is in the unlocked state or the unlocked state, and may include: when the terminal screen is in the unlocked state or the unlocked state, the pressure sensor of the terminal measures the pressure of the terminal screen. Obtaining a pressure value of the terminal screen; when the terminal screen is in an unlocked state or an unlocked state, the processor of the terminal reads the pressure value of the terminal screen obtained by the pressure sensor measurement. For example, after the terminal is powered on, the pressure sensor of the terminal is always in the running state, so that the pressure sensor of the terminal can measure the pressure value of the terminal screen regardless of whether the terminal screen is in the unlocked state or the unlocked state.
  • the terminal determining whether the pressing force value and the pressing position coordinate value of pressing the screen action of the terminal meet the preset condition may include: determining, by the terminal, whether the pressing force value of pressing the screen action of the terminal is less than a preset strength value; When the velocity value is less than the preset velocity value, the terminal confirms that the pressing force value and the pressing position coordinate value of pressing the terminal screen action do not satisfy the preset condition; when the pressing force value is not less than the preset velocity value, the terminal determines to press the pressing of the terminal screen action Whether the position coordinate value is within any preset screen area coordinate range value; when the pressed position coordinate value is not within any one of the preset screen area coordinate range values, the terminal confirms the pressing force value and the pressing position coordinate value of pressing the terminal screen action The preset condition is not satisfied.
  • the terminal confirms that the pressing force value and the pressing position coordinate value of pressing the terminal screen action satisfy the preset condition. That is, a preset velocity value, one or more preset screen region coordinate range values may be set, the pressing force value of the action of the terminal screen is not less than the preset velocity value, and the pressing position coordinate value of the terminal screen action is at any preset.
  • the terminal confirms the pressing force of pressing the terminal screen action The value and the pressed position coordinate value satisfy the preset condition.
  • the terminal determines whether the pressing force value and the pressing position coordinate value of the pressing terminal screen action meet the preset condition, or may include: determining, by the terminal, whether the pressing force value of pressing the terminal screen action is less than a minimum preset strength value; When the pressing force value is less than the minimum preset velocity value, the terminal confirms that the pressing force value and the pressing position coordinate value of pressing the terminal screen action do not satisfy the preset condition; when the pressing force value is not less than the minimum preset velocity value, the terminal determines to press the terminal.
  • the terminal determines whether the pressing force value corresponds to the preset screen area coordinate range value where the pressing position coordinate value is located
  • the preset velocity values are the same; when the judgment results are the same, End confirmation screen action of pressing the terminal pressing strength value and pressing position coordinate value preset condition is met, otherwise, the terminal confirms the pressing strength value of pressing the terminal screen action and pressed position coordinate value does not satisfy the preset conditions.
  • a plurality of preset velocity values and a plurality of preset screen region coordinate range values may be set, and each preset screen region coordinate range value corresponds to a preset velocity value, and the pressing position coordinate value of the terminal screen action is in any one of the preset values. If the preset velocity value corresponding to the preset screen area coordinate range value where the pressing position coordinate value is located is the same as the preset velocity value corresponding to the preset screen area coordinate range value where the pressing position coordinate value is located, the terminal confirms the pressing force value of pressing the terminal screen action. And the pressing position coordinate value satisfies the preset condition.
  • the preset condition includes a preset velocity value, and a preset screen area coordinate range value.
  • the preset velocity value may be set according to a momentary pressing of the terminal screen action velocity value. If the terminal is placed in the pocket of the clothing worn by the user, or the backpack carried by the user, the terminal is shaken to make the terminal screen touch other objects, and the terminal screen receives the pressing action of the outside, and the pressing action is an accidental pressing.
  • the terminal screen action or, for example, a pressing action performed by the user to the terminal screen in order to pick up the terminal, in order to avoid controlling the playing of the audio according to the pressing action, the pressing The pressing action can also be regarded as an accidental pressing of the screen action of the terminal; the force value of the action of erroneously pressing the screen of the terminal is the value of the moving force of the screen of the terminal.
  • the velocity value of the screen action of the terminal is erroneously pressed, that is, the velocity value of the screen action of the terminal is erroneously pressed, and the preset velocity value is set to be greater than the maximum pressure of the terminal screen.
  • the value of the value but at the same time, in order to avoid the need for the user to spend a lot of effort to control the audio playback, improve the user experience, the preset velocity value needs to be less than a certain value.
  • the force value of the pressing action performed on the terminal screen is less than 10 Newtons, that is, when the velocity value of pressing the screen action of the terminal is less than 10 Newtons, the audio playing can be controlled, and
  • the measured velocity values of the screens of the erroneously pressed terminals are 1 Newton and 2 Newtons respectively.
  • the preset velocity values can be set to values greater than 2 Newtons and less than 10 Newtons, such as 3 Newtons, 4 Newtons, and the like.
  • the preset velocity value may be set by the user.
  • the terminal provides a velocity value setting interface, and the user may input a corresponding value as a preset velocity value in the velocity value setting interface, or the user may provide the provision from the velocity value setting interface.
  • a value is selected as the preset velocity value.
  • the preset velocity value may also be set by the terminal, for example, the terminal stores a default preset velocity value.
  • the preset screen area coordinate range value is a coordinate range value of the preset screen area.
  • the preset screen area may be set by a user, for example, the terminal provides a screen area setting interface for the user to set the number and position of the preset screen area, and the user may manually divide the terminal screen into one or more in the screen area setting interface. Areas, thereby obtaining one or more preset screen areas, as shown in FIG. 2, dividing the terminal screen into five areas, and obtaining five preset screen areas are: A1, A2, A3, A4, and A5.
  • the preset screen area may also be set by the terminal, for example, the terminal provides five preset screen areas as shown in FIG. 2 by default.
  • the preset screen area may be set according to a display position of a control button of a terminal application (Application, APP). If the control button of the terminal APP is usually displayed in the terminal The middle of the screen is not displayed on the upper and lower parts of the terminal screen. In this case, the preset screen area can be set at the upper or lower part of the terminal screen. As shown in FIG. 3, after the terminal screen is unlocked, the activation button of the APP of the terminal, that is, the icon 301 of the APP, is usually displayed in the middle portion 302 of the terminal screen and not displayed on the upper portion 303 and the lower portion 304 of the terminal screen. In this case, the preset screen area can be set at the upper portion 303 or the lower portion 304 of the terminal screen. Thereby, the preset screen area can be prevented from being set at the display position of the terminal APP control button, and when the terminal screen is unlocked, the pressing terminal screen action implemented to control the playing of the audio is controlled to control the terminal APP.
  • Step 102 Perform an audio playback control operation when the pressing force and the pressing position satisfy the preset condition.
  • the step may be that the terminal performs an audio playback control operation terminal when the pressing force and the pressing position of pressing the terminal screen action satisfy the preset condition.
  • the terminal can execute the audio playback control operation terminal. In this way, the audio playback can be conveniently and quickly controlled when the terminal screen is unlocked or unlocked, and the operation is simple, and the terminal does not need to access the corresponding control device, thereby improving the user experience.
  • the step may include: when the pressing force and the pressing position satisfy the preset condition, the terminal searches for an audio play control operation associated with the pressed position; and when the audio play control operation associated with the pressed position is found, the terminal performs the search The audio playback control operation is performed, otherwise, the terminal does not perform the audio playback control operation.
  • the terminal searches for the audio playback control operation associated with the pressed position, and may include: pressing the velocity value not less than the preset velocity value, and pressing the position coordinate
  • the terminal reads a mapping table of the preset screen area and the audio playback control operation; the terminal searches from the mapping table, and is related to the preset screen area where the pressing position coordinate value is located. Audio playback control operation; Wherein, in the mapping table of the preset screen area and the audio playback control operation, the audio playback control operation is recorded in the corresponding preset screen area.
  • the terminal searches for an audio playback control operation associated with the pressed position, or may include: pressing the position coordinate value in any preset screen area coordinate range Within the value, and the pressing force value is the same as the preset velocity value corresponding to the preset screen area coordinate range value where the pressing position coordinate value is located, the terminal reads the mapping table of the preset screen area and the audio playback control operation; the terminal from the mapping Searching in the table, an audio playback control operation associated with the preset screen area where the position coordinate value is pressed; wherein, in the mapping table of the preset screen area and the audio playback control operation, the corresponding preset screen area records the audio playback control operating.
  • the mapping table of the preset screen area and the audio play control operation may be set by the user, for example, the terminal provides an audio play control operation setting interface, and after the user completes the setting of the number and position of the preset screen area, the terminal may display The audio play control operation setting interface, the user can select an associated audio play control operation for the preset preset screen area, and the terminal automatically generates a corresponding mapping table according to the user's selection, that is, the preset screen area.
  • a mapping table with audio playback control operations may be set by the user, for example, the terminal provides an audio play control operation setting interface, and after the user completes the setting of the number and position of the preset screen area, the terminal may display The audio play control operation setting interface, the user can select an associated audio play control operation for the preset preset screen area, and the terminal automatically generates a corresponding mapping table according to the user's selection, that is, the preset screen area.
  • a mapping table with audio playback control operations may be set by the user, for example, the terminal provides an audio
  • the preset screen areas set by the user are A1, A2, A3, A4, and A5, respectively, and the audio playback control operations may include a play operation, a pause operation, a play mode switching operation, a volume adjustment operation, The fast forward operation, the fast reverse operation, the previous adjustment operation, and the next adjustment operation, etc.
  • the audio playback control operation selected by the user may be: A1 previous adjustment operation, A2 next adjustment operation, A3 fast forward operation, A4 rewind operation, A5 pause operation and playback operation; after the selection is completed, the terminal automatically generates a corresponding mapping table according to the user's selection, that is, a mapping table of preset screen area and audio playback control operation.
  • a preset screen area may be associated with one or two audio playback control operations, such as A5 being associated with a pause operation and a playback operation.
  • the mapping table of the preset screen area and the audio playback control operation may be
  • the terminal setting for example, the terminal provides five preset screen areas as shown in FIG. 2 by default, and stores a mapping table of corresponding preset screen areas and audio playback control operations.
  • the terminal when the audio play control operation associated with the pressed position is found, the terminal performs the searched audio play control operation, which may include: when finding an audio play control operation associated with the pressed position, The processor of the terminal sends a control message carrying the found audio playback control operation to the audio application of the terminal; the audio application of the terminal performs the found audio playback control operation according to the control message. That is, when the audio play control operation associated with the pressed position is found, the processor of the terminal causes the audio application of the terminal to perform the found audio play control operation by transmitting a message.
  • the audio application is an audio APP.
  • the processor of the terminal sends a control message carrying the found audio play control operation to the audio application of the terminal, which may include: finding and pressing
  • the processor of the terminal determines whether the found audio playback control operation is one; when the found audio playback control operation is one, the processor of the terminal sends the carried to the audio application of the terminal The control message of the audio playback control operation is found; when the found audio playback control operation is not one, the processor of the terminal acquires the audio playback state, and according to the obtained audio playback state, the audio playback control operation is found from the search.
  • An audio playback control operation is selected; the processor of the terminal transmits a control message carrying the selected audio playback control operation to the audio application of the terminal. If the audio playback control operation found by the terminal is a pause operation and a playback operation, the processor of the terminal determines that the audio playback control operation found by the terminal is not one, and the processor of the terminal acquires the audio playback state, and the acquired audio playback state. While in the middle of playing, the processor of the terminal confirms that the suspending operation is a playback control operation that the user desires to perform, and the processor of the terminal sends a control message carrying the suspending operation to the audio application of the terminal.
  • the audio application of the terminal performs the searched audio play control operation according to the control message, and may include: the audio application of the terminal receives the control message; and the audio application of the terminal is parsed. The message is controlled to obtain an audio playback control operation; the audio application of the terminal performs an audio playback control operation.
  • the method for controlling audio playback may further include: when the pressing force and the pressing position do not satisfy the preset condition, the terminal does not perform the audio playback control operation. For example, if the pressing force value is less than the preset velocity value, or when the pressing velocity value is not less than the preset velocity value, and the pressing position coordinate value is not within any of the preset screen region coordinate range values, the terminal does not perform audio playback. Control operation.
  • the terminal can be a terminal such as a mobile phone or a tablet computer.
  • the audio playback control operation may include: a play operation, a pause operation, a play mode switching operation, a volume adjustment operation, a fast forward operation, a fast reverse operation, a previous adjustment operation, and a next adjustment operation, etc.;
  • the audio playback control operation may also include an audio application launch operation.
  • the present invention discloses an apparatus for controlling audio playback.
  • the apparatus for controlling audio playback includes:
  • the determining module 401 is configured to determine whether the pressing force and the pressing position of pressing the screen action of the terminal meet the preset condition
  • the execution module 402 is configured to perform an audio playback control operation when the pressing force and the pressing position satisfy a preset condition.
  • the determining module 401 is further configured to: when the terminal screen is in an unlocked state or an unlocked state, acquiring a pressing force value and a pressing position coordinate value of pressing the screen action of the terminal; determining the pressing force value and the pressing position coordinate value Whether the preset conditions are met.
  • the determining module 401 is further configured to determine whether the pressing force value is less than a preset strength value; and when the pressing force value is not less than a preset strength value, determining whether the pressing position coordinate value is at any one Presetting the screen area coordinate range value; confirming the pressing force value and the pressing position when the pressing position coordinate value is within any one of the preset screen area coordinate range values The coordinate values satisfy the preset conditions.
  • the execution module 402 is further configured to: when the pressing force and the pressing position meet the preset condition, search for an audio play control operation associated with the pressed position; and find that the pressed position is associated with The audio playback control operation that is found is performed when the audio playback control operation is performed.
  • the execution module 402 is further configured to read the preset screen area and the audio when the pressing force value is not less than the preset velocity value, and the pressing position coordinate value is within any preset screen area coordinate range value. Playing a mapping table of control operations; and searching for an audio playback control operation associated with the preset screen area where the pressed position coordinate value is located from the mapping table.
  • the determining module 401 and the executing module 402 may each be a central processing unit (CPU), a microprocessor (Micro Processor Unit, MPU), and a digital signal processor (Digital Signal Processor) located in the terminal. , DSP), or Field Programmable Gate Array (FPGA) implementation.
  • CPU central processing unit
  • MPU Micro Processor Unit
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • FIG. 5 is a schematic structural diagram of a device for controlling audio playback according to an embodiment of the present invention, as shown in FIG. 5, specifically including: a detection module 501, a confirmation module 502, a control module 503, and a setting module 504;
  • the detecting module 501 is configured to detect whether a pressing terminal screen action occurs when the terminal screen is in an unlocked state or an unlocked state; and when the pressing terminal screen action occurs, acquiring a pressing force value and a pressing position coordinate value of pressing the terminal screen action Sending a pressing force value and a pressing position coordinate value for pressing the terminal screen action to the confirmation module 502;
  • the confirmation module 502 is configured to confirm whether the pressing force value of pressing the screen action of the terminal is less than a preset strength value; confirming whether the coordinate value of the pressing position of pressing the screen action of the terminal is within a coordinate range value of any preset screen area; If the preset position value is less than the preset velocity value, and the pressed position coordinate value is within any preset screen area coordinate range value, the mapping table of the preset screen area and the audio playback control operation is read; and the coordinate value of the position is searched and pressed from the mapping table. Presupposition An audio playback control operation associated with the screen area; transmitting the found audio playback control operation to the control module 503;
  • the control module 503 is configured to perform the found audio playback control operation
  • the setting module 504 is configured to set a mapping table of the preset velocity value, the preset screen region, and the preset screen region and the audio playback control operation.
  • the detecting module 501 is further configured to detect whether a pressing terminal screen action occurs when the terminal screen is in an unlocked state or an unlocked state when the terminal screen action is not pressed.
  • the detecting module 501 is further configured to: when the pressing force value is less than the preset velocity value, or when the pressing force value is not less than the preset velocity value, and the pressing position coordinate value is not in any one of the preset screen region coordinate ranges When the value is within, returning to execute when the terminal screen is in an unlocked state or an unlocked state, it is detected whether a pressing terminal screen action occurs.
  • the detecting module 501 is further configured to return to perform execution of the terminal screen in an unlocked state or an unlocked state when an audio playback control operation associated with the preset screen region where the position coordinate value is pressed is not found. At the time, it is detected whether there is a pressing terminal screen action.
  • the detection module 501, the confirmation module 502, the control module 503, and the setting module 504 may each be a Central Processing Unit (CPU), a Micro Processor Unit (MPU) located in the terminal, Digital signal processor (DSP), or Field Programmable Gate Array (FPGA) implementation.
  • CPU Central Processing Unit
  • MPU Micro Processor Unit
  • DSP Digital signal processor
  • FPGA Field Programmable Gate Array
  • FIG. 6 is a schematic flowchart of a first embodiment of a method for controlling audio playback according to the present invention. As shown in FIG. 6, specific steps include:
  • Step 601 Set a mapping table of the preset velocity value, the preset screen area, and the preset screen area and the audio playback control operation.
  • the preset velocity value may be set according to a momentary pressing of the terminal screen action velocity value. If the terminal is placed in the pocket of the clothing worn by the user, or the backpack carried by the user, the terminal is shaken to make the terminal screen touch other objects, and the terminal screen receives the pressing action of the outside, and the pressing action is an accidental pressing.
  • the terminal screen action; or, for example, the pressing action performed by the user on the terminal screen in order to pick up the terminal, in order to avoid controlling the playing of the audio according to the pressing action, the pressing action may also be regarded as an accidental pressing of the terminal screen action;
  • the velocity value is the value of the velocity of the terminal screen action.
  • the velocity value of the screen action of the terminal is erroneously pressed, that is, the velocity value of the screen action of the terminal is erroneously pressed, and the preset velocity value is set to be greater than the maximum pressure of the terminal screen.
  • the value of the value but at the same time, in order to avoid the need for the user to spend a lot of effort to control the audio playback, improve the user experience, the preset velocity value needs to be less than a certain value.
  • the force value of the pressing action performed on the terminal screen is less than 10 Newtons, that is, when the velocity value of pressing the screen action of the terminal is less than 10 Newtons, the audio playing can be controlled, and
  • the measured velocity values of the screens of the erroneously pressed terminals are 1 Newton and 2 Newtons respectively.
  • the preset velocity values can be set to values greater than 2 Newtons and less than 10 Newtons, such as 3 Newtons, 4 Newtons, and the like.
  • the preset velocity value may be set by the user.
  • the terminal provides a velocity value setting interface, and the user may input a corresponding value as a preset velocity value in the velocity value setting interface, or the user may provide the provision from the velocity value setting interface.
  • a value is selected as the preset velocity value.
  • the preset velocity value may also be set by the terminal, for example, the terminal stores a default preset velocity value.
  • the preset screen area coordinate range value is a coordinate range value of the preset screen area.
  • the preset screen area may be set by a user, for example, the terminal provides a screen area setting interface for the user to set the number and position of the preset screen area, and the user may manually divide the terminal screen into one or more in the screen area setting interface. Areas, thereby obtaining one or more preset screen areas, as shown in FIG. 2, dividing the terminal screen into five areas, and obtaining five preset screen areas Don't be: A1, A2, A3, A4 and A5.
  • the preset screen area may also be set by the terminal, for example, the terminal provides five preset screen areas as shown in FIG. 2 by default.
  • the preset screen area may be set according to a display position of a control button of the terminal APP. If the control button of the terminal APP is usually displayed in the middle of the terminal screen and not in the upper and lower portions of the terminal screen, in this case, the preset screen area can be set at the upper or lower portion of the terminal screen.
  • the activation button of the APP of the terminal that is, the icon 301 of the APP
  • the preset screen area can be set at the upper portion 303 or the lower portion 304 of the terminal screen.
  • the preset screen area can be prevented from being set at the display position of the terminal APP control button, and when the terminal screen is unlocked, the pressing terminal screen action implemented to control the playing of the audio is controlled to control the terminal APP.
  • the mapping table of the preset screen area and the audio play control operation may be set by the user, for example, the terminal provides an audio play control operation setting interface, and after the user completes the setting of the number and position of the preset screen area, the terminal may display The audio play control operation setting interface, the user can select an associated audio play control operation for the preset preset screen area, and the terminal automatically generates a corresponding mapping table according to the user's selection, that is, the preset screen area.
  • a mapping table with audio playback control operations may be set by the user, for example, the terminal provides an audio play control operation setting interface, and after the user completes the setting of the number and position of the preset screen area, the terminal may display The audio play control operation setting interface, the user can select an associated audio play control operation for the preset preset screen area, and the terminal automatically generates a corresponding mapping table according to the user's selection, that is, the preset screen area.
  • a mapping table with audio playback control operations may be set by the user, for example, the terminal provides an audio
  • the preset screen areas set by the user are A1, A2, A3, A4, and A5, respectively, and the audio playback control operations may include a play operation, a pause operation, a play mode switching operation, a volume adjustment operation, The fast forward operation, the fast reverse operation, the previous adjustment operation, and the next adjustment operation, etc.
  • the audio playback control operation selected by the user may be: A1 previous adjustment operation, A2 next adjustment operation, A3 fast forward operation, A4 rewind operation, A5 pause operation and playback operation; after the selection is completed, the terminal automatically generates a corresponding mapping table according to the user's selection, that is, a mapping table of preset screen area and audio playback control operation.
  • a preset screen area may be associated with one or two audio playback control operations, such as A5 being associated with a pause operation and a playback operation.
  • the mapping table of the preset screen area and the audio play control operation may be set by the terminal, for example, the terminal provides five preset screen areas as shown in FIG. 2 by default, and saves the corresponding preset screen area and A mapping table for audio playback control operations.
  • Step 602 When the terminal screen is in the unlocked state or the unlocked state, it is detected whether there is a pressing terminal screen action. When the pressing terminal screen action occurs, step 603 is performed, otherwise step 602 is performed.
  • the step may include: when the terminal screen is in an unlocked state or an unlocked state, the terminal collects the pressure value of the terminal screen; when the pressure value of the terminal screen changes from zero to non-zero, the terminal confirms that the pressing terminal screen action occurs. Otherwise, the terminal confirms that the pressing of the terminal screen action does not occur.
  • the terminal collects the pressure value of the terminal screen when the terminal screen is in the unlocked state or the unlocked state, and may include: when the terminal screen is in the unlocked state or the unlocked state, the pressure sensor of the terminal measures the pressure of the terminal screen. Obtaining a pressure value of the terminal screen; when the terminal screen is in an unlocked state or an unlocked state, the processor of the terminal reads the pressure value of the terminal screen obtained by the pressure sensor measurement. For example, after the terminal is powered on, the pressure sensor of the terminal is always in the running state, so that the pressure sensor of the terminal can measure the pressure value of the terminal screen regardless of whether the terminal screen is in the unlocked state or the unlocked state.
  • Step 603 Acquire a pressing force value and a pressing position coordinate value of pressing the screen action of the terminal.
  • the step may include: when it is confirmed that the pressing terminal screen action occurs, the terminal starts to record the pressure value of the collected terminal screen; when it is confirmed that the pressing terminal screen action occurs, the terminal reads and records the pressure value from zero. a position coordinate value of the non-zero terminal screen; when the pressure value of the terminal screen changes from zero to zero, the terminal stops recording the pressure value of the terminal screen it has collected; the terminal calculates the average value of the recorded pressure values, and The average value is used as a pressing force value for pressing the terminal screen action, or the terminal determines the maximum pressure value from the recorded pressure value, and uses the maximum pressure value as the pressing force value for pressing the terminal screen action.
  • Step 604 Confirm whether the pressing force value of pressing the screen action of the terminal is less than the preset velocity value; when the pressing force value is not less than the preset velocity value, step 605 is performed; otherwise, step 602 is performed.
  • the terminal is placed in the pocket of the clothing worn by the user, the terminal is shaken to cause the terminal screen to touch other objects, and the terminal screen receives the pressing action of the outside, and the force value of the pressing action is less than the preset strength value, and the terminal The audio playback control operation is not performed, and the process returns to step 602.
  • Step 605 Confirm whether the pressing position coordinate value of pressing the terminal screen action is within any one of the preset screen area coordinate range values; when the pressed position coordinate value is within any one of the preset screen area coordinate range values, performing step 606, otherwise executing Step 602.
  • the user presses the terminal screen action to the terminal screen, and the pressing force value of the pressing terminal screen action is greater than the preset velocity value, but the pressing position coordinate of the pressing terminal screen action is not in A1, A2, A3, A4, and In any of the preset screen area coordinate range values of A5, the terminal does not perform the audio play control operation, and returns to step 602.
  • Step 606 Read a mapping table of the preset screen area and the audio play control operation, and find an audio play control operation associated with the preset screen area where the pressed position coordinate value is located from the map. When the audio playback control operation is found, step 607 is performed, otherwise step 602 is performed.
  • the audio playback control operation is recorded in the corresponding preset screen area.
  • this step may be that the terminal reads the mapping table of the preset screen area and the audio playback control operation, and searches for the associated screen area A1 from the mapping table.
  • the audio playback control operation finds the audio playback control operation as the previous adjustment operation.
  • Step 607 Perform the found audio playback control operation.
  • the step may include that the processor of the terminal sends a control message carrying the found audio play control operation to the audio application of the terminal; the audio application of the terminal performs the searched audio play control operation according to the control message.
  • the audio application is an audio APP.
  • the processor of the terminal sends a control message carrying the searched previous adjustment operation to the audio application of the terminal; the audio application of the terminal executes the previous one according to the control message.
  • First adjustment operation If the found audio playback control operation is the previous adjustment operation, the processor of the terminal sends a control message carrying the searched previous adjustment operation to the audio application of the terminal; the audio application of the terminal executes the previous one according to the control message. First adjustment operation.
  • the embodiment of the invention further provides a terminal, which is provided with the device for controlling audio playback shown in any of the figures of FIG. 4 or FIG. 5.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores executable instructions for performing the method for controlling audio playback shown in any of the figures of FIG. 1 or FIG. 6.
  • the steps may be performed by a program instruction related hardware, and the foregoing program may be stored in a computer readable storage medium, and when executed, the program includes the steps of the foregoing method embodiment; and the foregoing storage medium includes: mobile storage A device that can store program code, such as a device, a random access memory (RAM), a read-only memory (ROM), a magnetic disk, or an optical disk.
  • program code such as a device, a random access memory (RAM), a read-only memory (ROM), a magnetic disk, or an optical disk.
  • the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for making
  • a computer device which may be a personal computer, server, or network device, etc.
  • the foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a RAM, a ROM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

本发明公开了一种控制音频播放的方法,该方法包括:判断按压终端屏幕动作的按压力度及按压位置是否满足预设条件;在按压力度及按压位置满足预设条件时,执行音频播放控制操作。本发明还同时公开了一种控制音频播放的装置、终端及计算机存储介质。

Description

控制音频播放的方法及装置、终端、计算机存储介质 技术领域
本发明涉及通信领域的终端技术,尤其涉及一种控制音频播放的方法及装置、终端、计算机存储介质。
背景技术
用户通常会使用终端播放音频,如使用手机、平板电脑等终端,播放音乐、音频小说等音频。且在使用终端播放音频时,用户通常需控制音频的播放,如暂停终端正在播放的音频,调节终端播放音频的音量,控制终端播放上一个音频或下一个音频等。相关技术中的控制音频播放的方式通常包括两种,方式一通过点击音频播放控制界面上的控制按钮,控制音频的播放;例如,终端播放音频,在终端屏幕未解锁时用户解锁终端屏幕,在终端屏幕未显示音频播放控制界面时,用户执行相应操作进入音频播放控制界面,用户点击音频播放控制界面上相应的控制按钮,如暂停、快进或快退等按钮,从而控制音频的播放;方式二通过无线或有线耳机控制音频的播放;例如,用户将无线或有线耳机接入终端,终端播放音频,用户按下耳机上相应的控制按钮,如暂停、快进或快退等按钮,从而控制音频的播放。
但相关技术中控制音频播放的方式存在如下问题:控制过程均需用户执行较多的操作,从而使得音频播放的控制过程操作繁琐;且方式一仅在终端屏幕解锁时才能控制音频的播放,从而使得在终端屏幕未解锁时无法控制音频的播放;方式二虽然在终端屏幕解锁或未解锁时均能控制音频的播放,但需为终端接入相应的控制器件。
发明内容
本发明实施例期望提供一种控制音频播放的方法及装置、终端、计算机存储介质,以在终端屏幕解锁或未解锁时均能方便、快捷地控制音频的播放。
本发明实施例的技术方案是这样实现的:
本发明实施例公开了一种控制音频播放的方法,所述方法包括:
判断按压终端屏幕动作的按压力度及按压位置是否满足预设条件;
在所述按压力度及按压位置满足预设条件时,执行音频播放控制操作。
优选地,所述判断按压终端屏幕动作的按压力度及按压位置是否满足预设条件,包括:
在终端屏幕处于解锁状态或未解锁状态时,获取按压终端屏幕动作的按压力度值及按压位置坐标值;
判断所述按压力度值及按压位置坐标值是否满足预设条件。
优选地,所述判断所述按压力度值及按压位置坐标值是否满足预设条件,包括:
判断所述按压力度值是否小于预设力度值;
在所述按压力度值不小于预设力度值时,判断所述按压位置坐标值是否在任意一个预设屏幕区域坐标范围值内;
在所述按压位置坐标值在任意一个预设屏幕区域坐标范围值内时,确认所述按压力度值及按压位置坐标值满足预设条件。
优选地,所述在所述按压力度及按压位置满足预设条件时,执行音频播放控制操作,包括:
在所述按压力度及按压位置满足预设条件时,查找与所述按压位置相关联的音频播放控制操作;
在查找出与所述按压位置相关联的音频播放控制操作时,执行查找出 的所述音频播放控制操作。
优选地,所述在所述按压力度及按压位置满足预设条件时,查找与所述按压位置相关联的音频播放控制操作,包括:
在按压力度值不小于预设力度值,且按压位置坐标值在任意一个预设屏幕区域坐标范围值内时,读取预设屏幕区域与音频播放控制操作的映射表;
从所述映射表中查找与所述按压位置坐标值所在的预设屏幕区域相关联的音频播放控制操作。
本发明实施例还公开了一种控制音频播放的装置,所述装置包括:
判断模块,配置为判断按压终端屏幕动作的按压力度及按压位置是否满足预设条件;
执行模块,配置为在所述按压力度及按压位置满足预设条件时,执行音频播放控制操作。
优选地,所述判断模块,还配置为在终端屏幕处于解锁状态或未解锁状态时,获取按压终端屏幕动作的按压力度值及按压位置坐标值;判断所述按压力度值及按压位置坐标值是否满足预设条件。
优选地,所述判断模块,还配置为判断所述按压力度值是否小于预设力度值;在所述按压力度值不小于预设力度值时,判断所述按压位置坐标值是否在任意一个预设屏幕区域坐标范围值内;在所述按压位置坐标值在任意一个预设屏幕区域坐标范围值内时,确认所述按压力度值及按压位置坐标值满足预设条件。
优选地,所述执行模块,还配置为在所述按压力度及按压位置满足预设条件时,查找与所述按压位置相关联的音频播放控制操作;在查找出与所述按压位置相关联的音频播放控制操作时,执行查找出的所述音频播放控制操作。
优选地,所述执行模块,还配置为在在按压力度值不小于预设力度值,且按压位置坐标值在任意一个预设屏幕区域坐标范围值内时,读取预设屏幕区域与音频播放控制操作的映射表;从所述映射表中查找与所述按压位置坐标值所在的预设屏幕区域相关联的音频播放控制操作。
本发明实施例还提供一种终端,所述终端设置有上述的控制音频播放的装置。
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有可执行指令,所述可执行指令用于执行上述的控制音频播放的方法。
本发明实施例提供的一种控制音频播放的方法及装置、终端、计算机存储介质,判断按压终端屏幕动作的按压力度及按压位置是否满足预设条件;在按压力度及按压位置满足预设条件时,执行音频播放控制操作。如此,能实现在终端屏幕解锁或未解锁时均能方便、快捷地控制音频的播放,且无需为终端接入相应的控制器件,提高用户的体验度。
附图说明
图1为本发明实施例提供的一种控制音频播放的方法的流程示意图;
图2为本发明实施例提供的预设屏幕区域的位置示意图;
图3为本发明实施例提供的终端屏幕界面的示意图;
图4为本发明实施例提供的一种控制音频播放的装置的结构示意图;
图5为本发明提供的一种控制音频播放的装置具体实施例的结构示意图;
图6为本发明提供的一种控制音频播放的方法具体实施例的流程示意图。
具体实施方式
在本发明实施例中,终端判断按压终端屏幕动作的按压力度及按压位 置是否满足预设条件;在按压力度及按压位置满足预设条件时,终端执行音频播放控制操作。
下面结合附图和具体实施例,对本发明进一步详细说明。
图1为本发明实施例提供的一种控制音频播放的方法的流程示意图,如图1所示,该方法包括:
步骤101:判断按压终端屏幕动作的按压力度及按压位置是否满足预设条件。
例如,本步骤可以为,终端判断对终端屏幕实施的按压动作的按压力度及按压位置是否满足预设条件。即按压终端屏幕动作即为对终端屏幕实施的按压动作。
例如,本步骤可以包括,在终端屏幕处于解锁状态或未解锁状态时,终端均获取按压终端屏幕动作的按压力度值及按压位置坐标值;终端判断按压终端屏幕动作的按压力度值及按压位置坐标值是否满足预设条件。
需说明的是,所述在终端屏幕处于解锁状态或未解锁状态时,终端均获取按压终端屏幕动作的按压力度值及按压位置坐标值,可以包括,在终端屏幕处于解锁状态或未解锁状态时,终端均检测是否有按压终端屏幕动作发生;在按压终端屏幕动作发生时,终端开始记录按压终端屏幕动作的压力值,及记录按压终端屏幕动作的位置坐标值;在按压终端屏幕动作结束时,终端停止记录按压终端屏幕动作的压力值;终端根据已记录的压力值计算出按压终端屏幕动作的按压力度值。
例如,上述按压力度值及按压位置坐标值的获取过程可以为,在终端屏幕处于解锁状态或未解锁状态时,终端均采集终端屏幕的压力值;在终端屏幕的压力值从零变化为非零时,终端确认有按压终端屏幕动作发生,否则,终端确认没有按压终端屏幕动作发生;在确认有按压终端屏幕动作发生时,终端开始记录其采集到的终端屏幕的压力值;在确认有按压终端 屏幕动作发生时,终端读取并记录压力值从零变为非零的终端屏幕的位置坐标值;在终端屏幕的压力值从非零变化为零时,终端停止记录其采集到的终端屏幕的压力值;终端计算已记录的压力值的平均值,并将该平均值作为按压终端屏幕动作的按压力度值,或者,终端从已记录的压力值中确定出最大的压力值,并将该最大的压力值作为按压终端屏幕动作的按压力度值。
其中,所述在终端屏幕处于解锁状态或未解锁状态时,终端均采集终端屏幕的压力值,可以包括,在终端屏幕处于解锁状态或未解锁状态时,终端的压力传感器均测量终端屏幕的压力,获得终端屏幕的压力值;在终端屏幕处于解锁状态或未解锁状态时,终端的处理器均读取该压力传感器测量获得的终端屏幕的压力值。如在终端开机后,终端的压力传感器一直处于运行状态,从而无论终端屏幕处于解锁状态还是未解锁状态,终端的压力传感器均可以测量获得终端屏幕的压力值。
需说明的是,所述终端判断按压终端屏幕动作的按压力度值及按压位置坐标值是否满足预设条件,可以包括,终端判断按压终端屏幕动作的按压力度值是否小于预设力度值;在按压力度值小于预设力度值时,终端确认按压终端屏幕动作的按压力度值及按压位置坐标值不满足预设条件;在按压力度值不小于预设力度值时,终端判断按压终端屏幕动作的按压位置坐标值是否在任意一个预设屏幕区域坐标范围值内;在按压位置坐标值未在任意一个预设屏幕区域坐标范围值内时,终端确认按压终端屏幕动作的按压力度值及按压位置坐标值不满足预设条件,否则,终端确认按压终端屏幕动作的按压力度值及按压位置坐标值满足预设条件。即可以设置一个预设力度值,一个或多个预设屏幕区域坐标范围值,在终端屏幕动作的按压力度值不小于预设力度值,且终端屏幕动作的按压位置坐标值在任意一个预设屏幕区域坐标范围值内时,终端确认按压终端屏幕动作的按压力度 值及按压位置坐标值满足预设条件。
需说明的是,所述终端判断按压终端屏幕动作的按压力度值及按压位置坐标值是否满足预设条件,或者可以包括,终端判断按压终端屏幕动作的按压力度值是否小于最小预设力度值;在按压力度值小于最小预设力度值时,终端确认按压终端屏幕动作的按压力度值及按压位置坐标值不满足预设条件;在按压力度值不小于最小预设力度值时,终端判断按压终端屏幕动作的按压位置坐标值是否在任意一个预设屏幕区域坐标范围值内;在按压位置坐标值未在任意一个预设屏幕区域坐标范围值内时,终端确认按压终端屏幕动作的按压力度值及按压位置坐标值不满足预设条件;在按压位置坐标值在任意一个预设屏幕区域坐标范围值内时,终端判断按压力度值是否与,按压位置坐标值所在的预设屏幕区域坐标范围值对应的预设力度值相同;在判断结果为相同时,终端确认按压终端屏幕动作的按压力度值及按压位置坐标值满足预设条件,否则,终端确认按压终端屏幕动作的按压力度值及按压位置坐标值不满足预设条件。即可以设置多个预设力度值,及多个预设屏幕区域坐标范围值,每个预设屏幕区域坐标范围值对应一个预设力度值,在终端屏幕动作的按压位置坐标值在任意一个预设屏幕区域坐标范围值内,且终端屏幕动作的按压力度值与,按压位置坐标值所在的预设屏幕区域坐标范围值对应的预设力度值相同时,终端确认按压终端屏幕动作的按压力度值及按压位置坐标值满足预设条件。
其中,所述预设条件包括预设力度值,及预设屏幕区域坐标范围值。
例如,所述预设力度值可以根据误按压终端屏幕动作力度值来设置。如终端被放置在用户所穿衣物的口袋,或用户所携带的背包中,终端被晃动从而使得终端屏幕触碰到其它物体,终端屏幕接收到外界的按压动作,该按压动作即为误按压终端屏幕动作;或者如,用户为了拿起终端而向终端屏幕实施的按压动作,为了避免根据该按压动作控制音频的播放,该按 压动作也可视为误按压终端屏幕动作;误按压终端屏幕动作的力度值即为误按压终端屏幕动作力度值。为了避免终端根据误按压终端屏幕动作控制音频的播放,可以测量出误按压终端屏幕动作的力度值,即误按压终端屏幕动作力度值,将预设力度值设置为大于最大误按压终端屏幕动作力度值的值,但同时为了避免需用户花费较大力气来控制音频的播放,提高用户的体验度,预设力度值还需小于一定的值。如若用户期望在避免误按压终端屏幕动作的基础上,对终端屏幕实施的按压动作的力度值小于10牛顿时,即按压终端屏幕动作的力度值小于10牛顿时,即可控制音频的播放,且测量获得的误按压终端屏幕动作力度值分别为1牛顿、2牛顿,在这种情况下即可以将预设力度值设置为大于2牛顿且小于10牛顿的值,如3牛顿、4牛顿等。
例如,所述预设力度值可以由用户来设置,如终端提供力度值设置界面,用户可以在力度值设置界面输入相应的数值作为预设力度值,或用户可以从力度值设置界面提供的备选数值中,选定一个数值作为预设力度值。当然,所述预设力度值或者也可以由终端设置,如终端存储有默认的预设力度值。
例如,所述预设屏幕区域坐标范围值即为预设屏幕区域的坐标范围值。例如,所述预设屏幕区域可以由用户设置,如终端提供屏幕区域设置界面,以供用户设置预设屏幕区域的数目和位置,用户可以在屏幕区域设置界面手动将终端屏幕划分为一个或多个区域,从而获得一个或多个预设屏幕区域,如图2所示,将终端屏幕划分为五个区域,获得五个预设屏幕区域分别为:A1、A2、A3、A4和A5。当然,所述预设屏幕区域或者也可以由终端设置,如终端默认提供如图2所示的五个预设屏幕区域。
例如,所述预设屏幕区域可以根据终端应用程序(Application,APP)的控制按钮的显示位置来设置。如若终端APP的控制按钮通常显示在终端 屏幕的中部,而不显示在终端屏幕的上部及下部,在这种情况下即可将预设屏幕区域,设置在终端屏幕的上部或下部。如图3所示,若在终端屏幕被解锁后,终端的APP的启动按钮,即APP的图标301,通常都显示在终端屏幕的中部302而不显示在终端屏幕的上部303及下部304,在这种情况下即可将预设屏幕区域,设置在终端屏幕的上部303或下部304。从而可以避免将预设屏幕区域设置在终端APP控制按钮的显示位置,防止在终端屏幕解锁时,为了控制音频的播放而实施的按压终端屏幕动作控制了终端APP。
步骤102:在按压力度及按压位置满足预设条件时,执行音频播放控制操作。
例如,本步骤可以为,在按压终端屏幕动作的按压力度及按压位置满足预设条件时,终端执行音频播放控制操作终端。如在用户手指按压终端屏幕动作的按压力度及按压位置满足预设条件时,终端即可执行音频播放控制操作终端。如此,能实现在终端屏幕解锁或未解锁时均能方便、快捷地控制音频的播放,操作简单,且无需为终端接入相应的控制器件,提高用户的体验度。
例如,本步骤可以包括,在按压力度及按压位置满足预设条件时,终端查找与按压位置相关联的音频播放控制操作;在查找出与按压位置相关联的音频播放控制操作时,终端执行查找出的音频播放控制操作,否则,终端不执行音频播放控制操作。
需说明的是,所述在按压力度及按压位置满足预设条件时,终端查找与按压位置相关联的音频播放控制操作,可以包括,在按压力度值不小于预设力度值,且按压位置坐标值在任意一个预设屏幕区域坐标范围值内时,终端读取预设屏幕区域与音频播放控制操作的映射表;终端从该映射表中查找,与按压位置坐标值所在的预设屏幕区域相关联的音频播放控制操作; 其中,该预设屏幕区域与音频播放控制操作的映射表中,对应预设屏幕区域记录了音频播放控制操作。
需说明的是,所述在按压力度及按压位置满足预设条件时,终端查找与按压位置相关联的音频播放控制操作,或者可以包括,在按压位置坐标值在任意一个预设屏幕区域坐标范围值内,且按压力度值与按压位置坐标值所在的预设屏幕区域坐标范围值对应的预设力度值相同时,终端读取预设屏幕区域与音频播放控制操作的映射表;终端从该映射表中查找,与按压位置坐标值所在的预设屏幕区域相关联的音频播放控制操作;其中,该预设屏幕区域与音频播放控制操作的映射表中,对应预设屏幕区域记录了音频播放控制操作。
例如,所述预设屏幕区域与音频播放控制操作的映射表,可以由用户设置,如终端提供音频播放控制操作设置界面,在用户完成预设屏幕区域的数目和位置的设置后,终端可以显示该音频播放控制操作设置界面,用户可以在该界面为已设置的预设屏幕区域选择相关联的音频播放控制操作,选择完成后终端自动根据用户的选择生成相应的映射表,即预设屏幕区域与音频播放控制操作的映射表。
如沿用如图2所示的例子,用户设置的预设屏幕区域分别为A1、A2、A3、A4和A5,音频播放控制操作可以包括播放操作、暂停操作、播放模式切换操作、音量调节操作、快进操作、快退操作、上一首调节操作及下一首调节操作等,用户选择的音频播放控制操作可以为:A1上一首调节操作,A2下一首调节操作,A3快进操作,A4快退操作,A5暂停操作和播放操作;选择完成后终端自动根据用户的选择生成相应的映射表,即预设屏幕区域与音频播放控制操作的映射表。其中,一个预设屏幕区域可以与一个或两个音频播放控制操作相关联,如A5与暂停操作和播放操作相关联。
例如,所述预设屏幕区域与音频播放控制操作的映射表,或者可以由 终端设置,如终端默认提供有如图2所示的五个预设屏幕区域,并保存有相应的预设屏幕区域与音频播放控制操作的映射表。
需说明的是,所述在查找出与按压位置相关联的音频播放控制操作时,终端执行查找出的音频播放控制操作,可以包括,在查找出与按压位置相关联的音频播放控制操作时,终端的处理器向终端的音频应用发送携带有查找出的音频播放控制操作的控制消息;终端的音频应用根据该控制消息执行查找出的音频播放控制操作。即在查找出与按压位置相关联的音频播放控制操作时,终端的处理器通过发送消息的方式使得终端的音频应用执行查找出的音频播放控制操作。其中,所述音频应用即为音频APP。
例如,所述在查找出与按压位置相关联的音频播放控制操作时,终端的处理器向终端的音频应用发送携带有查找出的音频播放控制操作的控制消息,可以包括,在查找出与按压位置相关联的音频播放控制操作时,终端的处理器判断查找出的音频播放控制操作是否为一个;在查找出的音频播放控制操作为一个时,终端的处理器向终端的音频应用发送携带有查找出的音频播放控制操作的控制消息;在查找出的音频播放控制操作不为一个时,终端的处理器获取音频播放状态,并根据获取到的音频播放状态从查找出的音频播放控制操作中选定一个音频播放控制操作;终端的处理器向终端的音频应用发送携带有其选定的查找出的音频播放控制操作的控制消息。如终端查找出的音频播放控制操作为暂停操作和播放操作,终端的处理器通过判断确认查找出的音频播放控制操作不为一个,终端的处理器获取音频播放状态,在获取到的音频播放状态为正在播放中时,终端的处理器确认暂停操作为用户期望执行的播放控制操作,终端的处理器向终端的音频应用发送携带有暂停操作的控制消息。
例如,所述终端的音频应用根据该控制消息执行查找出的音频播放控制操作,可以包括,终端的音频应用接收控制消息;终端的音频应用解析 控制消息,获得音频播放控制操作;终端的音频应用执行音频播放控制操作。
需说明的是,本发明实施例提供的控制音频播放的方法,还可以包括,在按压力度及按压位置不满足预设条件时,终端不执行音频播放控制操作。例如,如在按压力度值小于预设力度值时,或在按压力度值不小于预设力度值,且按压位置坐标值未在任意一个预设屏幕区域坐标范围值内时,终端不执行音频播放控制操作。
其中,终端可以为手机或平板电脑等终端。其中,所述音频播放控制操作可以包括,播放操作、暂停操作、播放模式切换操作、音量调节操作、快进操作、快退操作、上一首调节操作及下一首调节操作等;当然,所述音频播放控制操作还可以包括音频应用启动操作。
为了实现上述方法,本发明公开了一种控制音频播放的装置。
图4为本发明实施例提供的一种控制音频播放的装置的结构示意图,如图4所示,所述控制音频播放的装置包括:
判断模块401,配置为判断按压终端屏幕动作的按压力度及按压位置是否满足预设条件;
执行模块402,配置为在所述按压力度及按压位置满足预设条件时,执行音频播放控制操作。
优选地,所述判断模块401,还配置为在终端屏幕处于解锁状态或未解锁状态时,获取按压终端屏幕动作的按压力度值及按压位置坐标值;判断所述按压力度值及按压位置坐标值是否满足预设条件。
优选地,所述判断模块401,还配置为判断所述按压力度值是否小于预设力度值;在所述按压力度值不小于预设力度值时,判断所述按压位置坐标值是否在任意一个预设屏幕区域坐标范围值内;在所述按压位置坐标值在任意一个预设屏幕区域坐标范围值内时,确认所述按压力度值及按压位 置坐标值满足预设条件。
优选地,所述执行模块402,还配置为在所述按压力度及按压位置满足预设条件时,查找与所述按压位置相关联的音频播放控制操作;在查找出与所述按压位置相关联的音频播放控制操作时,执行查找出的所述音频播放控制操作。
优选地,所述执行模块402,还配置为在在按压力度值不小于预设力度值,且按压位置坐标值在任意一个预设屏幕区域坐标范围值内时,读取预设屏幕区域与音频播放控制操作的映射表;从所述映射表中查找与所述按压位置坐标值所在的预设屏幕区域相关联的音频播放控制操作。
在实际应用中,所述判断模块401、执行模块402均可由位于终端中的中央处理器(Central Processing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。
图5为本发明提供的一种控制音频播放的装置具体实施例的结构示意图,如图5所示,具体包括:检测模块501、确认模块502、控制模块503及设置模块504;
检测模块501,配置为在终端屏幕处于解锁状态或未解锁状态时,均检测是否有按压终端屏幕动作发生;在按压终端屏幕动作发生时,获取按压终端屏幕动作的按压力度值及按压位置坐标值;向确认模块502发送按压终端屏幕动作的按压力度值及按压位置坐标值;
确认模块502,配置为确认按压终端屏幕动作的按压力度值是否小于预设力度值;确认按压终端屏幕动作的按压位置坐标值是否在任意一个预设屏幕区域坐标范围值内;在按压力度值不小于预设力度值,且按压位置坐标值在任意一个预设屏幕区域坐标范围值内时,读取预设屏幕区域与音频播放控制操作的映射表;从该映射表中查找与按压位置坐标值所在的预设 屏幕区域相关联的音频播放控制操作;向控制模块503发送查找出的音频播放控制操作;
控制模块503,配置为执行查找出的音频播放控制操作;
设置模块504,配置为设置预设力度值、预设屏幕区域及预设屏幕区域与音频播放控制操作的映射表。
优选地,所述检测模块501,还配置为在没有按压终端屏幕动作发生时,返回执行所述在终端屏幕处于解锁状态或未解锁状态时,均检测是否有按压终端屏幕动作发生。
优选地,所述检测模块501,还配置为在按压力度值小于预设力度值时,或在按压力度值不小于预设力度值,且按压位置坐标值未在任意一个预设屏幕区域坐标范围值内时,返回执行所述在终端屏幕处于解锁状态或未解锁状态时,均检测是否有按压终端屏幕动作发生。
优选地,所述检测模块501,还配置为在未查找到与按压位置坐标值所在的预设屏幕区域相关联的音频播放控制操作时,返回执行所述在终端屏幕处于解锁状态或未解锁状态时,均检测是否有按压终端屏幕动作发生。
在实际应用中,所述检测模块501、确认模块502、控制模块503及设置模块504均可由位于终端中的中央处理器(Central Processing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。
图6为本发明提供的一种控制音频播放的方法具体实施例一的流程示意图,如图6所示,具体步骤包括:
步骤601:设置预设力度值、预设屏幕区域及预设屏幕区域与音频播放控制操作的映射表。
例如,所述预设力度值可以根据误按压终端屏幕动作力度值来设置。 如终端被放置在用户所穿衣物的口袋,或用户所携带的背包中,终端被晃动从而使得终端屏幕触碰到其它物体,终端屏幕接收到外界的按压动作,该按压动作即为误按压终端屏幕动作;或者如,用户为了拿起终端而向终端屏幕实施的按压动作,为了避免根据该按压动作控制音频的播放,该按压动作也可视为误按压终端屏幕动作;误按压终端屏幕动作的力度值即为误按压终端屏幕动作力度值。
为了避免终端根据误按压终端屏幕动作控制音频的播放,可以测量出误按压终端屏幕动作的力度值,即误按压终端屏幕动作力度值,将预设力度值设置为大于最大误按压终端屏幕动作力度值的值,但同时为了避免需用户花费较大力气来控制音频的播放,提高用户的体验度,预设力度值还需小于一定的值。如若用户期望在避免误按压终端屏幕动作的基础上,对终端屏幕实施的按压动作的力度值小于10牛顿时,即按压终端屏幕动作的力度值小于10牛顿时,即可控制音频的播放,且测量获得的误按压终端屏幕动作力度值分别为1牛顿、2牛顿,在这种情况下即可以将预设力度值设置为大于2牛顿且小于10牛顿的值,如3牛顿、4牛顿等。
例如,所述预设力度值可以由用户来设置,如终端提供力度值设置界面,用户可以在力度值设置界面输入相应的数值作为预设力度值,或用户可以从力度值设置界面提供的备选数值中,选定一个数值作为预设力度值。当然,所述预设力度值或者也可以由终端设置,如终端存储有默认的预设力度值。
例如,所述预设屏幕区域坐标范围值即为预设屏幕区域的坐标范围值。例如,所述预设屏幕区域可以由用户设置,如终端提供屏幕区域设置界面,以供用户设置预设屏幕区域的数目和位置,用户可以在屏幕区域设置界面手动将终端屏幕划分为一个或多个区域,从而获得一个或多个预设屏幕区域,如图2所示,将终端屏幕划分为五个区域,获得五个预设屏幕区域分 别为:A1、A2、A3、A4和A5。当然,所述预设屏幕区域或者也可以由终端设置,如终端默认提供如图2所示的五个预设屏幕区域。
例如,所述预设屏幕区域可以根据终端APP的控制按钮的显示位置来设置。如若终端APP的控制按钮通常显示在终端屏幕的中部,而不显示在终端屏幕的上部及下部,在这种情况下即可将预设屏幕区域,设置在终端屏幕的上部或下部。如图3所示,若在终端屏幕被解锁后,终端的APP的启动按钮,即APP的图标301,通常都显示在终端屏幕的中部302而不显示在终端屏幕的上部303及下部304,在这种情况下即可将预设屏幕区域,设置在终端屏幕的上部303或下部304。从而可以避免将预设屏幕区域设置在终端APP控制按钮的显示位置,防止在终端屏幕解锁时,为了控制音频的播放而实施的按压终端屏幕动作控制了终端APP。
例如,所述预设屏幕区域与音频播放控制操作的映射表,可以由用户设置,如终端提供音频播放控制操作设置界面,在用户完成预设屏幕区域的数目和位置的设置后,终端可以显示该音频播放控制操作设置界面,用户可以在该界面为已设置的预设屏幕区域选择相关联的音频播放控制操作,选择完成后终端自动根据用户的选择生成相应的映射表,即预设屏幕区域与音频播放控制操作的映射表。
如沿用如图2所示的例子,用户设置的预设屏幕区域分别为A1、A2、A3、A4和A5,音频播放控制操作可以包括播放操作、暂停操作、播放模式切换操作、音量调节操作、快进操作、快退操作、上一首调节操作及下一首调节操作等,用户选择的音频播放控制操作可以为:A1上一首调节操作,A2下一首调节操作,A3快进操作,A4快退操作,A5暂停操作和播放操作;选择完成后终端自动根据用户的选择生成相应的映射表,即预设屏幕区域与音频播放控制操作的映射表。其中,一个预设屏幕区域可以与一个或两个音频播放控制操作相关联,如A5与暂停操作和播放操作相关联。
例如,所述预设屏幕区域与音频播放控制操作的映射表,或者可以由终端设置,如终端默认提供有如图2所示的五个预设屏幕区域,并保存有相应的预设屏幕区域与音频播放控制操作的映射表。
步骤602:在终端屏幕处于解锁状态或未解锁状态时,均检测是否有按压终端屏幕动作发生;在按压终端屏幕动作发生时,执行步骤603,否则执行步骤602。
例如,本步骤可以包括,在终端屏幕处于解锁状态或未解锁状态时,终端均采集终端屏幕的压力值;在终端屏幕的压力值从零变化为非零时,终端确认有按压终端屏幕动作发生,否则,终端确认没有按压终端屏幕动作发生。
其中,所述在终端屏幕处于解锁状态或未解锁状态时,终端均采集终端屏幕的压力值,可以包括,在终端屏幕处于解锁状态或未解锁状态时,终端的压力传感器均测量终端屏幕的压力,获得终端屏幕的压力值;在终端屏幕处于解锁状态或未解锁状态时,终端的处理器均读取该压力传感器测量获得的终端屏幕的压力值。如在终端开机后,终端的压力传感器一直处于运行状态,从而无论终端屏幕处于解锁状态还是未解锁状态,终端的压力传感器均可以测量获得终端屏幕的压力值。
步骤603:获取按压终端屏幕动作的按压力度值及按压位置坐标值。
例如,本步骤可以包括,在确认有按压终端屏幕动作发生时,终端开始记录其采集到的终端屏幕的压力值;在确认有按压终端屏幕动作发生时,终端读取并记录压力值从零变为非零的终端屏幕的位置坐标值;在终端屏幕的压力值从非零变化为零时,终端停止记录其采集到的终端屏幕的压力值;终端计算已记录的压力值的平均值,并将该平均值作为按压终端屏幕动作的按压力度值,或者,终端从已记录的压力值中确定出最大的压力值,并将该最大的压力值作为按压终端屏幕动作的按压力度值。
步骤604:确认按压终端屏幕动作的按压力度值是否小于预设力度值;在按压力度值不小于预设力度值时,执行步骤605,否则执行步骤602。
如终端被放置在用户所穿衣物的口袋中,终端被晃动从而使得终端屏幕触碰到其它物体,终端屏幕接收到外界的按压动作,且该按压动作的力度值小于预设力度值,终端不执行音频播放控制操作,返回执行步骤602。
步骤605:确认按压终端屏幕动作的按压位置坐标值是否在任意一个预设屏幕区域坐标范围值内;在按压位置坐标值在任意一个预设屏幕区域坐标范围值内时,执行步骤606,否则执行步骤602。
如沿用上述例子,在用户向终端屏幕实施按压终端屏幕动作,该按压终端屏幕动作的按压力度值大于预设力度值,但该按压终端屏幕动作的按压位置坐标不在A1、A2、A3、A4和A5任意一个预设屏幕区域坐标范围值内,终端不执行音频播放控制操作,返回执行步骤602。
步骤606:读取预设屏幕区域与音频播放控制操作的映射表,并从该映射表中查找与按压位置坐标值所在的预设屏幕区域相关联的音频播放控制操作。在查找出音频播放控制操作时,执行步骤607,否则执行步骤602。
其中,该预设屏幕区域与音频播放控制操作的映射表中,对应预设屏幕区域记录了音频播放控制操作。
如按压位置坐标值所在的预设屏幕区域为A1,本步骤可以为,终端读取预设屏幕区域与音频播放控制操作的映射表,并从该映射表中查找与预设屏幕区域A1相关联的音频播放控制操作,查找出的音频播放控制操作为上一首调节操作。
步骤607:执行查找出的音频播放控制操作。
例如,本步骤可以包括,终端的处理器向终端的音频应用发送携带有查找出的音频播放控制操作的控制消息;终端的音频应用根据该控制消息执行查找出的音频播放控制操作。其中,所述音频应用即为音频APP。
如查找出的音频播放控制操作为上一首调节操作,终端的处理器向终端的音频应用发送携带有查找出的上一首调节操作的控制消息;终端的音频应用根据该控制消息执行上一首调节操作。
本发明实施例还提供一种终端,所述终端设置有图4或图5任一附图示出的控制音频播放的装置。
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有可执行指令,所述可执行指令用于执行图1或图6任一附图示出的控制音频播放的方法。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、随机存取存储器(RAM,Random Access Memory)、只读存储器(ROM,Read-Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
或者,本发明上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、RAM、ROM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。

Claims (12)

  1. 一种控制音频播放的方法,所述方法包括:
    判断按压终端屏幕动作的按压力度及按压位置是否满足预设条件;
    在所述按压力度及按压位置满足预设条件时,执行音频播放控制操作。
  2. 根据权利要求1所述的方法,其中,所述判断按压终端屏幕动作的按压力度及按压位置是否满足预设条件,包括:
    在终端屏幕处于解锁状态或未解锁状态时,获取按压终端屏幕动作的按压力度值及按压位置坐标值;
    判断所述按压力度值及按压位置坐标值是否满足所述预设条件。
  3. 根据权利要求2所述的方法,其中,所述判断所述按压力度值及按压位置坐标值是否满足预设条件,包括:
    判断所述按压力度值是否小于预设力度值;
    在所述按压力度值不小于所述预设力度值时,判断所述按压位置坐标值是否在任意一个预设屏幕区域坐标范围值内;
    在所述按压位置坐标值在任意一个所述预设屏幕区域坐标范围值内时,确认所述按压力度值及按压位置坐标值满足所述预设条件。
  4. 根据权利要求1所述的方法,其中,所述在所述按压力度及按压位置满足预设条件时,执行音频播放控制操作,包括:
    在所述按压力度及按压位置满足预设条件时,查找与所述按压位置相关联的音频播放控制操作;
    在查找出与所述按压位置相关联的音频播放控制操作时,执行查找出的所述音频播放控制操作。
  5. 根据权利要求4所述的方法,其中,所述在所述按压力度及按压位置满足预设条件时,查找与所述按压位置相关联的音频播放控制操作,包括:
    在按压力度值不小于预设力度值,且按压位置坐标值在任意一个预设屏幕区域坐标范围值内时,读取预设屏幕区域与音频播放控制操作的映射表;
    从所述映射表中查找与所述按压位置坐标值所在的预设屏幕区域相关联的音频播放控制操作。
  6. 一种控制音频播放的装置,所述装置包括:
    判断模块,配置为判断按压终端屏幕动作的按压力度及按压位置是否满足预设条件;
    执行模块,配置为在所述按压力度及按压位置满足预设条件时,执行音频播放控制操作。
  7. 根据权利要求6所述的装置,其中,所述判断模块,还配置为在终端屏幕处于解锁状态或未解锁状态时,获取按压终端屏幕动作的按压力度值及按压位置坐标值;判断所述按压力度值及按压位置坐标值是否满足预设条件。
  8. 根据权利要求7所述的装置,其中,所述判断模块,还配置为判断所述按压力度值是否小于预设力度值;在所述按压力度值不小于预设力度值时,判断所述按压位置坐标值是否在任意一个预设屏幕区域坐标范围值内;在所述按压位置坐标值在任意一个所述预设屏幕区域坐标范围值内时,确认所述按压力度值及按压位置坐标值满足预设条件。
  9. 根据权利要求6所述的装置,其中,所述执行模块,还配置为在所述按压力度及按压位置满足预设条件时,查找与所述按压位置相关联的音频播放控制操作;在查找出与所述按压位置相关联的音频播放控制操作时,执行查找出的所述音频播放控制操作。
  10. 根据权利要求9所述的装置,其中,所述执行模块,还配置为在在按压力度值不小于预设力度值,且按压位置坐标值在任意一个所述预设 屏幕区域坐标范围值内时,读取预设屏幕区域与音频播放控制操作的映射表;从所述映射表中查找与所述按压位置坐标值所在的预设屏幕区域相关联的音频播放控制操作。
  11. 一种终端,所述终端设置有权利要求6至10任一项所述的控制音频播放的装置。
  12. 一种计算机存储介质,所述计算机存储介质中存储有可执行指令,所述可执行指令用于执行权利要求1至5任一项所述的控制音频播放的方法。
PCT/CN2016/074313 2015-11-25 2016-02-23 控制音频播放的方法及装置、终端、计算机存储介质 WO2017088311A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510833731.9 2015-11-25
CN201510833731.9A CN106802760A (zh) 2015-11-25 2015-11-25 一种控制音频播放的方法及装置

Publications (1)

Publication Number Publication Date
WO2017088311A1 true WO2017088311A1 (zh) 2017-06-01

Family

ID=58762896

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/074313 WO2017088311A1 (zh) 2015-11-25 2016-02-23 控制音频播放的方法及装置、终端、计算机存储介质

Country Status (2)

Country Link
CN (1) CN106802760A (zh)
WO (1) WO2017088311A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111778678A (zh) * 2019-03-18 2020-10-16 青岛海尔洗衣机有限公司 衣物处理设备及其控制方法

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108279797A (zh) * 2017-12-14 2018-07-13 芯海科技(深圳)股份有限公司 一种单压阻式传感器在移动终端实现多功能的方法
CN108170357A (zh) * 2017-12-26 2018-06-15 上海展扬通信技术有限公司 一种音乐播放控制方法及终端

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002148A (zh) * 2012-11-28 2013-03-27 广东欧珀移动通信有限公司 基于移动终端在灭屏模式下的音乐切换方法及移动终端
CN104951236A (zh) * 2015-07-16 2015-09-30 努比亚技术有限公司 一种终端设备壁纸的配置方法及相应终端设备
CN105159492A (zh) * 2015-08-27 2015-12-16 广东欧珀移动通信有限公司 一种音乐播放控制方法及终端设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002148A (zh) * 2012-11-28 2013-03-27 广东欧珀移动通信有限公司 基于移动终端在灭屏模式下的音乐切换方法及移动终端
CN104951236A (zh) * 2015-07-16 2015-09-30 努比亚技术有限公司 一种终端设备壁纸的配置方法及相应终端设备
CN105159492A (zh) * 2015-08-27 2015-12-16 广东欧珀移动通信有限公司 一种音乐播放控制方法及终端设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111778678A (zh) * 2019-03-18 2020-10-16 青岛海尔洗衣机有限公司 衣物处理设备及其控制方法
CN111778678B (zh) * 2019-03-18 2023-08-08 青岛海尔洗衣机有限公司 衣物处理设备及其控制方法

Also Published As

Publication number Publication date
CN106802760A (zh) 2017-06-06

Similar Documents

Publication Publication Date Title
US10649720B2 (en) Sound effect configuration method and system and related device
US10642366B2 (en) Proximity sensor-based interactions
US8855966B2 (en) Electronic device having proximity sensor and method for controlling the same
US9535499B2 (en) Method and display apparatus for providing content
WO2018076380A1 (zh) 在电子设备中生成视频缩略图的方法及电子设备
CN104598111B (zh) 切换显示模式的方法及装置
US9984153B2 (en) Electronic device and music play system and method
US9521234B2 (en) Information processing apparatus, display control method and recording medium
WO2017032016A1 (zh) 一种界面操作方法及电子终端
KR20130058752A (ko) 근접 기반 입력을 위한 장치 및 방법
KR101997034B1 (ko) 인터페이스 방법 및 장치
WO2017088311A1 (zh) 控制音频播放的方法及装置、终端、计算机存储介质
WO2015131590A1 (zh) 一种控制黑屏手势处理的方法及终端
JP2009536387A (ja) ユーザにメニューオプションを選択することを可能にする方法及び電子装置
US8842087B2 (en) Method for processing touch signal and electronic device using the same
WO2006080787A1 (en) Apparatus and method for searching and displaying data
JP2013226257A (ja) 情報提供システム、情報提供方法、および電子機器
US10849565B2 (en) Schemes for obtaining estimation of physiological feature of specific user, establishing profile of physiological feature of specific user, and for establishing/managing/grading profiles of different users
CN107479444A (zh) 保温方法及装置
WO2018107803A1 (zh) 一种语言切换方法及装置
JP5912940B2 (ja) 評価装置、評価方法、プログラム、ならびに、システム
JP5343876B2 (ja) 電子機器、電子機器の制御方法及びコンピュータプログラム
US11630538B2 (en) Electronic device and touch method thereof
KR101545702B1 (ko) 감지 데이터에 기반하여 동작하는 휴대 단말 및 그 동작 방법
KR101789095B1 (ko) 정보 입력 장치의 조작성 평가 방법 및 이를 이용한 시스템

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: 16867540

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: 16867540

Country of ref document: EP

Kind code of ref document: A1