Movatterモバイル変換


[0]ホーム

URL:


CN108769387A - Application control method and related equipment - Google Patents

Application control method and related equipment
Download PDF

Info

Publication number
CN108769387A
CN108769387ACN201810415538.7ACN201810415538ACN108769387ACN 108769387 ACN108769387 ACN 108769387ACN 201810415538 ACN201810415538 ACN 201810415538ACN 108769387 ACN108769387 ACN 108769387A
Authority
CN
China
Prior art keywords
state
audio
control
wearing
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810415538.7A
Other languages
Chinese (zh)
Inventor
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810415538.7ApriorityCriticalpatent/CN108769387A/en
Publication of CN108769387ApublicationCriticalpatent/CN108769387A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The application discloses an application control method and related equipment, which are applied to an electronic device, wherein the electronic device comprises a control circuit, the electronic device is connected with wearable equipment, and a target application supporting audio playing is installed in the electronic device, wherein: the wearable device comprises a control circuit and a display circuit, wherein the control circuit is used for determining a first state of a target application and a second state of the wearable device, the first state comprises an audio playing state or an audio playing stopping state, and the second state comprises a state of being converted from a wearing state to a non-wearing state or a state of being converted from a non-wearing state to a wearing state; the control circuit is further used for determining a first control instruction corresponding to the first state and the second state, and executing the first control instruction, wherein the first control instruction is used for controlling the target application to play audio, keep audio playing or stop audio playing. By adopting the method and the device, the convenience of application control can be improved.

Description

Translated fromChinese
应用控制方法及相关设备Application control method and related equipment

技术领域technical field

本申请涉及电子技术领域,尤其涉及一种应用控制方法及相关设备。The present application relates to the field of electronic technology, and in particular to an application control method and related equipment.

背景技术Background technique

当前随着智能手机等电子装置的日益普及,智能手机已成为智能手机用户生活中密不可分的一部分。用户可通过智能手机发送信息、通话、浏览网页等。可穿戴设备是直接穿在身上,或是整合到用户的衣服或配件的一种便携式设备。可穿戴设备可以是无线耳机、智能手表、眼镜、耳环、衣扣、头盔等。可穿戴设备可通过采用蓝牙等无线技术与电子装置连接,来给用户输出音频。Currently, with the increasing popularity of electronic devices such as smart phones, smart phones have become an inseparable part of the lives of smart phone users. Users can send messages, make calls, and browse the web through their smartphones. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothing or accessories. Wearable devices can be wireless earphones, smart watches, glasses, earrings, buckles, helmets, etc. Wearable devices can output audio to users by connecting with electronic devices using wireless technologies such as Bluetooth.

发明内容Contents of the invention

本申请实施例提供一种应用控制方法及相关设备,用于提升了应用控制的便捷性。Embodiments of the present application provide an application control method and related equipment, which are used to improve the convenience of application control.

第一方面,本申请实施例提供一种电子装置,所述电子装置包括控制电路,所述电子装置与可穿戴设备连接,所述电子装置中安装支持音频播放的目标应用,其中:In the first aspect, an embodiment of the present application provides an electronic device, the electronic device includes a control circuit, the electronic device is connected to a wearable device, and a target application supporting audio playback is installed in the electronic device, wherein:

所述控制电路,用于确定所述目标应用的第一状态和所述可穿戴设备的第二状态,所述第一状态包括音频播放状态或音频停止播放状态,所述第二状态包括从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态;The control circuit is configured to determine a first state of the target application and a second state of the wearable device, the first state includes an audio playing state or an audio stop playing state, and the second state includes wearing The state changes to the non-wearing state or from the non-wearing state to the wearing state;

所述控制电路,还用于确定所述第一状态和所述第二状态对应的第一控制指令,以及执行所述第一控制指令,所述第一控制指令用于控制所述目标应用播放音频、保持音频播放或停止音频播放。The control circuit is further configured to determine a first control instruction corresponding to the first state and the second state, and execute the first control instruction, the first control instruction is used to control the playing of the target application Audio, keep audio playing, or stop audio playing.

第二方面,本申请实施例提供一种应用控制方法,应用于电子装置,所述电子装置与可穿戴设备连接,所述方法包括:In a second aspect, an embodiment of the present application provides an application control method applied to an electronic device connected to a wearable device, and the method includes:

确定目标应用的第一状态和所述可穿戴设备的第二状态,所述目标应用支持音频播放,所述第一状态包括音频播放状态或音频停止播放状态,所述第二状态包括从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态;Determine the first state of the target application and the second state of the wearable device, the target application supports audio playback, the first state includes the audio playing state or the audio stop playing state, and the second state includes the wearing state Transition to a non-wearing state or from a non-wearing state to a wearing state;

确定所述第一状态和所述第二状态对应的第一控制指令,以及执行所述第一控制指令,所述第一控制指令用于控制所述目标应用播放音频、保持音频播放或停止音频播放。determining a first control instruction corresponding to the first state and the second state, and executing the first control instruction, where the first control instruction is used to control the target application to play audio, keep audio playing, or stop audio play.

第三方面,本申请实施例提供一种应用控制装置,应用于电子装置,所述电子装置与可穿戴设备连接,所述电子装置中安装支持音频播放的目标应用,所述应用控制装置包括确定单元和执行单元,其中:In the third aspect, the embodiment of the present application provides an application control device, which is applied to an electronic device, the electronic device is connected to a wearable device, and a target application supporting audio playback is installed in the electronic device, and the application control device includes a determination unit and execution unit, where:

所述确定单元,用于确定所述目标应用的第一状态和所述可穿戴设备的第二状态,所述第一状态包括音频播放状态或音频停止播放状态,所述第二状态包括从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态;The determining unit is configured to determine a first state of the target application and a second state of the wearable device, the first state includes an audio playing state or an audio stop playing state, and the second state includes wearing The state changes to the non-wearing state or from the non-wearing state to the wearing state;

所述确定单元,还用于确定所述第一状态和所述第二状态对应的第一控制指令,所述第一控制指令用于控制所述目标应用播放音频、保持音频播放或停止音频播放;The determining unit is further configured to determine a first control instruction corresponding to the first state and the second state, and the first control instruction is used to control the target application to play audio, keep audio playing, or stop audio playing ;

所述执行单元,用于执行所述第一控制指令。The execution unit is configured to execute the first control instruction.

第四方面,本申请实施例提供一种电子装置,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第二方面任一方法中的步骤的指令。In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be processed by the above The above program includes instructions for executing the steps in any method of the second aspect of the embodiment of the present application.

第五方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第二方面任一方法中所描述的部分或全部步骤。In the fifth aspect, the embodiment of the present application provides a computer-readable storage medium, wherein the above-mentioned computer-readable storage medium stores a computer program for electronic data exchange, wherein the above-mentioned computer program enables the computer to execute Part or all of the steps described in any method of the two aspects.

第六方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第二方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a sixth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable the computer to execute the program as implemented in the present application. For example, some or all of the steps described in any method of the second aspect. The computer program product may be a software installation package.

可以看出,在本申请实施例中,电子装置根据应用的第一状态和可穿戴设备的第二状态来控制应用播放音频或停止播放音频,第一状态包括音频播放状态或音频停止播放状态,第二状态从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态,无需用户手动控制应用播放音频或停止播放音频,提升了应用控制的便捷性,进而提升了用户体验。It can be seen that in the embodiment of the present application, the electronic device controls the application to play audio or stop playing audio according to the first state of the application and the second state of the wearable device, the first state includes the audio playing state or the audio stopping state, The second state changes from the wearing state to the non-wearing state or from the non-wearing state to the wearing state, without the need for the user to manually control the application to play audio or stop playing audio, which improves the convenience of application control and thus improves the user experience.

本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These or other aspects of the present application will be more concise and understandable in the description of the following embodiments.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本申请实施例提供的一种应用控制系统的结构示意图;FIG. 1 is a schematic structural diagram of an application control system provided by an embodiment of the present application;

图2是本申请实施例提供的一种可穿戴设备的结构示意图;Fig. 2 is a schematic structural diagram of a wearable device provided by an embodiment of the present application;

图3是本申请实施例提供的一种电子装置的结构示意图;FIG. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

图4是本申请实施例提供的一种应用控制方法的流程示意图;FIG. 4 is a schematic flowchart of an application control method provided in an embodiment of the present application;

图5是本申请实施例提供的另一种应用控制方法的流程示意图;Fig. 5 is a schematic flowchart of another application control method provided by the embodiment of the present application;

图6是本申请实施例提供的另一种电子装置的结构示意图;FIG. 6 is a schematic structural diagram of another electronic device provided by an embodiment of the present application;

图7是本申请实施例提供的一种应用控制装置的结构示意图。Fig. 7 is a schematic structural diagram of an application control device provided by an embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is an embodiment of a part of the application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

以下分别进行详细说明。Each will be described in detail below.

本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order . Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or apparatuses.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.

下面对本申请实施例进行详细介绍。The following describes the embodiments of the present application in detail.

请参阅图1,图1是本申请实施例提供了一种应用控制系统的结构示意图,在本申请实施例中,该应用控制系统的结构示意图包括:电子装置和可穿戴设备。其中,可穿戴设备通过蓝牙、红外等无线技术与电子装置连接。Please refer to FIG. 1 . FIG. 1 is a schematic structural diagram of an application control system provided by an embodiment of the present application. In the embodiment of the present application, the structural schematic diagram of the application control system includes: an electronic device and a wearable device. Among them, the wearable device is connected with the electronic device through wireless technologies such as Bluetooth and infrared.

其中,电子装置可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(UserEquipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。Among them, the electronic devices may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to wireless modems, as well as various forms of user equipment (UserEquipment, UE), mobile station (Mobile Station, MS), terminal equipment (terminal device) and so on.

其中,可穿戴设备可以包括无线耳机、智能手环、智能耳钉、智能纽扣、智能戒指、智能眼镜、头盔等,可穿戴设备具有接听来电、音频播放、音频采集、控制电子装置等功能。Among them, wearable devices can include wireless earphones, smart bracelets, smart earrings, smart buttons, smart rings, smart glasses, helmets, etc., and wearable devices have functions such as answering incoming calls, audio playback, audio collection, and control of electronic devices.

本申请实施例的控制系统的工作原理为:电子装置先确定安装在电子装置中的目标应用的第一状态和可穿戴设备的第二状态,其中,目标应用支持音频播放,第一状态包括音频播放状态或音频停止播放状态,第二状态包括从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态;然后电子装置确定该第一状态和该第二状态对应的第一控制指令,以及执行所述第一控制指令,该第一控制指令用于控制目标应用播放音频、保持音频播放或停止音频播放。The working principle of the control system in the embodiment of the present application is: the electronic device first determines the first state of the target application installed in the electronic device and the second state of the wearable device, wherein the target application supports audio playback, and the first state includes audio The playing state or the audio stop playing state, the second state includes changing from the wearing state to the non-wearing state or from the non-wearing state to the wearing state; then the electronic device determines the first control instruction corresponding to the first state and the second state, And executing the first control instruction, where the first control instruction is used to control the target application to play audio, keep playing audio or stop playing audio.

目前,控制应用播放音频或是停止播放音频通常是用户手动进行控制的,操作麻烦。而在本申请中,控制应用播放音频或是停止播放音频是电子装置根据应用的第一状态和可穿戴设备的第二状态进行控制的,无需用户手动控制应用播放音频或停止播放音频,提升了应用控制的便捷性,进而提升了用户体验。At present, controlling the application to play audio or stop playing audio is usually manually controlled by the user, and the operation is cumbersome. However, in this application, controlling the application to play audio or stop playing audio is controlled by the electronic device according to the first state of the application and the second state of the wearable device. There is no need for the user to manually control the application to play audio or stop playing audio, which improves the The convenience of application control improves the user experience.

基于上述系统,请参阅图2,图2是本申请实施例提供了一种可穿戴设备200的结构示意图,可穿戴设备200包括至少一个佩戴设备,假设可穿戴设备为无线耳机,那么至少一个佩戴设备可以是一对耳塞。每个佩戴装置均包括控制电路201和输入-输出电路202。Based on the above system, please refer to FIG. 2. FIG. 2 is a schematic structural diagram of a wearable device 200 provided by an embodiment of the present application. The wearable device 200 includes at least one wearable device. Assuming that the wearable device is a wireless headset, then at least one wearable The device may be a pair of earbuds. Each wearing device includes a control circuit 201 and an input-output circuit 202 .

其中,控制电路可以包括存储和处理电路。该存储和处理电路可以存储器,例如硬盘驱动存储器,非易失性存储器(例如闪存或用于形成固态驱动器的其它电子可编程只读存储器等),易失性存储器(例如静态或动态随机存取存储器等)等,本申请实施例不作限制。存储和处理电路中的处理电路可以用于控制可穿戴设备200的运转。该处理电路可以基于一个或多个微处理器,微控制器,数字信号处理器,基带处理器,功率管理单元,音频编解码器芯片,专用集成电路,显示驱动器集成电路等来实现。Wherein, the control circuit may include storage and processing circuits. The storage and processing circuitry can be memory, such as hard disk drive memory, non-volatile memory (such as flash memory or other electronically programmable read-only memory used to form solid-state drives, etc.), volatile memory (such as static or dynamic random access memory, etc.), etc., are not limited in this embodiment of the present application. Processing circuitry in the storage and processing circuitry may be used to control the operation of wearable device 200 . The processing circuit may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.

存储和处理电路可用于运行可穿戴设备200中的软件,例如传感器开关应用程序、建立与电子装置的通信连接应用程序、断开与电子装置的通信连接应用程序、与电子装置的通信应用程序、音频播放应用程序等。这些软件可以用于执行一些控制操作,例如,启动传感器,比如启动手势传感器、启动压力传感器等,向电子装置发送信息,以及可穿戴设备200中的其它功能等,本申请实施例不作限制。The storage and processing circuitry can be used to run software in the wearable device 200, such as a sensor switch application, an application for establishing a communication connection with an electronic device, an application for disconnecting a communication connection with an electronic device, an application for communicating with an electronic device, Audio playback applications, etc. These software can be used to perform some control operations, for example, activate sensors, such as activate gesture sensors, activate pressure sensors, etc., send information to electronic devices, and other functions in the wearable device 200, etc., which are not limited in the embodiment of the present application.

其中,输入-输出电路。输入-输出电路可用于使可穿戴设备200实现数据的输入和输出,即允许可穿戴设备200从外部设备接收数据和也允许可穿戴设备200将数据从可穿戴设备200输出至外部设备。输入-输出电路可以进一步包括传感器。传感器可以包括手势传感器、压力传感器、加速度传感器、红外接近传感器、电容传感器、心率传感器、体温传感器、敲击信号获取装置和其它传感器等。敲击信号获取装置包括以下至少一种:电容传感器、压力传感器、摄像头等等。Among them, the input-output circuit. The input-output circuit can be used to enable the wearable device 200 to realize data input and output, that is, allow the wearable device 200 to receive data from external devices and also allow the wearable device 200 to output data from the wearable device 200 to external devices. The input-output circuit may further include sensors. The sensors may include gesture sensors, pressure sensors, acceleration sensors, infrared proximity sensors, capacitive sensors, heart rate sensors, body temperature sensors, tapping signal acquisition devices, and other sensors. The knocking signal acquisition device includes at least one of the following: a capacitance sensor, a pressure sensor, a camera and the like.

输入-输出电路可以进一步包括音频组件。音频组件可以用于为可穿戴设备200提供音频输入和输出功能。可穿戴设备200中的音频组件可以包括扬声器,麦克风,蜂鸣器,音调发生器以及其它用于产生和检测声音的组件。The input-output circuitry may further include audio components. The audio component can be used to provide audio input and output functions for the wearable device 200 . Audio components in wearable device 200 may include speakers, microphones, buzzers, tone generators, and other components for generating and detecting sounds.

输入-输出电路可以进一步包括通信电路可以用于为可穿戴设备200提供与外部设备通信的能力。输入-输出电路可以包括模拟和数字输入-输出接口电路,和基于射频信号和/或光信号的无线通信电路。输入-输出电路中的无线通信电路可以包括射频收发器电路、功率放大器电路、低噪声放大器、开关和滤波器。举例来说,输入-输出电路中的无线通信电路可以包括用于通过发射和接收近场耦合电磁信号来支持近场通信(Near FieldCommunication,NFC)的电路。例如,输入-输出电路可以包括近场通信天线和近场通信收发器。The input-output circuitry may further include communication circuitry that may be used to provide the wearable device 200 with the ability to communicate with external devices. Input-output circuitry may include analog and digital input-output interface circuitry, and wireless communication circuitry based on radio frequency signals and/or optical signals. The wireless communication circuitry in the input-output circuitry may include radio frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches and filters. For example, the wireless communication circuit in the input-output circuit may include a circuit for supporting near field communication (Near Field Communication, NFC) by transmitting and receiving near field coupled electromagnetic signals. For example, input-output circuitry may include near field communication antennas and near field communication transceivers.

输入-输出电路可以进一步包括其它输入-输出单元。输入-输出单元可以包括按钮,操纵杆,点击轮,滚动轮,触摸板,小键盘,键盘,照相机,发光二极管和其它状态指示器等。The input-output circuit may further include other input-output units. Input-output elements may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, and the like.

其中,可穿戴设备200还可以进一步包括电池(未图示),电池用于给可穿戴设备200提供电能。Wherein, the wearable device 200 may further include a battery (not shown), and the battery is used to provide power to the wearable device 200 .

基于上述系统,请参阅图3,图3是本申请实施例提供了一种电子装置300的结构示意图,电子装置300包括控制电路301和输入-输出电路302,输入输出电路302与控制电路301连接,其中:Based on the above system, please refer to FIG. 3. FIG. 3 is a schematic structural diagram of an electronic device 300 provided by an embodiment of the present application. The electronic device 300 includes a control circuit 301 and an input-output circuit 302, and the input-output circuit 302 is connected to the control circuit 301. ,in:

控制电路301,用于确定所述目标应用的第一状态和所述可穿戴设备的第二状态,所述第一状态包括音频播放状态或音频停止播放状态,所述第二状态包括从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态;The control circuit 301 is configured to determine a first state of the target application and a second state of the wearable device, the first state includes an audio playing state or an audio stop playing state, and the second state includes a wearing state Transition to a non-wearing state or from a non-wearing state to a wearing state;

控制电路302,还用于确定所述第一状态和所述第二状态对应的第一控制指令,以及执行所述第一控制指令,所述第一控制指令用于控制所述目标应用播放音频、保持音频播放或停止音频播放。The control circuit 302 is further configured to determine a first control instruction corresponding to the first state and the second state, and execute the first control instruction, where the first control instruction is used to control the target application to play audio , keep the audio playing or stop the audio playing.

其中,控制电路301可以包括存储和处理电路。该存储和处理电路可以存储器,例如硬盘驱动存储器,非易失性存储器(例如闪存或用于形成固态驱动器的其它电子可编程只读存储器等),易失性存储器(例如静态或动态随机存取存储器等)等,本申请实施例不作限制。存储和处理电路中的处理电路可以用于控制电子装置300的运转。该处理电路可以基于一个或多个微处理器,微控制器,数字信号处理器,基带处理器,功率管理单元,音频编解码器芯片,专用集成电路,显示驱动器集成电路等来实现。Wherein, the control circuit 301 may include storage and processing circuits. The storage and processing circuitry can be memory, such as hard disk drive memory, non-volatile memory (such as flash memory or other electronically programmable read-only memory used to form solid-state drives, etc.), volatile memory (such as static or dynamic random access memory, etc.), etc., are not limited in this embodiment of the present application. Processing circuitry in the storage and processing circuitry may be used to control the operation of electronic device 300 . The processing circuit may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.

存储和处理电路可用于运行电子装置300中的软件,例如互联网浏览应用程序,互联网协议语音(Voice over Internet Protocol,VOIP)电话呼叫应用程序,电子邮件应用程序,媒体播放应用程序,操作系统功能等。这些软件可以用于执行一些控制操作,例如,基于照相机的图像采集,基于环境光传感器的环境光测量,基于接近传感器的接近传感器测量,基于诸如发光二极管的状态指示灯等状态指示器实现的信息显示功能,基于触摸传感器的触摸事件检测,与在多个(例如分层的)显示器上显示信息相关联的功能,与执行无线通信功能相关联的操作,与收集和产生音频信号相关联的操作,与收集和处理按钮按压事件数据相关联的控制操作,以及电子装置300中的其它功能等,本申请实施例不作限制。The storage and processing circuits can be used to run software in the electronic device 300, such as Internet browsing applications, Voice over Internet Protocol (Voice over Internet Protocol, VOIP) telephone call applications, email applications, media playback applications, operating system functions, etc. . These software can be used to perform control operations such as camera based image acquisition, ambient light measurement based on ambient light sensor, proximity sensor based measurement based on proximity sensor, information based on status indicators such as status indicators such as LEDs Display functions, touch sensor based touch event detection, functions associated with displaying information on multiple (e.g. layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals , control operations associated with collecting and processing button press event data, and other functions in the electronic device 300 are not limited by this embodiment of the present application.

其中,输入-输出电路302可用于使电子装置300实现数据的输入和输出,即允许电子装置300从外部设备接收数据和也允许电子装置300将数据从电子装置300输出至外部设备。输入-输出电路302可以进一步包括传感器。传感器可以包括环境光传感器,基于光和电容的接近传感器,触摸传感器(例如,基于光触摸传感器和/或电容式触摸传感器,其中,触摸传感器可以是触控显示屏的一部分,也可以作为一个触摸传感器结构独立使用),加速度传感器,和其它传感器等。Among them, the input-output circuit 302 can be used to enable the electronic device 300 to realize data input and output, that is, allow the electronic device 300 to receive data from external devices and also allow the electronic device 300 to output data from the electronic device 300 to external devices. Input-output circuitry 302 may further include sensors. Sensors can include ambient light sensors, optical and capacitive based proximity sensors, touch sensors (e.g., optical based touch sensors and/or capacitive touch sensors, where the touch sensor can be part of the touch display or can be used as a touch sensor. The sensor structure is used independently), acceleration sensor, and other sensors, etc.

输入-输出电路302还可以包括一个或多个显示器,例如显示器。显示器可以包括液晶显示器,有机发光二极管显示器,电子墨水显示器,等离子显示器,使用其它显示技术的显示器中一种或者几种的组合。显示器可以包括触摸传感器阵列(即,显示器可以是触控显示屏)。触摸传感器可以是由透明的触摸传感器电极(例如氧化铟锡(ITO)电极)阵列形成的电容式触摸传感器,或者可以是使用其它触摸技术形成的触摸传感器,例如音波触控,压敏触摸,电阻触摸,光学触摸等,本申请实施例不作限制。Input-output circuitry 302 may also include one or more displays, such as displays. The display may include one or a combination of liquid crystal displays, organic light emitting diode displays, electronic ink displays, plasma displays, and displays using other display technologies. The display may include an array of touch sensors (ie, the display may be a touchscreen display). The touch sensor may be a capacitive touch sensor formed from an array of transparent touch sensor electrodes such as indium tin oxide (ITO) electrodes, or may be a touch sensor formed using other touch technologies such as acoustic touch, pressure sensitive touch, resistive touch Touch, optical touch, etc. are not limited in this embodiment of the application.

输入-输出电路302还可以进一步包括音频组件。音频组件可以用于为电子装置300提供音频输入和输出功能。电子装置300中的音频组件可以包括扬声器,麦克风,蜂鸣器,音调发生器以及其它用于产生和检测声音的组件。Input-output circuitry 302 may further include audio components. The audio component may be used to provide audio input and output functions for the electronic device 300 . Audio components in electronic device 300 may include speakers, microphones, buzzers, tone generators, and other components for generating and detecting sounds.

输入-输出电路302还可以进一步包括通信电路可以用于为电子装置300提供与外部设备通信的能力。通信电路可以包括模拟和数字输入-输出接口电路,和基于射频信号和/或光信号的无线通信电路。通信电路中的无线通信电路可以包括射频收发器电路、功率放大器电路、低噪声放大器、开关、滤波器和天线。举例来说,通信电路中的无线通信电路可以包括用于通过发射和接收近场耦合电磁信号来支持近场通信(Near FieldCommunication,NFC)的电路。例如,通信电路可以包括近场通信天线和近场通信收发器。通信电路还可以包括蜂窝电话收发器和天线,无线局域网收发器电路和天线等。The input-output circuit 302 may further include a communication circuit for providing the electronic device 300 with the ability to communicate with external devices. The communication circuitry may include analog and digital input-output interface circuitry, and wireless communication circuitry based on radio frequency signals and/or optical signals. The wireless communication circuit in the communication circuit may include radio frequency transceiver circuit, power amplifier circuit, low noise amplifier, switch, filter and antenna. For example, the wireless communication circuit in the communication circuit may include a circuit for supporting near field communication (Near Field Communication, NFC) by transmitting and receiving near field coupled electromagnetic signals. For example, communication circuitry may include a near field communication antenna and a near field communication transceiver. Communications circuitry may also include cellular telephone transceiver circuitry and antennas, wireless local area network transceiver circuitry and antennas, and the like.

输入-输出电路302还可以进一步包括其它输入-输出单元。输入-输出单元可以包括按钮,操纵杆,点击轮,滚动轮,触摸板,小键盘,键盘,照相机,发光二极管和其它状态指示器等。The input-output circuit 302 may further include other input-output units. Input-output elements may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, and the like.

其中,电子装置300还可以进一步包括电池(未图示),电池用于给电子装置300提供电能。Wherein, the electronic device 300 may further include a battery (not shown), and the battery is used to provide electric energy for the electronic device 300 .

可以看出,在本申请实施例中,电子装置根据应用的第一状态和可穿戴设备的第二状态来控制应用播放音频或停止播放音频,第一状态包括音频播放状态或音频停止播放状态,第二状态从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态,无需用户手动控制应用播放音频或停止播放音频,提升了应用控制的便捷性,进而提升了用户体验。It can be seen that in the embodiment of the present application, the electronic device controls the application to play audio or stop playing audio according to the first state of the application and the second state of the wearable device, the first state includes the audio playing state or the audio stopping state, The second state changes from the wearing state to the non-wearing state or from the non-wearing state to the wearing state, without the need for the user to manually control the application to play audio or stop playing audio, which improves the convenience of application control and thus improves the user experience.

在本申请的一实施例中,控制电路301,还用于在所述第一控制指令用于控制所述目标应用播放音频或保持音频播放的情况下,确定所述第一状态和所述第二状态对应的第二控制指令,以及执行所述第二控制指令,所述第二控制指令用于控制音频从所述电子装置输出或从所述可穿戴设备输出。In an embodiment of the present application, the control circuit 301 is further configured to determine the first state and the second A second control instruction corresponding to two states, and executing the second control instruction, the second control instruction is used to control audio output from the electronic device or from the wearable device.

在本申请的一实施例中,所述目标应用为音视频播放应用,其中:In an embodiment of the present application, the target application is an audio and video playback application, wherein:

在所述第一状态为音频播放状态,所述第二状态为从佩戴状态转为非佩戴状态的情况下,所述第一控制指令用于控制所述目标应用停止播放音频;When the first state is an audio playing state, and the second state is from a wearing state to a non-wearing state, the first control instruction is used to control the target application to stop playing audio;

在所述第一状态为音频停止播放状态,所述目标应用上一次被停止播放音频的时刻距离当前时刻小于或等于设定值,所述第二状态为从非佩戴状态转为佩戴状态的情况下,所述第一控制指令用于控制所述目标应用播放音频。When the first state is the audio stop playing state, the time when the target application was stopped playing audio last time is less than or equal to the set value from the current time, and the second state is the situation of changing from the non-wearing state to the wearing state Next, the first control instruction is used to control the target application to play audio.

在本申请的一实施例中,所述第二控制指令用于控制音频从所述可穿戴设备输出。In an embodiment of the present application, the second control instruction is used to control audio output from the wearable device.

在本申请的一实施例中,所述目标应用为通话应用或游戏应用,其中:In an embodiment of the present application, the target application is a call application or a game application, wherein:

在所述第一状态为音频播放状态,所述第二状态为从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态的情况下,所述第一控制指令均用于控制所述目标应用保持音频播放。When the first state is an audio playing state and the second state is from a wearing state to a non-wearing state or from a non-wearing state to a wearing state, the first control instructions are used to control the The target application keeps the audio playing.

在本申请的一实施例中,在所述第一状态为音频播放状态,所述第二状态为从佩戴状态转为非佩戴状态的情况下,所述第二控制指令用于控制音频从所述电子装置输出;In an embodiment of the present application, when the first state is the audio playing state and the second state is from the wearing state to the non-wearing state, the second control instruction is used to control the audio from the output of the electronic device;

在所述第一状态为音频播放状态,所述第二状态为从非佩戴状态转为佩戴状态的情况下,所述第二控制指令用于控制音频从所述可穿戴设备输出。When the first state is an audio playing state, and the second state is changing from a non-wearing state to a wearing state, the second control instruction is used to control audio output from the wearable device.

需要说明的是,本实施例的具体实现过程可参见下述方法所述的具体实现过程,在此不再叙述。It should be noted that, for the specific implementation process of this embodiment, reference may be made to the specific implementation process described in the following methods, which will not be described here again.

请参阅图4,图4是本申请实施例提供的一种应用控制方法的流程示意图,应用于上述控制系统、上述可穿戴设备和上述电子装置,该方法包括:Please refer to FIG. 4. FIG. 4 is a schematic flow diagram of an application control method provided by an embodiment of the present application, which is applied to the above-mentioned control system, the above-mentioned wearable device, and the above-mentioned electronic device. The method includes:

步骤401:电子装置确定目标应用的第一状态和所述可穿戴设备的第二状态,所述目标应用支持音频播放,所述第一状态包括音频播放状态或音频停止播放状态,所述第二状态包括从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态。Step 401: The electronic device determines a first state of a target application and a second state of the wearable device, the target application supports audio playback, the first state includes an audio playback state or an audio stop state, and the second The state includes transitioning from the wearing state to the non-wearing state or from the non-wearing state to the wearing state.

其中,目标应用可以是音视频播放应用(如音频播放器、视频播放器等)、通话应用(如语音通话应用、视频通话应用等)、游戏应用等等。Wherein, the target application may be an audio and video playback application (such as an audio player, a video player, etc.), a call application (such as a voice call application, a video call application, etc.), a game application, and the like.

其中,音频播放状态指的是有音频输出的状态,比如音频播放器播放歌曲、视频播放器播放视频、通话应用播放通话音频、游戏应用播放背景音乐均都是有音频输出的。Wherein, the audio playing state refers to a state with audio output, for example, an audio player plays a song, a video player plays a video, a call application plays call audio, and a game application plays background music, all of which have audio output.

其中,音频停止播放状态指的是没有音频输出的状态,比如音频播放器暂停播放歌曲、视频播放器暂停播放视频、通话应用挂断通话或保持通话、游戏应用暂停播放背景乐均都是没有音频输出的。Among them, the audio stop playing state refers to the state without audio output, for example, the audio player pauses to play songs, the video player pauses to play videos, the call application hangs up or holds the call, and the game application pauses to play background music, all of which have no audio output.

其中,假设可穿戴设备为无线耳机,佩戴状态为无线耳机入耳状态,非佩戴状态为无线耳机未入耳状态。Wherein, it is assumed that the wearable device is a wireless earphone, the wearing state is the state of the wireless earphone in the ear, and the non-wearing state is the state of the wireless earphone not in the ear.

具体地,由于目标应用是安装在电子装置中的,那么电子装置确定目标应用的第一状态可直接获取即可,在此不作叙述。Specifically, since the target application is installed in the electronic device, the first status of the target application determined by the electronic device can be obtained directly, which will not be described here.

具体地,电子装置确定可穿戴设备的第二状态的具体实施方式有:在可穿戴设备检测到穿戴状态发生变化时,可穿戴设备将可穿戴设备当前的穿戴状态发送给电子装置,可穿戴设备的穿戴状态有佩戴状态和非佩戴状态;电子装置在接收到可穿戴设备当前的穿戴状态之后,根据可穿戴设备之前的穿戴状态和可穿戴设备当前的穿戴状态确定可穿戴设备的第二状态。Specifically, the electronic device determines the second state of the wearable device in a specific manner: when the wearable device detects that the wearing state changes, the wearable device sends the current wearing state of the wearable device to the electronic device, and the wearable device The wearing state of the wearable device includes a wearing state and a non-wearing state; after receiving the current wearing state of the wearable device, the electronic device determines the second state of the wearable device according to the previous wearing state of the wearable device and the current wearing state of the wearable device.

比如,假设可穿戴设备为无线耳机,无线耳机检测到无线耳机从佩戴状态变为非佩戴状态时,无线耳机将当前的非佩戴状态发送给电子装置,由于无线耳机之前是佩戴状态,那么电子装置基于这两个状态可以确定无线耳机的第二状态为从佩戴状态转为非佩戴状态。For example, suppose the wearable device is a wireless earphone. When the wireless earphone detects that the wireless earphone has changed from the wearing state to the non-wearing state, the wireless earphone sends the current non-wearing state to the electronic device. Since the wireless earphone was in the wearing state before, the electronic device Based on these two states, it can be determined that the second state of the wireless earphone is changed from the wearing state to the non-wearing state.

步骤402:电子装置确定所述第一状态和所述第二状态对应的第一控制指令,以及执行所述第一控制指令,所述第一控制指令用于控制所述目标应用播放音频、保持音频播放或停止音频播放。Step 402: The electronic device determines a first control instruction corresponding to the first state and the second state, and executes the first control instruction, the first control instruction is used to control the target application to play audio, hold Audio playback or stop audio playback.

具体地,电子装置通过一个映射关系确定第一状态和第二状态对应的第一控制指令,这个映射关系是与第一状态和第二状态关联的。Specifically, the electronic device determines the first control instruction corresponding to the first state and the second state through a mapping relationship, and the mapping relationship is associated with the first state and the second state.

可以看出,在本申请实施例中,电子装置根据应用的第一状态和可穿戴设备的第二状态来控制应用播放音频或停止播放音频,第一状态包括音频播放状态或音频停止播放状态,第二状态从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态,无需用户手动控制应用播放音频或停止播放音频,提升了应用控制的便捷性,进而提升了用户体验。It can be seen that in the embodiment of the present application, the electronic device controls the application to play audio or stop playing audio according to the first state of the application and the second state of the wearable device, the first state includes the audio playing state or the audio stopping state, The second state changes from the wearing state to the non-wearing state or from the non-wearing state to the wearing state, without the need for the user to manually control the application to play audio or stop playing audio, which improves the convenience of application control and thus improves the user experience.

在本申请的一实施例中,所述方法还包括:In an embodiment of the present application, the method also includes:

在所述第一控制指令用于控制所述目标应用播放音频或保持音频播放的情况下,电子装置确定所述第一状态和所述第二状态对应的第二控制指令,以及执行所述第二控制指令,所述第二控制指令用于控制音频从所述电子装置输出或从所述可穿戴设备输出。When the first control instruction is used to control the target application to play audio or keep audio playing, the electronic device determines a second control instruction corresponding to the first state and the second state, and executes the first Two control instructions, the second control instruction is used to control audio output from the electronic device or from the wearable device.

具体地,由于电子装置和可穿戴设备均可播放音频,因此需要确定音频输出设备。假如可穿戴设备为无线耳机,目前当电子装置与无线耳机连接后,默认是通过无线耳机进行音频输出,而本申请实施例中,电子装置是根据应用的第一状态和可穿戴设备的第二状态确定音频输出设备的,音频输出设备可以是可穿戴设备也可以是电子装置,提升了音频输出的可选性和灵活性。Specifically, since both the electronic device and the wearable device can play audio, an audio output device needs to be determined. If the wearable device is a wireless earphone, when the electronic device is connected to the wireless earphone, the default is to output audio through the wireless earphone. In this embodiment, the electronic device is based on the first state of the application and the second The state determines the audio output device. The audio output device can be a wearable device or an electronic device, which improves the optionality and flexibility of audio output.

在本申请的一实施例中,在目标应用为音视频播放应用,所述第一状态为音频播放状态,所述第二状态为从佩戴状态转为非佩戴状态的情况下,所述第一控制指令用于控制所述目标应用停止播放音频。In an embodiment of the present application, when the target application is an audio and video playback application, the first state is an audio playback state, and the second state is from a wearing state to a non-wearing state, the first The control instruction is used to control the target application to stop playing audio.

其中,控制目标应用停止播放音频指的是控制目标应用停止输出音频,比如音频播放器暂停播放歌曲、视频播放器暂停播放视频等。Wherein, controlling the target application to stop playing audio refers to controlling the target application to stop outputting audio, for example, an audio player pauses playing a song, a video player pauses playing a video, and the like.

进一步地,可穿戴设备包括两个佩戴装置,第二状态包括其中一个佩戴装置从佩戴状态转为非佩戴状态和两个佩戴装置均从佩戴装置转为非佩戴状态。Further, the wearable device includes two wearing devices, and the second state includes one of the wearing devices changing from the wearing state to the non-wearing state and both wearing devices changing from the wearing device to the non-wearing state.

举例来说,假设可穿戴设备为无线耳机,电子装置为智能手机,无线耳机与智能手机通过蓝牙连接,无线耳机有两个耳塞,这两个耳塞处于入耳状态,电子装置的音视频播放应用通过两个耳塞输出音频,如果用户将两个耳塞摘下或将其中一个耳塞摘下时,电子装置控制该音视频播放应用停止播放音频。For example, assume that the wearable device is a wireless earphone, and the electronic device is a smart phone. The wireless earphone and the smart phone are connected via Bluetooth. The two earplugs output audio, and if the user takes off the two earplugs or one of the earplugs, the electronic device controls the audio and video playback application to stop playing the audio.

可见,在本申请实施中,在目标应用为音视频播放应用,以及目标应用处于音频播放状态时,用户可通过将可穿戴设备从佩戴状态转为非佩戴状态即可控制目标应用停止播放音频,操作简单便捷,提升用户体验。It can be seen that in the implementation of this application, when the target application is an audio and video playback application and the target application is in the audio playback state, the user can control the target application to stop playing audio by turning the wearable device from the wearing state to the non-wearing state. The operation is simple and convenient, improving user experience.

在本申请的一实施例中,可穿戴设备包括两个佩戴装置,第一控制指令用于控制目标应用停止播放音频,所述执行第一控制指令之后,所述方法还包括:In an embodiment of the present application, the wearable device includes two wearing devices, and the first control instruction is used to control the target application to stop playing audio. After the execution of the first control instruction, the method further includes:

电子装置检测到针对目标应用的播放音频控制指令,电子装置控制目标应用播放音频;若目标应用停止播放音频是由其中一个佩戴装置从佩戴状态转为非佩戴状态引起的,电子装置音频从可穿戴设备输出;若目标应用停止播放音频是由两个佩戴装置从佩戴状态转为非佩戴状态引起的,电子装置控制音频从电子装置输出。The electronic device detects the playback audio control instruction for the target application, and the electronic device controls the target application to play audio; if the target application stops playing audio because one of the wearing devices changes from the wearing state to the non-wearing state, the electronic device audio is changed from the wearable state to the non-wearing state. Device output; if the target application stops playing audio due to the two wearing devices changing from the wearing state to the non-wearing state, the electronic device controls the audio output from the electronic device.

在本申请的一实施例中,在目标应用为音视频播放应用,所述第一状态为音频停止播放状态,所述目标应用上一次被停止播放音频的时刻距离当前时刻小于或等于设定值,所述第二状态为从非佩戴状态转为佩戴状态的情况下,所述第一控制指令用于控制所述目标应用播放音频。In an embodiment of the present application, when the target application is an audio and video playback application, the first state is the audio stop playing state, and the time when the target application stopped playing audio last time is less than or equal to the set value from the current time , when the second state is changing from a non-wearing state to a wearing state, the first control instruction is used to control the target application to play audio.

其中,控制目标应用播放音频指的是控制目标应用输出音频,比如音频播放器播放歌曲、视频播放器播放视频等。Wherein, controlling the target application to play audio refers to controlling the target application to output audio, for example, an audio player plays a song, a video player plays a video, and the like.

进一步地,所述目标应用上一次被停止播放音频是由于可穿戴设备从佩戴状态转为非佩戴状态引起的,可穿戴设备包括两个佩戴装置,此处的可穿戴设备从佩戴状态转为非佩戴状态可以是其中一个佩戴装置从佩戴状态转为非佩戴状态,也可以是两个佩戴装置均从佩戴状态转为非佩戴状态。Further, the last time the target application stopped playing audio was caused by the wearable device changing from the wearing state to the non-wearing state. The wearing state may be that one of the wearing devices changes from the wearing state to the non-wearing state, or both of the wearing devices change from the wearing state to the non-wearing state.

进一步地,可穿戴设备包括两个佩戴装置,第二状态包括其中一个佩戴装置从非佩戴状态转为佩戴状态和两个佩戴装置均从非佩戴状态转为佩戴状态。Further, the wearable device includes two wearing devices, and the second state includes one of the wearing devices turning from the non-wearing state to the wearing state and both wearing devices turning from the non-wearing state to the wearing state.

举例来说,假设可穿戴设备为无线耳机,电子装置为智能手机,无线耳机与智能手机通过蓝牙连接,无线耳机有两个耳塞,这两个耳塞处于未入耳状态,电子装置的音视频播放应用处于音频停止播放状态,如果用户将两个耳塞放入耳或将其中一个耳塞放入耳,以及音视频播放应用上一次被暂停播放音频的时刻距离当前时刻较近时,电子装置控制该音视频播放应用播放音频。For example, suppose the wearable device is a wireless earphone, the electronic device is a smart phone, the wireless earphone and the smart phone are connected via Bluetooth, the wireless earphone has two earbuds, and the two earbuds are not in the ear, the audio and video playback application of the electronic device In the audio stop state, if the user puts two earbuds or puts one of the earbuds in the ear, and the last time the audio and video playback application was paused to play audio is closer to the current moment, the electronic device controls the audio and video The playback app plays audio.

可见,在本申请实施中,在目标应用为音视频播放应用,目标应用处于停止播放音频状态,且目标应用上一次停止播放音频的时刻距离当前时刻较近的情况下,如果检测到可穿戴设备从非佩戴状态转为佩戴状态,直接控制目标应用播放音频,无需用户手动控制,提升了应用控制的便捷性,进而提升了用户体验。It can be seen that in the implementation of this application, when the target application is an audio and video playback application, the target application is in the state of stopping audio playback, and the last time the target application stopped playing audio is close to the current time, if the wearable device is detected From the non-wearing state to the wearing state, directly control the target application to play audio, without manual control by the user, which improves the convenience of application control and thus improves the user experience.

需要说明的是,如果目标应用为音视频播放应用,第一状态为音频停止播放状态,目标应用上一次被停止播放音频的时刻距离当前时刻大于设定值,第二状态为从非佩戴状态转为佩戴状态,在该种情况下,电子装置是不作任何操作的,通过目标应用播放音频需要用户手动操作。It should be noted that if the target application is an audio and video playback application, the first state is the audio stop playing state, the last time the target application was stopped from playing audio is greater than the set value from the current time, and the second state is from the non-wearing state to the It is a wearing state. In this case, the electronic device does not perform any operation, and the user needs manual operation to play audio through the target application.

在本申请的一实施例中,在所述目标应用为音视频播放应用,所述目标应用上一次被停止播放音频的时刻距离当前时刻小于或等于设定值的情况下,所述第二控制指令用于控制音频从所述可穿戴设备输出。进一步地,所述目标应用上一次被停止播放音频是由于可穿戴设备从佩戴状态转为非佩戴状态引起,可穿戴设备包括两个佩戴装置,此处的可穿戴设备从佩戴状态转为非佩戴状态可以是其中一个佩戴装置从佩戴状态转为非佩戴状态,也可以是两个佩戴装置均从佩戴状态转为非佩戴状态。In an embodiment of the present application, when the target application is an audio and video playback application, and the last time the target application stopped playing audio is less than or equal to the set value from the current time, the second control The instructions are used to control audio output from the wearable device. Further, the last time the target application stopped playing audio was caused by the wearable device changing from the wearing state to the non-wearing state, the wearable device includes two wearing devices, and the wearable device here changes from the wearing state to the non-wearing state The state may be that one of the wearing devices changes from the wearing state to the non-wearing state, or both of the wearing devices change from the wearing state to the non-wearing state.

进一步地,可穿戴设备包括两个佩戴装置,若目标应用播放音频是由其中一个佩戴装置从非佩戴状态转为佩戴状态引起的,那么第二控制指令用于控制音频从该其中一个佩戴装置输出;若目标应用播放音频是由这两个佩戴装置从非佩戴状态转为佩戴状态引起的,那么第二控制指令用于控制音频从这两个佩戴装置输出。Further, the wearable device includes two wearing devices, and if the audio playing by the target application is caused by one of the wearing devices changing from the non-wearing state to the wearing state, then the second control instruction is used to control the audio output from the one of the wearing devices ; If the playing of audio by the target application is caused by the transition of the two wearing devices from the non-wearing state to the wearing state, then the second control instruction is used to control audio output from the two wearing devices.

具体地,假如可穿戴设备为无线耳机,目前电子装置与无线耳机连接后,默认是通过无线耳机进行音频输出。而本申请实施例中,电子装置是根据实际情况决定音频的输出设备,这样更符合实际需求,提升了用户体验。Specifically, if the wearable device is a wireless earphone, after the current electronic device is connected to the wireless earphone, audio output is performed through the wireless earphone by default. However, in the embodiment of the present application, the electronic device determines the audio output device according to the actual situation, which is more in line with actual needs and improves user experience.

在本申请的一实施例中,所述目标应用为通话应用或游戏应用,其中:在所述第一状态为音频播放状态,所述第二状态为从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态的情况下,所述第一控制指令均用于控制所述目标应用保持音频播放。In an embodiment of the present application, the target application is a call application or a game application, wherein: the first state is an audio playback state, and the second state is from a wearing state to a non-wearing state or from a non-wearing state When the wearing state changes to the wearing state, the first control instruction is used to control the target application to keep playing the audio.

其中,控制目标应用保持音频播放指的是控制目标应用继续输出音频,比如通话应用继续输出通话语言、游戏应用继续输出背景音乐等。Wherein, controlling the target application to keep playing audio refers to controlling the target application to continue to output audio, for example, a call application to continue to output a call language, a game application to continue to output background music, and the like.

进一步地,可穿戴设备包括两个佩戴装置,第二状态包括其中一个佩戴装置从佩戴状态转为非佩戴状态和两个佩戴装置均从佩戴装置转为非佩戴状态。Further, the wearable device includes two wearing devices, and the second state includes one of the wearing devices changing from the wearing state to the non-wearing state and both wearing devices changing from the wearing device to the non-wearing state.

具体地,在目标应用为通话应用或游戏应用,且目标应用处于音频播放状态的情况下,不管可穿戴设备是从佩戴状态转为非佩戴状态还是从非佩戴状态转为佩戴状态,电子装置均不对目标应用进行任何操作。可见,由于游戏应用或通话应用更注重运行体验,通过本申请实施例保证了游戏应用或通话应用的运行体验。Specifically, when the target application is a call application or a game application, and the target application is in the audio playing state, no matter whether the wearable device is changed from the wearing state to the non-wearing state or from the non-wearing state to the wearing state, the electronic device will Do nothing for the target application. It can be seen that since the game application or the calling application pays more attention to the running experience, the running experience of the game application or the calling application is guaranteed through the embodiment of the present application.

在本申请的一实施例中,所述目标应用为通话应用或游戏应用,其中:在所述第一状态为音频播放状态,所述第二状态为从佩戴状态转为非佩戴状态的情况下,所述第二控制指令用于控制音频从所述电子装置输出。In an embodiment of the present application, the target application is a call application or a game application, wherein: the first state is an audio playback state, and the second state is a situation where the wearing state is changed to a non-wearing state , the second control instruction is used to control audio output from the electronic device.

进一步地,可穿戴设备包括两个佩戴装置,第二状态包括其中一个佩戴装置从佩戴状态转为非佩戴状态和两个佩戴装置均从佩戴状态转为非佩戴状态。Further, the wearable device includes two wearing devices, and the second state includes one of the wearing devices changing from the wearing state to the non-wearing state and both wearing devices changing from the wearing state to the non-wearing state.

举例来说,假设目标应用为通话应用,可穿戴设备为无线耳机,电子装置为智能手机,无线耳机与智能手机通过蓝牙连接,无线耳机处于入耳状态,电子装置的通话应用通过无线耳机输出通话语言,如果用户将无线耳机摘下时,电子装置不挂断当前通话,从电子装置输出通话语言。For example, assume that the target application is a call application, the wearable device is a wireless headset, and the electronic device is a smartphone. The wireless headset is connected to the smartphone through Bluetooth, the wireless headset is in the ear, and the call application of the electronic device outputs the call language through the wireless headset. If the user takes off the wireless earphone, the electronic device does not hang up the current call, and outputs the call language from the electronic device.

在本申请的一实施例中,所述目标应用为通话应用或游戏应用,其中:在所述第一状态为音频播放状态,所述第二状态为从非佩戴状态转为佩戴状态的情况下,所述第二控制指令用于控制音频从所述可穿戴设备输出。进一步地,可穿戴设备包括两个佩戴装置,第二状态包括其中一个佩戴装置从非佩戴状态转为佩戴状态和两个佩戴装置均从非佩戴状态转为佩戴状态。In an embodiment of the present application, the target application is a call application or a game application, wherein: the first state is an audio playback state, and the second state is a case where the state is changed from a non-wearing state to a wearing state , the second control instruction is used to control audio output from the wearable device. Further, the wearable device includes two wearing devices, and the second state includes one of the wearing devices turning from the non-wearing state to the wearing state and both wearing devices turning from the non-wearing state to the wearing state.

举例来说,假设目标应用为通话应用,可穿戴设备为无线耳机,电子装置为智能手机,无线耳机与智能手机通过蓝牙连接,无线耳机处于未入耳状态,电子装置的通话应用通过电子装置输出通话语言,如果用户将无线耳机戴上,电子装置不挂断当前通话,从无线耳机输出通话语言。For example, assume that the target application is a call application, the wearable device is a wireless headset, and the electronic device is a smartphone. The wireless headset and the smartphone are connected via Bluetooth, the wireless headset is not in the ear, and the call application of the electronic device outputs a call through the electronic device. Language, if the user puts on the wireless headset, the electronic device will output the conversation language from the wireless headset without hanging up the current call.

可见,本申请实施例中,电子装置是根据实际情况决定音频的输出设备,更符合实际需求,提升了用户体验。It can be seen that in the embodiment of the present application, the electronic device is an audio output device determined according to actual conditions, which is more in line with actual needs and improves user experience.

本申请实施例还提供了另一更为详细的方法流程,如图5所示,应用于上述控制系统、上述可穿戴设备和上述电子装置,该方法包括:The embodiment of the present application also provides another more detailed method flow, as shown in Figure 5, which is applied to the above-mentioned control system, the above-mentioned wearable device, and the above-mentioned electronic device. The method includes:

步骤501:电子装置确定目标应用的第一状态,所述目标应用支持音频播放,所述第一状态包括音频播放状态或音频停止播放状态。Step 501: The electronic device determines a first state of a target application, the target application supports audio playback, and the first state includes an audio playback state or an audio stop playback state.

步骤502:电子装置确定所述可穿戴设备的第二状态,所述第二状态包括从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态。Step 502: The electronic device determines a second state of the wearable device, where the second state includes changing from a wearing state to a non-wearing state or from a non-wearing state to a wearing state.

步骤503:电子装置确定所述第一状态和所述第二状态对应的第一控制指令,所述第一控制指令用于控制所述目标应用播放音频、保持音频播放或停止音频播放。Step 503: The electronic device determines a first control instruction corresponding to the first state and the second state, and the first control instruction is used to control the target application to play audio, keep playing audio, or stop playing audio.

步骤504:电子装置执行所述第一控制指令。Step 504: The electronic device executes the first control instruction.

步骤505:在所述第一控制指令用于控制所述目标应用播放音频或保持音频播放的情况下,电子装置确定所述第一状态和所述第二状态对应的第二控制指令,所述第二控制指令用于控制音频从所述电子装置输出或从所述可穿戴设备输出。Step 505: When the first control instruction is used to control the target application to play audio or keep playing audio, the electronic device determines a second control instruction corresponding to the first state and the second state, the The second control instruction is used to control audio output from the electronic device or from the wearable device.

步骤506:电子装置执行所述第二控制指令。Step 506: The electronic device executes the second control instruction.

需要说明的是,图5所示的方法的各个步骤的具体实现过程可参见所述方法所述的具体实现过程,在此不再叙述。It should be noted that, for the specific implementation process of each step of the method shown in FIG. 5 , reference may be made to the specific implementation process described in the method, and no further description is given here.

与上述图4和图5所示的实施例一致的,请参阅图6,图6是本申请实施例提供的一种电子装置的结构示意图,如图所示,该电子装置包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行以下步骤的指令:Consistent with the above embodiments shown in Figure 4 and Figure 5, please refer to Figure 6, Figure 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application, as shown in the figure, the electronic device includes a processor, a memory , a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the processor, and the programs include instructions for performing the following steps:

确定目标应用的第一状态和所述可穿戴设备的第二状态,所述目标应用支持音频播放,所述第一状态包括音频播放状态或音频停止播放状态,所述第二状态包括从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态;Determine the first state of the target application and the second state of the wearable device, the target application supports audio playback, the first state includes the audio playing state or the audio stop playing state, and the second state includes the wearing state Transition to a non-wearing state or from a non-wearing state to a wearing state;

确定所述第一状态和所述第二状态对应的第一控制指令,以及执行所述第一控制指令,所述第一控制指令用于控制所述目标应用播放音频、保持音频播放或停止音频播放。determining a first control instruction corresponding to the first state and the second state, and executing the first control instruction, where the first control instruction is used to control the target application to play audio, keep audio playing, or stop audio play.

在本申请的一实施例中,上述程序包括还用于执行以下步骤的指令:In an embodiment of the present application, the above-mentioned program includes instructions for performing the following steps:

在所述第一控制指令用于控制所述目标应用播放音频或保持音频播放的情况下,确定所述第一状态和所述第二状态对应的第二控制指令,以及执行所述第二控制指令,所述第二控制指令用于控制音频从所述电子装置输出或从所述可穿戴设备输出。If the first control instruction is used to control the target application to play audio or keep playing audio, determine a second control instruction corresponding to the first state and the second state, and execute the second control An instruction, the second control instruction is used to control audio output from the electronic device or from the wearable device.

在本申请的一实施例中,所述目标应用为音视频播放应用,其中:In an embodiment of the present application, the target application is an audio and video playback application, wherein:

在所述第一状态为音频播放状态,所述第二状态为从佩戴状态转为非佩戴状态的情况下,所述第一控制指令用于控制所述目标应用停止播放音频;When the first state is an audio playing state, and the second state is from a wearing state to a non-wearing state, the first control instruction is used to control the target application to stop playing audio;

在所述第一状态为音频停止播放状态,所述目标应用上一次被停止播放音频的时刻距离当前时刻小于或等于设定值,所述第二状态为从非佩戴状态转为佩戴状态的情况下,所述第一控制指令用于控制所述目标应用播放音频。When the first state is the audio stop playing state, the time when the target application was stopped playing audio last time is less than or equal to the set value from the current time, and the second state is the situation of changing from the non-wearing state to the wearing state Next, the first control instruction is used to control the target application to play audio.

在本申请的一实施例中,所述第二控制指令用于控制音频从所述可穿戴设备输出。In an embodiment of the present application, the second control instruction is used to control audio output from the wearable device.

在本申请的一实施例中,所述目标应用为通话应用或游戏应用,其中:In an embodiment of the present application, the target application is a call application or a game application, wherein:

在所述第一状态为音频播放状态,所述第二状态为从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态的情况下,所述第一控制指令均用于控制所述目标应用保持音频播放。When the first state is an audio playing state and the second state is from a wearing state to a non-wearing state or from a non-wearing state to a wearing state, the first control instructions are used to control the The target application keeps the audio playing.

在本申请的一实施例中,在所述第一状态为音频播放状态,所述第二状态为从佩戴状态转为非佩戴状态的情况下,所述第二控制指令用于控制音频从所述电子装置输出;In an embodiment of the present application, when the first state is the audio playing state and the second state is from the wearing state to the non-wearing state, the second control instruction is used to control the audio from the output of the electronic device;

在所述第一状态为音频播放状态,所述第二状态为从非佩戴状态转为佩戴状态的情况下,所述第二控制指令用于控制音频从所述可穿戴设备输出。When the first state is an audio playing state, and the second state is changing from a non-wearing state to a wearing state, the second control instruction is used to control audio output from the wearable device.

需要说明的是,本实施例的具体实现过程可参见上述方法实施例所述的具体实现过程,在此不再叙述。It should be noted that, for the specific implementation process of this embodiment, reference may be made to the specific implementation process described in the foregoing method embodiments, which will not be described here again.

请参阅图7,图7是本申请实施例提供的一种应用控制装置,应用于电子装置,所述电子装置与可穿戴设备连接,所述电子装置中安装支持音频播放的目标应用,所述应用控制装置包括确定单元701和执行单元702,其中:Please refer to FIG. 7. FIG. 7 is an application control device provided by an embodiment of the present application, which is applied to an electronic device, the electronic device is connected to a wearable device, and a target application supporting audio playback is installed in the electronic device. The application control device includes a determination unit 701 and an execution unit 702, wherein:

确定单元701,用于确定所述目标应用的第一状态和所述可穿戴设备的第二状态,所述第一状态包括音频播放状态或音频停止播放状态,所述第二状态包括从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态;The determining unit 701 is configured to determine a first state of the target application and a second state of the wearable device, the first state includes an audio playing state or an audio stop playing state, and the second state includes a wearable state Transition to a non-wearing state or from a non-wearing state to a wearing state;

确定单元701,还用于确定所述第一状态和所述第二状态对应的第一控制指令,所述第一控制指令用于控制所述目标应用播放音频、保持音频播放或停止音频播放;The determining unit 701 is further configured to determine a first control instruction corresponding to the first state and the second state, and the first control instruction is used to control the target application to play audio, keep playing audio, or stop playing audio;

执行单元702,用于执行所述第一控制指令。The execution unit 702 is configured to execute the first control instruction.

在本申请的一实施例中,确定单元701,还用于在所述第一控制指令用于控制所述目标应用播放音频或保持音频播放的情况下,确定所述第一状态和所述第二状态对应的第二控制指令,所述第二控制指令用于控制音频从所述电子装置输出或从所述可穿戴设备输出;In an embodiment of the present application, the determining unit 701 is further configured to determine the first state and the second state when the first control instruction is used to control the target application to play audio or keep audio playing A second control instruction corresponding to the two states, the second control instruction is used to control audio output from the electronic device or output from the wearable device;

执行单元702,还用于执行所述第二控制指令。The execution unit 702 is further configured to execute the second control instruction.

在本申请的一实施例中,所述目标应用为音视频播放应用,其中:In an embodiment of the present application, the target application is an audio and video playback application, wherein:

在所述第一状态为音频播放状态,所述第二状态为从佩戴状态转为非佩戴状态的情况下,所述第一控制指令用于控制所述目标应用停止播放音频;When the first state is an audio playing state, and the second state is from a wearing state to a non-wearing state, the first control instruction is used to control the target application to stop playing audio;

在所述第一状态为音频停止播放状态,所述目标应用上一次被停止播放音频的时刻距离当前时刻小于或等于设定值,所述第二状态为从非佩戴状态转为佩戴状态的情况下,所述第一控制指令用于控制所述目标应用播放音频。When the first state is the audio stop playing state, the time when the target application was stopped playing audio last time is less than or equal to the set value from the current time, and the second state is the situation of changing from the non-wearing state to the wearing state Next, the first control instruction is used to control the target application to play audio.

在本申请的一实施例中,所述第二控制指令用于控制音频从所述可穿戴设备输出。In an embodiment of the present application, the second control instruction is used to control audio output from the wearable device.

在本申请的一实施例中,所述目标应用为通话应用或游戏应用,其中:In an embodiment of the present application, the target application is a call application or a game application, wherein:

在所述第一状态为音频播放状态,所述第二状态为从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态的情况下,所述第一控制指令均用于控制所述目标应用保持音频播放。When the first state is an audio playing state and the second state is from a wearing state to a non-wearing state or from a non-wearing state to a wearing state, the first control instructions are used to control the The target application keeps the audio playing.

在本申请的一实施例中,在所述第一状态为音频播放状态,所述第二状态为从佩戴状态转为非佩戴状态的情况下,所述第二控制指令用于控制音频从所述电子装置输出;在所述第一状态为音频播放状态,所述第二状态为从非佩戴状态转为佩戴状态的情况下,所述第二控制指令用于控制音频从所述可穿戴设备输出。In an embodiment of the present application, when the first state is the audio playing state and the second state is from the wearing state to the non-wearing state, the second control instruction is used to control the audio from the The output of the electronic device; when the first state is an audio playback state and the second state is from a non-wearing state to a wearing state, the second control instruction is used to control the audio from the wearable device output.

需要注意的是,本申请实施例所描述的可穿戴设备是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。It should be noted that the wearable device described in the embodiment of this application is presented in the form of a functional unit. The term "unit" used here should be understood as the broadest meaning possible. The object used to realize the functions described by each "unit" can be, for example, an integrated circuit ASIC, a single circuit, used to execute one or more software or firmware Processors (shared, dedicated, or chipsets) and memories of programs, combinational logic circuits, and/or other suitable components that provide the functions described above.

其中,确定单元701和执行单元702可以是控制电路。Wherein, the determination unit 701 and the execution unit 702 may be control circuits.

本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括可穿戴设备或电子装置。An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables the computer to execute some or all of the steps of any method described in the above method embodiments , the above-mentioned computer includes a wearable device or an electronic device.

本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括可穿戴设备或电子装置。An embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable the computer to execute any one of the methods described in the above method embodiments. Some or all steps of the method. The computer program product may be a software installation package, and the computer includes a wearable device or an electronic device.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Depending on the application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by this application.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the above units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.

上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the above-mentioned integrated units are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory. Several instructions are included to make a computer device (which may be a personal computer, server or network device, etc.) execute all or part of the steps of the above-mentioned methods in various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, abbreviated: ROM), random access device (English: Random Access Memory, abbreviated: RAM), magnetic disk or optical disk, etc.

以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实现方式及应用范围上均会有改变之处,综上上述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and specific examples have been used in this paper to illustrate the principles and implementation methods of the present application. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; meanwhile, for Those skilled in the art will have changes in specific implementation methods and application ranges based on the ideas of the present application. In summary, the contents of this specification should not be construed as limiting the present application.

Claims (15)

Translated fromChinese
1.一种电子装置,其特征在于,所述电子装置包括控制电路,所述电子装置与可穿戴设备连接,所述电子装置中安装支持音频播放的目标应用,其中:1. An electronic device, characterized in that the electronic device includes a control circuit, the electronic device is connected to a wearable device, and a target application supporting audio playback is installed in the electronic device, wherein:所述控制电路,用于确定所述目标应用的第一状态和所述可穿戴设备的第二状态,所述第一状态包括音频播放状态或音频停止播放状态,所述第二状态包括从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态;The control circuit is configured to determine a first state of the target application and a second state of the wearable device, the first state includes an audio playing state or an audio stop playing state, and the second state includes wearing The state changes to the non-wearing state or from the non-wearing state to the wearing state;所述控制电路,还用于确定所述第一状态和所述第二状态对应的第一控制指令,以及执行所述第一控制指令,所述第一控制指令用于控制所述目标应用播放音频、保持音频播放或停止音频播放。The control circuit is further configured to determine a first control instruction corresponding to the first state and the second state, and execute the first control instruction, the first control instruction is used to control the playing of the target application Audio, keep audio playing, or stop audio playing.2.根据权利要求1所述的电子装置,其特征在于,2. The electronic device according to claim 1, wherein:所述控制电路,还用于在所述第一控制指令用于控制所述目标应用播放音频或保持音频播放的情况下,确定所述第一状态和所述第二状态对应的第二控制指令,以及执行所述第二控制指令,所述第二控制指令用于控制音频从所述电子装置输出或从所述可穿戴设备输出。The control circuit is further configured to determine a second control instruction corresponding to the first state and the second state when the first control instruction is used to control the target application to play audio or keep audio playing , and execute the second control instruction, where the second control instruction is used to control audio output from the electronic device or from the wearable device.3.根据权利要求1或2所述的电子装置,其特征在于,所述目标应用为音视频播放应用,其中:3. The electronic device according to claim 1 or 2, wherein the target application is an audio and video playback application, wherein:在所述第一状态为音频播放状态,所述第二状态为从佩戴状态转为非佩戴状态的情况下,所述第一控制指令用于控制所述目标应用停止播放音频;When the first state is an audio playing state, and the second state is from a wearing state to a non-wearing state, the first control instruction is used to control the target application to stop playing audio;在所述第一状态为音频停止播放状态,所述目标应用上一次被停止播放音频的时刻距离当前时刻小于或等于设定值,所述第二状态为从非佩戴状态转为佩戴状态的情况下,所述第一控制指令用于控制所述目标应用播放音频。When the first state is the audio stop playing state, the time when the target application was stopped playing audio last time is less than or equal to the set value from the current time, and the second state is the situation of changing from the non-wearing state to the wearing state Next, the first control instruction is used to control the target application to play audio.4.根据权利要求3所述的电子装置,其特征在于,所述第二控制指令用于控制音频从所述可穿戴设备输出。4. The electronic device according to claim 3, wherein the second control instruction is used to control audio output from the wearable device.5.根据权利要求1或2所述的电子装置,其特征在于,所述目标应用为通话应用或游戏应用,其中:5. The electronic device according to claim 1 or 2, wherein the target application is a call application or a game application, wherein:在所述第一状态为音频播放状态,所述第二状态为从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态的情况下,所述第一控制指令均用于控制所述目标应用保持音频播放。When the first state is an audio playing state and the second state is from a wearing state to a non-wearing state or from a non-wearing state to a wearing state, the first control instructions are used to control the The target application keeps the audio playing.6.根据权利要求5所述的电子装置,其特征在于,在所述第一状态为音频播放状态,所述第二状态为从佩戴状态转为非佩戴状态的情况下,所述第二控制指令用于控制音频从所述电子装置输出;6. The electronic device according to claim 5, wherein when the first state is an audio playing state and the second state is from a wearing state to a non-wearing state, the second control instructions for controlling audio output from the electronic device;在所述第一状态为音频播放状态,所述第二状态为从非佩戴状态转为佩戴状态的情况下,所述第二控制指令用于控制音频从所述可穿戴设备输出。When the first state is an audio playing state, and the second state is changing from a non-wearing state to a wearing state, the second control instruction is used to control audio output from the wearable device.7.一种应用控制方法,其特征在于,应用于电子装置,所述电子装置与可穿戴设备连接,所述方法包括:7. An application control method, characterized in that it is applied to an electronic device, and the electronic device is connected to a wearable device, the method comprising:确定目标应用的第一状态和所述可穿戴设备的第二状态,所述目标应用支持音频播放,所述第一状态包括音频播放状态或音频停止播放状态,所述第二状态包括从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态;Determine the first state of the target application and the second state of the wearable device, the target application supports audio playback, the first state includes the audio playing state or the audio stop playing state, and the second state includes the wearing state Transition to a non-wearing state or from a non-wearing state to a wearing state;确定所述第一状态和所述第二状态对应的第一控制指令,以及执行所述第一控制指令,所述第一控制指令用于控制所述目标应用播放音频、保持音频播放或停止音频播放。determining a first control instruction corresponding to the first state and the second state, and executing the first control instruction, where the first control instruction is used to control the target application to play audio, keep audio playing, or stop audio play.8.根据权利要求7所述的方法,其特征在于,所述方法还包括:8. The method according to claim 7, further comprising:在所述第一控制指令用于控制所述目标应用播放音频或保持音频播放的情况下,确定所述第一状态和所述第二状态对应的第二控制指令,以及执行所述第二控制指令,所述第二控制指令用于控制音频从所述电子装置输出或从所述可穿戴设备输出。If the first control instruction is used to control the target application to play audio or keep playing audio, determine a second control instruction corresponding to the first state and the second state, and execute the second control An instruction, the second control instruction is used to control audio output from the electronic device or from the wearable device.9.根据权利要求7或8所述的方法,其特征在于,所述目标应用为音视频播放应用,其中:9. The method according to claim 7 or 8, wherein the target application is an audio and video playback application, wherein:在所述第一状态为音频播放状态,所述第二状态为从佩戴状态转为非佩戴状态的情况下,所述第一控制指令用于控制所述目标应用停止播放音频;When the first state is an audio playing state, and the second state is from a wearing state to a non-wearing state, the first control instruction is used to control the target application to stop playing audio;在所述第一状态为音频停止播放状态,所述目标应用上一次被停止播放音频的时刻距离当前时刻小于或等于设定值,所述第二状态为从非佩戴状态转为佩戴状态的情况下,所述第一控制指令用于控制所述目标应用播放音频。When the first state is the audio stop playing state, the time when the target application was stopped playing audio last time is less than or equal to the set value from the current time, and the second state is the situation of changing from the non-wearing state to the wearing state Next, the first control instruction is used to control the target application to play audio.10.根据权利要求9所述的方法,其特征在于,所述第二控制指令用于控制音频从所述可穿戴设备输出。10. The method according to claim 9, wherein the second control instruction is used to control audio output from the wearable device.11.根据权利要求7或8所述的方法,其特征在于,所述目标应用为通话应用或游戏应用,其中:11. The method according to claim 7 or 8, wherein the target application is a call application or a game application, wherein:在所述第一状态为音频播放状态,所述第二状态为从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态的情况下,所述第一控制指令均用于控制所述目标应用保持音频播放。When the first state is an audio playing state and the second state is from a wearing state to a non-wearing state or from a non-wearing state to a wearing state, the first control instructions are used to control the The target application keeps the audio playing.12.根据权利要求11所述的方法,其特征在于,12. The method of claim 11, wherein,在所述第一状态为音频播放状态,所述第二状态为从佩戴状态转为非佩戴状态的情况下,所述第二控制指令用于控制音频从所述电子装置输出;In the case where the first state is an audio playing state and the second state is from a wearing state to a non-wearing state, the second control instruction is used to control audio output from the electronic device;在所述第一状态为音频播放状态,所述第二状态为从非佩戴状态转为佩戴状态的情况下,所述第二控制指令用于控制音频从所述可穿戴设备输出。When the first state is an audio playing state, and the second state is changing from a non-wearing state to a wearing state, the second control instruction is used to control audio output from the wearable device.13.一种应用控制装置,其特征在于,应用于电子装置,所述电子装置与可穿戴设备连接,所述电子装置中安装支持音频播放的目标应用,所述应用控制装置包括确定单元和执行单元,其中:13. An application control device, characterized in that it is applied to an electronic device, the electronic device is connected to a wearable device, and a target application supporting audio playback is installed in the electronic device, and the application control device includes a determination unit and an execution unit. unit, where:所述确定单元,用于确定所述目标应用的第一状态和所述可穿戴设备的第二状态,所述第一状态包括音频播放状态或音频停止播放状态,所述第二状态包括从佩戴状态转为非佩戴状态或从非佩戴状态转为佩戴状态;The determining unit is configured to determine a first state of the target application and a second state of the wearable device, the first state includes an audio playing state or an audio stop playing state, and the second state includes wearing The state changes to the non-wearing state or from the non-wearing state to the wearing state;所述确定单元,还用于确定所述第一状态和所述第二状态对应的第一控制指令,所述第一控制指令用于控制所述目标应用播放音频、保持音频播放或停止音频播放;The determining unit is further configured to determine a first control instruction corresponding to the first state and the second state, and the first control instruction is used to control the target application to play audio, keep audio playing, or stop audio playing ;所述执行单元,用于执行所述第一控制指令。The execution unit is configured to execute the first control instruction.14.一种电子装置,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求7-12任一项所述的方法中的步骤的指令。14. An electronic device, comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured by the processor Execution, the program includes instructions for executing the steps in the method according to any one of claims 7-12.15.一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求7-12任一项所述的方法。15. A computer-readable storage medium, characterized by storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the method according to any one of claims 7-12.
CN201810415538.7A2018-05-032018-05-03 Application control method and related equipmentPendingCN108769387A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810415538.7ACN108769387A (en)2018-05-032018-05-03 Application control method and related equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810415538.7ACN108769387A (en)2018-05-032018-05-03 Application control method and related equipment

Publications (1)

Publication NumberPublication Date
CN108769387Atrue CN108769387A (en)2018-11-06

Family

ID=64009765

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810415538.7APendingCN108769387A (en)2018-05-032018-05-03 Application control method and related equipment

Country Status (1)

CountryLink
CN (1)CN108769387A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110070812A (en)*2019-04-122019-07-30华为技术有限公司Wear electronic equipment and its control method
CN111431968A (en)*2020-02-262020-07-17华为技术有限公司Cross-device distribution method of service elements, terminal device and storage medium
CN112995402A (en)*2021-03-032021-06-18Oppo广东移动通信有限公司Control method and device, computer readable medium and electronic equipment
EP3840435A1 (en)*2019-12-162021-06-23Beijing Xiaomi Mobile Software Co., Ltd.Audio playing control method and device and storage medium
CN115052066A (en)*2022-08-162022-09-13荣耀终端有限公司Communication method and related device
CN115103303A (en)*2022-06-222022-09-23中国联合网络通信集团有限公司Application management method, server and storage medium
CN115348349A (en)*2021-05-142022-11-15Oppo广东移动通信有限公司Application program control method and related device
CN119544852A (en)*2023-08-302025-02-28华为技术有限公司 Audio playback control method, electronic device and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR20130014752A (en)*2011-08-012013-02-12엘지전자 주식회사Mobile terminal and method for controlling the same
CN103257873A (en)*2013-04-182013-08-21北京小米科技有限责任公司Method and system for controlling intelligent terminal device
CN106791191A (en)*2017-02-072017-05-31广东小天才科技有限公司Play control method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR20130014752A (en)*2011-08-012013-02-12엘지전자 주식회사Mobile terminal and method for controlling the same
CN103257873A (en)*2013-04-182013-08-21北京小米科技有限责任公司Method and system for controlling intelligent terminal device
CN106791191A (en)*2017-02-072017-05-31广东小天才科技有限公司Play control method and device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110070812A (en)*2019-04-122019-07-30华为技术有限公司Wear electronic equipment and its control method
EP3840435A1 (en)*2019-12-162021-06-23Beijing Xiaomi Mobile Software Co., Ltd.Audio playing control method and device and storage medium
CN111431968A (en)*2020-02-262020-07-17华为技术有限公司Cross-device distribution method of service elements, terminal device and storage medium
WO2021169370A1 (en)*2020-02-262021-09-02华为技术有限公司Method for cross-device allocation of service elements, terminal device, and storage medium
CN111431968B (en)*2020-02-262021-09-21华为技术有限公司Cross-device distribution method of service elements, terminal device and storage medium
US12132793B2 (en)2020-02-262024-10-29Huawei Technologies Co., Ltd.Cross-device allocation method for service element, terminal device, and storage medium
CN112995402A (en)*2021-03-032021-06-18Oppo广东移动通信有限公司Control method and device, computer readable medium and electronic equipment
CN115348349B (en)*2021-05-142024-10-18Oppo广东移动通信有限公司 Application program control method and related device
CN115348349A (en)*2021-05-142022-11-15Oppo广东移动通信有限公司Application program control method and related device
CN115103303A (en)*2022-06-222022-09-23中国联合网络通信集团有限公司Application management method, server and storage medium
CN115103303B (en)*2022-06-222024-03-12中国联合网络通信集团有限公司Application management method, server and storage medium
CN115052066A (en)*2022-08-162022-09-13荣耀终端有限公司Communication method and related device
WO2024037134A1 (en)*2022-08-162024-02-22荣耀终端有限公司Communication method and related apparatus
CN119544852A (en)*2023-08-302025-02-28华为技术有限公司 Audio playback control method, electronic device and readable storage medium

Similar Documents

PublicationPublication DateTitle
US11102697B2 (en)Method for controlling earphone switching and earphone
CN108769387A (en) Application control method and related equipment
US10701158B2 (en)Control method of wearable apparatus and related apparatuses
CN108541080B (en) Method and related products for back-connection between first electronic device and second electronic device
WO2019090726A1 (en)Method for selecting bluetooth device, terminal, and system
WO2022033176A1 (en)Audio play control method and apparatus, and electronic device and storage medium
CN109150221B (en) A wearable device master-slave switching method and related products
CN111093137B (en) A volume control method, device and computer-readable storage medium
CN108833683B (en)Dynamic antenna adjustment implementation method and related product
CN108897516B (en) A kind of wearable device volume adjustment method and related products
WO2020073852A1 (en)Display control method and related product
WO2020007174A1 (en)Communication connection establishment method and related device
CN108769401A (en)Signal detecting method and related product
CN111432071A (en) Call control method and electronic device
CN110415495B (en)Equipment loss processing method and related equipment
CN108882084B (en)Wearable equipment electric quantity balancing method and related product
CN110543231B (en)Electronic device control method and related equipment
CN108834013B (en)Wearable equipment electric quantity balancing method and related product
CN109121034B (en)Master-slave switching method based on volume and related product
CN108668018B (en) Mobile terminal, volume control method and related products
JP7526810B2 (en) Method for switching audio output modes and electronic device
CN108649671B (en)Wireless charging circuit and wearable equipment
CN110569099A (en) Message Display Method and Related Products
CN108965576A (en)Incoming call processing method and device, storage medium and electronic equipment
CN108882085B (en)Wearable equipment electric quantity balancing method and related product

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20181106


[8]ページ先頭

©2009-2025 Movatter.jp