WO2021136141A1 - 播放方法及电子设备 - Google Patents
播放方法及电子设备 Download PDFInfo
- Publication number
- WO2021136141A1 WO2021136141A1 PCT/CN2020/139910 CN2020139910W WO2021136141A1 WO 2021136141 A1 WO2021136141 A1 WO 2021136141A1 CN 2020139910 W CN2020139910 W CN 2020139910W WO 2021136141 A1 WO2021136141 A1 WO 2021136141A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- electronic device
- audio output
- audio
- target
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/16—Sound input; Sound output
- G06F3/167—Audio in a user interface, e.g. using voice commands for navigating, audio feedback
Definitions
- the embodiments of the present invention relate to the field of communication technologies, and in particular, to a playback method and electronic equipment.
- the audio output device of the first electronic device will simultaneously output the audio of the video application and the music application, resulting in poor audio output effects.
- the embodiments of the present invention provide a playback method and an electronic device to solve the problem of poor audio output effects caused by the electronic device simultaneously outputting the audio of a sharing application and another application in the prior art.
- the present invention is implemented as follows:
- an embodiment of the present invention provides a playback method, which includes:
- each audio output terminal of the target audio output terminal is allowed to output at most one application audio at the same time;
- the target audio output terminal includes at least one of the following: an audio output device installed in the first electronic device An audio output device connected to the first electronic device.
- an embodiment of the present invention also provides an electronic device, the electronic device is a first electronic device, and the electronic device includes:
- the sharing module is configured to share the application interface and audio data of the first application program of the first electronic device to the second electronic device when the connection between the first electronic device and the second electronic device is established;
- the control module is configured to control the working state of the target audio output terminal according to the audio playing state of the first application in the first electronic device;
- each audio output terminal of the target audio output terminal is allowed to output at most one application audio at the same time;
- the target audio output terminal includes at least one of the following: an audio output device installed in the first electronic device An audio output device connected to the first electronic device.
- an embodiment of the present invention also provides an electronic device that includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor.
- the computer program is The processor implements the steps of the playback method as described above when executed.
- an embodiment of the present invention also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the playback method described above are implemented.
- the first electronic device shares the first application with the second electronic device, it can control the audio output of the target audio output terminal according to the audio playing state of the first application on the first electronic device.
- Working state wherein each of the target audio output terminals is allowed to output at most one application audio at the same time. It can be seen that, compared with the audio output of multiple applications in the prior art, one audio output port can improve the audio output effect; on the other hand, because the first application is in the audio playing state of the first electronic device It can be set independently by the user. Therefore, the embodiment of the present invention controls the working state of the target audio output terminal through the audio playback state of the first application on the first electronic device, which can make the working state of the target audio output terminal meet the user's expectations, thereby improving Audio output effect.
- FIG. 1 is one of the flowcharts of the playback method provided by the embodiment of the present invention.
- Figure 2a is one of the schematic diagrams of the interface provided by the embodiment of the present invention.
- Figure 2b is the second schematic diagram of an interface provided by an embodiment of the present invention.
- FIG. 3 is the second flowchart of the playback method provided by the embodiment of the present invention.
- Figure 4 is one of the structural diagrams of the electronic device provided by the embodiment of the present invention.
- Fig. 5 is a second structural diagram of an electronic device provided by an embodiment of the present invention.
- first”, “second”, etc. in the present invention are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.
- the terms “including” and “having” and any variations of them are intended to cover non-exclusive inclusions.
- a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those clearly listed. Those steps or units may include other steps or units that are not clearly listed or are inherent to these processes, methods, products, or equipment.
- the playback method of the embodiment of the present invention can be applied to an electronic device, wherein the electronic device has at least one of the following characteristics: the electronic device is equipped with an audio output device; the electronic device can be connected to an audio output device.
- the audio output device can be understood as the audio output terminal of the electronic device itself, and the audio output device can be understood as the audio output terminal independent of the electronic device.
- the electronic device can be a mobile phone, a tablet (Personal Computer), a laptop (a laptop computer), a personal digital assistant (a personal digital assistant, PDA), or a wearable device (Wearable Device), etc.
- Fig. 1 is one of the flowcharts of the playback method provided by the embodiment of the present invention. This embodiment can be applied to the first electronic device.
- the audio processing method may include the following steps:
- Step 101 When the first electronic device and the second electronic device are connected, share the application interface and audio data of the first application program of the first electronic device to the second electronic device.
- the establishment of a connection between the first electronic device and the second electronic device may be used to: share an application.
- the first electronic device and the second electronic device may be connected in a wired manner or a wireless manner, such as a Bluetooth connection.
- the present invention does not limit the first electronic device and the second electronic device.
- the connection mode between the second electronic device that is, any connection mode that enables the sharing of applications between the first electronic device and the second electronic device falls within the protection scope of the present invention .
- the sharing of the first application program by the first electronic device with the second electronic device is specifically expressed as: sharing the application interface and audio data of the first application program of the first electronic device with the second electronic device equipment.
- the first application can be referred to as a sharing application.
- the first electronic device may realize the sharing of the first application program in the following manner:
- the virtual screen of the first electronic device is displayed. State the application interface of the first application;
- the second electronic device may display the application interface of the first application and play the audio of the first application. Further, the running state of the first application on the second electronic device will not be affected by the running state of the first application on the first electronic device.
- Step 102 Control the working state of the target audio output terminal according to the audio playing state of the first application on the first electronic device.
- the target audio output terminal includes at least one of the following: an audio output device installed in the first electronic device; an audio output device connected to the first electronic device; each audio output in the target audio output terminal The terminal allows at most one application's audio to be output at the same time.
- the audio output device connected to the first electronic device does not include the second electronic device. That is, in this embodiment, the audio output device connected to the first electronic device and the second electronic device are two independent devices.
- the audio playback state can be specifically represented as an off state or an on state.
- the third application program of the electronic device that has not been shared by the application program is used as an example for description.
- the target audio output terminal When the audio playing state of the third application of the first electronic device is in the closed state, the target audio output terminal will not output the audio of the third application, even if the volume of the third application is greater than zero.
- the target audio output terminal is allowed to output the audio of the third application, but it should be understood that this does not mean that the target audio output must be The audio of the third application will be output. Specifically, when the volume of the third application is zero, that is, when the third application is in a mute state, the target audio output terminal will not output the audio of the third application; if the volume of the third application is greater than zero, that is, the third application When the application is in a non-mute state, the target audio output terminal will output the audio of the third application.
- the first electronic device can set a target control, and the user can trigger the first electronic device to switch the audio playing state of the application by touching the target control.
- the target control may include a first display state and a second display state, wherein the first display state indicates that the audio playback state is an on state, and the first display state indicates that the audio playback state is an off state.
- the target control may correspond to the first electronic device; in the second implementation manner, the target control may correspond to an application program.
- the audio playback state of any application can be controlled by a target control.
- the first electronic device may control the audio playback state of any application program in the following manner:
- the identification information of the N applications can be changed, and N is a positive integer
- the audio playing state of the fourth application is switched to the playing state; otherwise, the audio playing state is switched to the closed state.
- one target control can correspond to one or more applications.
- the control method of controlling the audio playback state of any one of the at least two applications through the target control can participate in the realization of the first implementation manner, here No longer.
- the electronic device can be triggered to switch the audio playing state of the application by touching the target control corresponding to the application.
- the first electronic device may only display the shared application, that is, the target control of the first application.
- the display position, display shape, and display size of the target control can be set according to actual requirements, which is not limited in the embodiment of the present invention.
- the target control of a certain application can be set on the application interface of the application in the background application browsing interface.
- the target control of a certain application can be set on the application interface of the application in the background application browsing interface.
- the background application browsing interface 20 includes application interfaces of application 1, application 2, and application 3.
- the upper right corner of the application interface of application 2 is provided with a target control 21.
- the target control 21 is in the first display state, which means that the audio playback state of the application 2 is in the on state; in Figure 2b, the target control 21 is in the second display state, which means that the audio playback state of the application 2 is off status.
- the audio playback state of the first application can be set to the off state by default, and the non-shared application, such as the second The audio playback state of the application is set to on by default, which means that the target output terminal is controlled to output the audio of the non-sharing application first.
- the user can switch the audio playback state of the shared application and the non-shared application through the target control.
- the first electronic device shares the first application with the second electronic device, it can control the target audio output according to the audio playing state of the first application on the first electronic device The working status of the terminal.
- the embodiment of the present invention can ensure that each audio output terminal of the target audio output terminal is allowed to output the audio of one application program at the same time, thereby improving the audio output effect compared with the prior art.
- controlling the working state of the target audio output terminal according to the audio playing state of the first application on the first electronic device includes at least one of the following:
- the target application running on the first electronic device further includes a second application with an audio playing function, Controlling the working state of the target audio output terminal according to the target running state of the first application and the second application;
- the target operating state includes a foreground operating state or a background operating state.
- Case 1 The audio playing state of the first application in the first electronic device is in the closed state.
- the first electronic device may prohibit the target audio output terminal from outputting the audio of the first electronic device, that is, the target audio output terminal will not output the audio of the first electronic device.
- the audio of the second application program can be output through the target audio output terminal.
- Case 2 The audio playing state of the first application program in the first electronic device is in an open state.
- the first electronic device may further detect whether the target application program run by the first electronic device further includes a second application program with an audio playback function.
- the first electronic device may allow the target audio output terminal to output the audio of the first electronic device. Further, the first electronic device may allow the target audio output terminal to output the audio of the first application only when the first application is in the foreground running state of the first electronic device, otherwise it may The target audio output terminal is prohibited from outputting the audio of the first application program.
- the first electronic device may further control the operation of the target audio output terminal according to the target running status of the first application and the second application State; wherein, the target operating state includes a foreground operating state or a background operating state.
- the target audio output terminal in the embodiment of the present invention may include the following manifestations: Manner 1.
- the target audio output terminal includes the audio output device installed in the first electronic device or the first electronic device Connected audio output device.
- Expression mode 2 The target audio output terminal includes an audio output device installed in the first electronic device and an audio output device connected to the first electronic device.
- the audio processing method of the embodiment of the present invention aims to ensure that each audio output terminal of the target audio output terminal is allowed to output audio of at most one application program at the same time. Therefore, for the different expressions of the target audio output terminal, "control the working status of the target audio output terminal according to the target running status of the first application and the second application; wherein, the target running status includes the foreground.
- the specific implementation methods of "running state or background running state” can be different, and the specific instructions are as follows:
- controlling the working state of the target audio output terminal according to the target running state of the first application and the second application includes at least one of the following:
- the target audio output terminal is allowed to output the audio of the first application , Prohibiting the target audio output terminal from outputting the audio of the second application;
- the target audio output terminal is prohibited from outputting the audio of the first application To allow the target audio output terminal to output the audio of the second application.
- the first electronic device can output the audio of the application running in the foreground through the target audio output terminal, and will not output the audio of the application running in the background through the target audio output terminal, so that it can be guaranteed
- the target audio output terminal only outputs the audio of one application program at the same time, thereby ensuring the audio output effect.
- controlling the working state of the target audio output terminal according to the target running state of the first application and the second application includes:
- the working state of the target audio output terminal is controlled according to the target running state of the first application program and the second application program, and the type of the application program corresponding to the audio output device and the audio output device.
- the types of applications can be divided based on the target operating state of the application, that is, applications in the foreground operating state belong to one type, and applications in the background operating state belong to another type.
- the audio output device and the type of the application corresponding to the audio output device can be flexibly set and adjusted according to actual needs.
- the target audio output is controlled according to the target running state of the first application and the second application, and the type of the application corresponding to the audio output device and the audio output device
- the working status of the terminal including at least one of the following:
- the target running state of the first application program is the foreground running state
- the target running state of the second application program is the background running state
- the first audio output terminal corresponds to the application in the foreground running state
- the second audio When the output terminal corresponds to the background running state, the first audio output terminal is allowed to output the audio of the first application, and the second audio output terminal is allowed to output the audio of the second application;
- the target running state of the first application is the background running state
- the target running state of the second application is the foreground running state
- the first audio output terminal corresponds to the application in the foreground running state
- the second audio When the output terminal corresponds to the background running state, allowing the first audio output terminal to output the audio of the second application program, and allowing the second audio output terminal to output the audio of the first application program;
- the first audio output terminal is one of the audio output device and the audio output device
- the second audio output terminal is the other of the audio output device and the audio output device.
- the target audio output terminal of the first electronic device includes two types: its own audio output terminal, that is, an audio output device, and an audio output terminal independent of the first electronic device, that is, audio output. equipment.
- the first electronic device may also set the types of applications corresponding to different types of audio output terminals, where one type of audio output terminal corresponds to one type of application, and different types of audio output terminals correspond to the type of application program different.
- the audio output device may correspond to an application program running in the foreground, and the audio output device may correspond to an application program running in the background.
- the specific application program corresponding to the type of audio output terminal can be determined by the type of the application program corresponding to the type of audio output terminal.
- the audio output device corresponds to an application in the background running state
- the audio output device corresponds to an application in the foreground running state
- the first application is in the background running state
- the second application is in the foreground running state.
- the audio output device corresponds to the first application
- the audio of the first application will be output from the audio output device, not the audio output device
- the audio output device corresponds to the second application, the audio of the first application Will be output from the audio output device, not from the audio output device.
- the target audio output terminal only outputs the audio of one application program at the same time, thereby ensuring the audio output effect.
- this embodiment serves as an implementation manner of a mobile communication terminal corresponding to the foregoing method embodiment. Therefore, reference may be made to the relevant description in the foregoing method embodiment, and the same beneficial effects can be achieved. In order to avoid repeating the description, it will not be repeated here.
- the audio processing method may include the following steps:
- Step 301 After the sharing terminal and the receiving terminal establish a connection, the sharing terminal synchronously shares an APP to the receiving terminal.
- the app being shared can be called a sharing app.
- Step 302 The sharing terminal judges whether the audio playing state of the sharing APP is in the off state.
- step 306 If it is closed, go to step 306; otherwise, go to step 303.
- the audio playback state of the sharing APP is set to the off state by default.
- the user can set the playback status of the sharing APP through the browsing interface of the recent application (which can be understood as a background application).
- the audio playback state of the shared application 2 is in the closed state, and step 306 is executed. Click the "volume" button to switch the state.
- the audio playback state of the shared application 2 is turned to the on state, and step 303 can be performed.
- Step 303 Whether the sharing APP is running in the background.
- step 304 If yes, go to step 304, if not, go to step 305.
- step 303 may not be performed.
- Step 304 Determine whether the APP running in the foreground of the sharing terminal plays a sound.
- step 306 If yes, go to step 306, if not, go to step 305.
- Step 305 The sharing terminal normally plays the sound of the sharing APP.
- Step 306 The sharing terminal implements mute processing on the sharing APP, but the sound data is still transmitted to the receiving terminal, and the sharing terminal plays the sound of the APP running in the foreground.
- the sound of the sharing APP when the sound of the sharing APP is muted, it can be achieved by means of touch volume reduction control, or preset gesture control.
- the sharing terminal shares the APP to the receiving terminal, the user can choose whether to play the sound resources corresponding to the shared APP in the foreground. If you do not choose to share and play, the sound resources of the APP will only be shared to the receiving terminal. It will not be played on the sharing terminal; if the user selects the sharing app to play the sound resource in the foreground, if the app is in the foreground, the sharing terminal will play the sound resource corresponding to the app, and if the app is in the background, judge whether the application in the foreground of the sharing terminal is There is an operation to play sound. If there is, the sound of the sharing APP will be muted, but the audio data can still be transmitted to the receiving end.
- the sound of the sharing APP will still play normally by default.
- the shortcut is set to mute it. It can be seen that in the embodiment of the present invention, when sharing an APP, the user can freely choose whether to play the sound of the shared APP, and can solve the problem that the shared APP and the local APP need to play sounds at the same time, which can well ensure that the user uses the shared application. Functional experience.
- the embodiment of the present invention can realize separate and independent sound playback based on multiple audio output ports.
- the music sound source and the game sound source can be separated and played, and the mobile phone can be used to play the game sound and the stereo to play the music.
- FIG. 4 is one of the structural diagrams of the electronic device provided by the embodiment of the present invention.
- the electronic device 400 is a first electronic device. As shown in FIG. 4, the electronic device 400 includes:
- the sharing module 401 is configured to share the application interface and audio data of the first application program of the first electronic device to the second electronic device when the connection between the first electronic device and the second electronic device is established ;
- the control module 402 is configured to control the working state of the target audio output terminal according to the audio playing state of the first application in the first electronic device;
- the target audio output terminal includes at least one of the following: an audio output device installed in the first electronic device; an audio output device connected to the first electronic device; each audio output in the target audio output terminal The terminal allows at most one application's audio to be output at the same time.
- control module 402 includes at least one of the following:
- the first control sub-module is configured to prohibit the target audio output terminal from outputting the audio of the first electronic device when the audio playback state of the first electronic device is closed by the first application;
- the second control sub-module is configured to, when the audio playing state of the first electronic device of the first application is in the on state, if the target application running on the first electronic device also includes audio
- the second application program with the playback function controls the working state of the target audio output terminal according to the target running state of the first application program and the second application program;
- the target operating state includes a foreground operating state or a background operating state.
- the second control submodule is specifically used for at least one of the following:
- the target audio output terminal is allowed to output the audio of the first application , Prohibiting the target audio output terminal from outputting the audio of the second application;
- the target audio output terminal is prohibited from outputting the audio of the first application To allow the target audio output terminal to output the audio of the second application.
- the target audio output terminal includes the audio output device and the audio output device
- the second control submodule is specifically configured to:
- the working state of the target audio output terminal is controlled according to the target running state of the first application program and the second application program, and the type of the application program corresponding to the audio output device and the audio output device.
- the second control submodule includes at least one of the following:
- the first control unit is used for when the target running state of the first application program is the foreground running state, the target running state of the second application program is the background running state, and the first audio output terminal is in the foreground running state.
- the second audio output terminal corresponds to the application program
- the second audio output terminal corresponds to the background running state
- the first audio output terminal is allowed to output the audio of the first application program
- the second audio output terminal is allowed to output the second Audio of the application
- the second control unit is used when the target running state of the first application program is the background running state, the target running state of the second application program is the foreground running state, and the first audio output terminal is in the foreground running state.
- the first audio output terminal is allowed to output the audio of the second application program, and the second audio output terminal is allowed to output the first audio output terminal. Audio of the application;
- the first audio output terminal is one of the audio output device and the audio output device
- the second audio output terminal is the other of the audio output device and the audio output device.
- the electronic device 400 can implement each process in the method embodiment of the present invention and achieve the same beneficial effects. In order to avoid repetition, details are not described herein again.
- FIG. 5 is a second structural diagram of an electronic device provided by an embodiment of the present invention.
- the electronic device may be a schematic diagram of a hardware structure of an electronic device that implements various embodiments of the present invention.
- the electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, The processor 510, and the power supply 511 and other components.
- a radio frequency unit 501 a radio frequency unit 501
- a network module 502 an audio output unit 503
- an input unit 504 a sensor 505
- a display unit 506 a user input unit 507
- an interface unit 508 a memory 509
- the processor 510 and the power supply 511 and other components.
- the structure of the electronic device shown in FIG. 5 does not constitute a limitation on the electronic device.
- the electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout.
- electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
- the radio frequency unit 501 is used for:
- the processor 510 is used for:
- the target audio output terminal includes at least one of the following: an audio output device installed in the first electronic device; an audio output device connected to the first electronic device; each audio output in the target audio output terminal The terminal allows at most one application's audio to be output at the same time.
- processor 510 is further used for at least one of the following:
- the target application running on the first electronic device further includes a second application with an audio playing function, Controlling the working state of the target audio output terminal according to the target running state of the first application and the second application;
- the target operating state includes a foreground operating state or a background operating state.
- the processor 510 is further configured to be used for at least one of the following:
- the target audio output terminal is allowed to output the audio of the first application , Prohibiting the target audio output terminal from outputting the audio of the second application;
- the target audio output terminal is prohibited from outputting the audio of the first application To allow the target audio output terminal to output the audio of the second application.
- the target audio output terminal includes the audio output device and the audio output device, and the processor 510 is further configured to:
- the working state of the target audio output terminal is controlled according to the target running state of the first application program and the second application program, and the type of the application program corresponding to the audio output device and the audio output device.
- processor 510 is further used for at least one of the following:
- the target running state of the first application program is the foreground running state
- the target running state of the second application program is the background running state
- the first audio output terminal corresponds to the application in the foreground running state
- the second audio When the output terminal corresponds to the background running state, the first audio output terminal is allowed to output the audio of the first application, and the second audio output terminal is allowed to output the audio of the second application;
- the target running state of the first application is the background running state
- the target running state of the second application is the foreground running state
- the first audio output terminal corresponds to the application in the foreground running state
- the second audio When the output terminal corresponds to the background running state, allowing the first audio output terminal to output the audio of the second application program, and allowing the second audio output terminal to output the audio of the first application program;
- the first audio output terminal is one of the audio output device and the audio output device
- the second audio output terminal is the other of the audio output device and the audio output device.
- the radio frequency unit 501 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, after receiving the downlink data from the base station, it is processed by the processor 510; Uplink data is sent to the base station.
- the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
- the radio frequency unit 501 can also communicate with the network and other devices through a wireless communication system.
- the electronic device provides users with wireless broadband Internet access through the network module 502, such as helping users to send and receive emails, browse web pages, and access streaming media.
- the audio output unit 503 can convert the audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output it as sound. Moreover, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic device 500 (for example, call signal reception sound, message reception sound, etc.).
- the audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
- the input unit 504 is used to receive audio or video signals.
- the input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042.
- the graphics processor 5041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
- the processed image frame may be displayed on the display unit 506.
- the image frame processed by the graphics processor 5041 may be stored in the memory 509 (or other storage medium) or sent via the radio frequency unit 501 or the network module 502.
- the microphone 5042 can receive sound, and can process such sound into audio data.
- the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 501 for output in the case of a telephone call mode.
- the electronic device 500 further includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors.
- the light sensor includes an ambient light sensor and a proximity sensor.
- the ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light.
- the proximity sensor can close the display panel 5061 and the display panel 5061 when the electronic device 500 is moved to the ear. / Or backlight.
- the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 505 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
- the display unit 506 is used to display information input by the user or information provided to the user.
- the display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
- LCD liquid crystal display
- OLED organic light-emitting diode
- the user input unit 507 can be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
- the user input unit 507 includes a touch panel 5071 and other input devices 5072.
- the touch panel 5071 also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 5071 or near the touch panel 5071. operating).
- the touch panel 5071 may include two parts: a touch detection device and a touch controller.
- the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 510, the command sent by the processor 510 is received and executed.
- the touch panel 5071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
- the user input unit 507 may also include other input devices 5072.
- other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
- the touch panel 5071 can be overlaid on the display panel 5061.
- the touch panel 5071 detects a touch operation on or near it, it is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 determines the type of the touch event according to the touch.
- the type of event provides corresponding visual output on the display panel 5061.
- the touch panel 5071 and the display panel 5061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated
- the implementation of the input and output functions of the electronic device is not specifically limited here.
- the interface unit 508 is an interface for connecting an external device and the electronic device 500.
- the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
- the interface unit 508 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 500 or can be used to connect the electronic device 500 to an external device. Transfer data between devices.
- the memory 509 can be used to store software programs and various data.
- the memory 509 may mainly include a storage program area and a storage data area.
- the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
- the memory 509 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
- the processor 510 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 509, and calls data stored in the memory 509 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
- the processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 510.
- the electronic device 500 may also include a power source 511 (such as a battery) for supplying power to various components.
- a power source 511 such as a battery
- the power source 511 may be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
- the electronic device 500 includes some functional modules not shown, which will not be repeated here.
- the embodiment of the present invention also provides an electronic device, including a processor 510, a memory 509, and a computer program stored on the memory 509 and running on the processor 510.
- an electronic device including a processor 510, a memory 509, and a computer program stored on the memory 509 and running on the processor 510.
- the computer program is executed by the processor 510.
- the various processes of the foregoing audio processing method embodiments are implemented, and the same technical effects can be achieved. To avoid repetition, details are not repeated here.
- the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
- a computer program is stored on the computer-readable storage medium.
- the computer program is executed by a processor, each process of the above-mentioned audio processing method embodiment is realized, and the same technology can be achieved. The effect, in order to avoid repetition, will not be repeated here.
- the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.
- the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.
- a terminal which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
Description
Claims (16)
- 一种播放方法,应用于第一电子设备,所述方法包括:在所述第一电子设备和第二电子设备建立连接的情况下,将所述第一电子设备的第一应用程序的应用界面和音频数据分享给所述第二电子设备;根据所述第一应用程序在所述第一电子设备的音频播放状态,控制目标音频输出端的工作状态;其中,所述目标音频输出端中的每个音频输出端在同一时刻至多允许输出一个应用程序的音频;所述目标音频输出端包括以下至少一项:所述第一电子设备安装的音频输出装置、所述第一电子设备连接的音频输出设备。
- 根据权利要求1所述的方法,其中,所述根据所述第一应用程序在所述第一电子设备的音频播放状态,控制目标音频输出端的工作状态,包括以下至少一项:在所述第一应用程序在所述第一电子设备的音频播放状态为关闭状态的情况下,禁止所述目标音频输出端输出所述第一电子设备的音频;在所述第一应用程序在所述第一电子设备的音频播放状态为开启状态的情况下,若所述第一电子设备运行的目标应用程序中还包括具有音频播放功能的第二应用程序,则根据所述第一应用程序和所述第二应用程序的目标运行状态,控制所述目标音频输出端的工作状态;其中,所述目标运行状态包括前台运行状态或后台运行状态。
- 根据权利要求2所述的方法,其中,在所述目标音频输出端为所述第一电子设备安装的音频输出装置或所述第一电子设备连接的音频输出设备的情况下,所述根据所述第一应用程序和所述第二应用程序的目标运行状态,控制所述目标音频输出端的工作状态,包括以下至少一项:在所述第一应用程序的目标运行状态为前台运行状态,所述第二应用程序的目标运行状态为后台运行状态的情况下,允许所述目标音频输出端输出所述第一应用程序的音频,禁止所述目标音频输出端输出所述第二应用程序的音频;在所述第一应用程序的目标运行状态为后台运行状态,所述第二应用程 序的目标运行状态为前台运行状态的情况下,禁止所述目标音频输出端输出所述第一应用程序的音频,允许所述目标音频输出端输出所述第二应用程序的音频。
- 根据权利要求2所述的方法,其中,在所述目标音频输出端包括所述第一电子设备安装的音频输出装置和所述第一电子设备连接的音频输出设备的情况下,所述根据所述第一应用程序和所述第二应用程序的目标运行状态,控制所述目标音频输出端的工作状态,包括:根据所述第一应用程序和所述第二应用程序的目标运行状态,以及所述音频输出装置和所述音频输出设备对应的应用程序的类型,控制所述目标音频输出端的工作状态。
- 根据权利要求4所述的方法,其中,所述根据所述第一应用程序和所述第二应用程序的目标运行状态,以及所述音频输出装置和所述音频输出设备对应的应用程序的类型,控制所述目标音频输出端的工作状态,包括以下至少一项:在所述第一应用程序的目标运行状态为前台运行状态,所述第二应用程序的目标运行状态为后台运行状态,且第一音频输出端与处于前台运行状态的应用程序对应,第二音频输出端与处于后台运行状态对应的情况下,允许所述第一音频输出端输出所述第一应用程序的音频,允许所述第二音频输出端输出所述第二应用程序的音频;在所述第一应用程序的目标运行状态为后台运行状态,所述第二应用程序的目标运行状态为前台运行状态,且第一音频输出端与处于前台运行状态的应用程序对应,第二音频输出端与处于后台运行状态对应的情况下,允许所述第一音频输出端输出所述第二应用程序的音频,允许所述第二音频输出端输出所述第一应用程序的音频;其中,所述第一音频输出端为所述音频输出装置和所述音频输出设备中的一个,所述第二音频输出端为所述音频输出装置和所述音频输出设备中的另一个。
- 根据权利要求1所述的方法,其中,所述在所述第一电子设备和第二电子设备建立连接的情况下,将所述第一电子设备的第一应用程序的应用界 面和音频数据分享给所述第二电子设备,包括:在所述第一电子设备和第二电子设备建立连接,且所述第一电子设备选择向第二电子设备分享第一应用程序的情况下,在所述第一电子设备的虚拟屏幕中显示所述第一应用程序的应用界面;对虚拟屏幕进行录屏,得到录屏数据;获取所述第一应用程序的应用界面对应的音频数据;向第二电子设备发送所述录屏数据和所述音频数据。
- 一种电子设备,所述电子设备为第一电子设备,所述电子设备包括:分享模块,用于在所述第一电子设备和第二电子设备建立连接的情况下,将所述第一电子设备的第一应用程序的应用界面和音频数据分享给所述第二电子设备;控制模块,用于根据所述第一应用程序在所述第一电子设备的音频播放状态,控制目标音频输出端的工作状态;其中,所述目标音频输出端中的每个音频输出端在同一时刻至多允许输出一个应用程序的音频;所述目标音频输出端包括以下至少一项:所述第一电子设备安装的音频输出装置、所述第一电子设备连接的音频输出设备。
- 根据权利要求7所述的电子设备,其中,所述控制模块,包括以下至少一项:第一控制子模块,用于在所述第一应用程序在所述第一电子设备的音频播放状态为关闭状态的情况下,禁止所述目标音频输出端输出所述第一电子设备的音频;第二控制子模块,用于在所述第一应用程序在所述第一电子设备的音频播放状态为开启状态的情况下,若所述第一电子设备运行的目标应用程序中还包括具有音频播放功能的第二应用程序,则根据所述第一应用程序和所述第二应用程序的目标运行状态,控制所述目标音频输出端的工作状态;其中,所述目标运行状态包括前台运行状态或后台运行状态。
- 根据权利要求8所述的电子设备,其中,在所述目标音频输出端为所述第一电子设备安装的音频输出装置或所述第一电子设备连接的音频输出设备的情况下,所述第二控制子模块具体用于以下至少一项:在所述第一应用程序的目标运行状态为前台运行状态,所述第二应用程序的目标运行状态为后台运行状态的情况下,允许所述目标音频输出端输出所述第一应用程序的音频,禁止所述目标音频输出端输出所述第二应用程序的音频;在所述第一应用程序的目标运行状态为后台运行状态,所述第二应用程序的目标运行状态为前台运行状态的情况下,禁止所述目标音频输出端输出所述第一应用程序的音频,允许所述目标音频输出端输出所述第二应用程序的音频。
- 根据权利要求8所述的电子设备,其中,在所述目标音频输出端包括所述第一电子设备安装的音频输出装置和所述第一电子设备连接的音频输出设备的情况下,所述第二控制子模块具体用于:根据所述第一应用程序和所述第二应用程序的目标运行状态,以及所述音频输出装置和所述音频输出设备对应的应用程序的类型,控制所述目标音频输出端的工作状态。
- 根据权利要求10所述的电子设备,其中,所述第二控制子模块,包括以下至少一项:第一控制单元,用于在所述第一应用程序的目标运行状态为前台运行状态,所述第二应用程序的目标运行状态为后台运行状态,且第一音频输出端与处于前台运行状态的应用程序对应,第二音频输出端与处于后台运行状态对应的情况下,允许所述第一音频输出端输出所述第一应用程序的音频,允许所述第二音频输出端输出所述第二应用程序的音频;第二控制单元,用于在所述第一应用程序的目标运行状态为后台运行状态,所述第二应用程序的目标运行状态为前台运行状态,且第一音频输出端与处于前台运行状态的应用程序对应,第二音频输出端与处于后台运行状态对应的情况下,允许所述第一音频输出端输出所述第二应用程序的音频,允许所述第二音频输出端输出所述第一应用程序的音频;其中,所述第一音频输出端为所述音频输出装置和所述音频输出设备中的一个,所述第二音频输出端为所述音频输出装置和所述音频输出设备中的另一个。
- 根据权利要求7所述的电子设备,其中,所述分享模块还用于:在所述第一电子设备和第二电子设备建立连接,且所述第一电子设备选择向第二电子设备分享第一应用程序的情况下,在所述第一电子设备的虚拟屏幕中显示所述第一应用程序的应用界面;对虚拟屏幕进行录屏,得到录屏数据;获取所述第一应用程序的应用界面对应的音频数据;向第二电子设备发送所述录屏数据和所述音频数据。
- 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6中任一项所述的播放方法的步骤。
- 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的播放方法的步骤。
- 一种计算机程序产品,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1-6任一项所述的播放方法。
- 一种电子设备,所述电子设备被配置用于执行如权利要求1-6任一项所述的播放方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911420655.3 | 2019-12-31 | ||
CN201911420655.3A CN111078186A (zh) | 2019-12-31 | 2019-12-31 | 一种播放方法及电子设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021136141A1 true WO2021136141A1 (zh) | 2021-07-08 |
Family
ID=70321311
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/139910 WO2021136141A1 (zh) | 2019-12-31 | 2020-12-28 | 播放方法及电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111078186A (zh) |
WO (1) | WO2021136141A1 (zh) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111078186A (zh) * | 2019-12-31 | 2020-04-28 | 维沃移动通信有限公司 | 一种播放方法及电子设备 |
CN111831190B (zh) * | 2020-07-10 | 2022-05-03 | 维沃移动通信有限公司 | 音乐应用程序控制方法、装置及电子设备 |
CN113076082B (zh) * | 2021-06-03 | 2021-09-03 | 杭州星犀科技有限公司 | 音频源处理的方法、系统、电子装置和存储介质 |
CN115268821B (zh) * | 2022-06-22 | 2023-07-11 | 阿波罗智联(北京)科技有限公司 | 音频播放方法及装置、设备和介质 |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107229448A (zh) * | 2017-06-30 | 2017-10-03 | 联想(北京)有限公司 | 音频播放方法及电子设备 |
CN107241640A (zh) * | 2017-06-26 | 2017-10-10 | 中广热点云科技有限公司 | 一种移动设备和电视设备同步播放的方法 |
CN107835979A (zh) * | 2015-06-29 | 2018-03-23 | 微软技术许可有限责任公司 | 智能音频路由管理 |
CN108781236A (zh) * | 2017-06-16 | 2018-11-09 | 华为技术有限公司 | 音频播放方法及电子设备 |
CN108958684A (zh) * | 2018-06-22 | 2018-12-07 | 维沃移动通信有限公司 | 投屏方法及移动终端 |
US20190341038A1 (en) * | 2018-05-07 | 2019-11-07 | Spotify Ab | Voice recognition system for use with a personal media streaming appliance |
CN111078186A (zh) * | 2019-12-31 | 2020-04-28 | 维沃移动通信有限公司 | 一种播放方法及电子设备 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104079986A (zh) * | 2014-06-05 | 2014-10-01 | 上海聚力传媒技术有限公司 | 一种用于实现设备间播放视频的方法与设备 |
CN107783833B (zh) * | 2016-08-25 | 2020-04-28 | 华为技术有限公司 | 一种终端后台应用程序的管理方法及装置 |
CN108509176B (zh) * | 2018-04-10 | 2021-06-08 | Oppo广东移动通信有限公司 | 一种播放音频数据的方法、装置、存储介质及智能终端 |
-
2019
- 2019-12-31 CN CN201911420655.3A patent/CN111078186A/zh active Pending
-
2020
- 2020-12-28 WO PCT/CN2020/139910 patent/WO2021136141A1/zh active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107835979A (zh) * | 2015-06-29 | 2018-03-23 | 微软技术许可有限责任公司 | 智能音频路由管理 |
CN108781236A (zh) * | 2017-06-16 | 2018-11-09 | 华为技术有限公司 | 音频播放方法及电子设备 |
CN107241640A (zh) * | 2017-06-26 | 2017-10-10 | 中广热点云科技有限公司 | 一种移动设备和电视设备同步播放的方法 |
CN107229448A (zh) * | 2017-06-30 | 2017-10-03 | 联想(北京)有限公司 | 音频播放方法及电子设备 |
US20190341038A1 (en) * | 2018-05-07 | 2019-11-07 | Spotify Ab | Voice recognition system for use with a personal media streaming appliance |
CN108958684A (zh) * | 2018-06-22 | 2018-12-07 | 维沃移动通信有限公司 | 投屏方法及移动终端 |
CN111078186A (zh) * | 2019-12-31 | 2020-04-28 | 维沃移动通信有限公司 | 一种播放方法及电子设备 |
Also Published As
Publication number | Publication date |
---|---|
CN111078186A (zh) | 2020-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021098678A1 (zh) | 投屏控制方法及电子设备 | |
US11496835B2 (en) | Speaker control method and mobile terminal | |
WO2021204045A1 (zh) | 音频的控制方法及电子设备 | |
WO2021136141A1 (zh) | 播放方法及电子设备 | |
WO2020042785A1 (zh) | 应用显示方法和移动终端 | |
WO2021109907A1 (zh) | 应用分享方法、第一电子设备及计算机可读存储介质 | |
WO2020233285A1 (zh) | 消息显示方法及终端设备 | |
EP3691235A1 (en) | Display method and mobile terminal | |
KR102554191B1 (ko) | 정보 처리 방법 및 단말 | |
WO2021063249A1 (zh) | 电子设备的控制方法及电子设备 | |
WO2021104230A1 (zh) | 同步方法及电子设备 | |
WO2020186964A1 (zh) | 音频信号的输出方法及终端设备 | |
WO2021109925A1 (zh) | 应用分享方法、电子设备及计算机可读存储介质 | |
WO2021098705A1 (zh) | 显示方法及电子设备 | |
WO2021004317A1 (zh) | 发射天线的切换方法及终端设备 | |
WO2021129529A1 (zh) | 设备切换方法及相关设备 | |
WO2020042892A1 (zh) | 通话模式切换方法及终端设备 | |
WO2021083256A1 (zh) | 触控响应方法及电子设备 | |
WO2021037074A1 (zh) | 音频输出方法及电子设备 | |
WO2021109959A1 (zh) | 应用程序分享方法及电子设备 | |
WO2021104251A1 (zh) | 控制方法及第一电子设备 | |
WO2019223569A1 (zh) | 信息处理方法及移动终端 | |
WO2021129835A1 (zh) | 音量控制方法、设备及计算机可读存储介质 | |
CN111147919A (zh) | 一种播放调整方法、电子设备及计算机可读存储介质 | |
WO2021068885A1 (zh) | 控制方法及电子设备 |
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: 20910862 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: 20910862 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 04/01/2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20910862 Country of ref document: EP Kind code of ref document: A1 |