CN111694537A - Audio playing method, electronic equipment and readable storage medium - Google Patents

Audio playing method, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111694537A
CN111694537A CN202010489859.9A CN202010489859A CN111694537A CN 111694537 A CN111694537 A CN 111694537A CN 202010489859 A CN202010489859 A CN 202010489859A CN 111694537 A CN111694537 A CN 111694537A
Authority
CN
China
Prior art keywords
play
source
playing
audio
input
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.)
Granted
Application number
CN202010489859.9A
Other languages
Chinese (zh)
Other versions
CN111694537B (en
Inventor
葛伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co 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 Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202010489859.9A priority Critical patent/CN111694537B/en
Publication of CN111694537A publication Critical patent/CN111694537A/en
Application granted granted Critical
Publication of CN111694537B publication Critical patent/CN111694537B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides an audio playing method, electronic equipment and a readable storage medium, wherein the method comprises the following steps: displaying a first control in a first display mode under the condition that a first play source is operated; running a second play source; displaying a first control in a second display mode under the condition that the first play source and the second play source are operated simultaneously; receiving a first input of a user to the first control; and responding to the first input, and controlling the audio playing of the first playing source and the second playing source according to the playing mode determined by the first input. In the embodiment of the invention, the user can uniformly manage the playing modes of the playing sources which run simultaneously through the first control, so that the audio playing can meet the requirements of the user.

Description

Audio playing method, electronic equipment and readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to an audio playing method, electronic equipment and a readable storage medium.
Background
More and more software (music software, video software, book listening software, etc.) with audio playing functions are available, and many of the software have a background playing function, so that a user can still play the software normally after hiding the software in a background, and meanwhile, as the user demand increases, individual software also has a function of allowing the software to be played simultaneously with other applications, as shown in table 1, the software is horizontally arranged as a second playing source running on a current interface, and the software is vertically arranged as a first playing source running on the background, wherein:
(1) app1 has opened the "allow simultaneous play with other applications" setting;
(2) app2 has closed the "allow play with other applications" setting;
(3) app4 and App5 both start the setting of "background play";
(4) the "√" indicates that both can be played at the same time,
(5) "x" indicates that the second playback source will play and interrupt the first playback source;
App1 App2 App3 App4 App5
App1 -
App2 × - × × ×
App3 × - ×
App4 × × × -
App5 -
TABLE 1
From the above table the following conclusions can be drawn:
(1) whether or not simultaneous playback is possible depends on settings within the playback source application;
(2) the policies of different apps may differ:
(3) both App4 and App5 can be played in a background, but the situation of whether simultaneous playing is supported is not consistent;
(3) the various apps are different in friendliness degree, and according to the table, when the App3 is played, the apps 2 and 4 can flexibly and actively break themselves.
Therefore, in the existing audio playing mode, each App has its own playing strategy, and when multiple playing sources run simultaneously, the user is difficult to predict the playing effect; in addition, when a user plays multiple audios simultaneously, the user finds that the strategies are not the strategies required by the user, and the user needs to enter each App independently for setting and adjustment, so that the operation is very complicated.
Disclosure of Invention
The embodiment of the invention provides an audio playing method, electronic equipment and a computer readable storage medium, and solves the problems that the existing audio playing mode setting operation is complicated and the user requirements are difficult to meet.
In a first aspect, an embodiment of the present invention provides an audio playing method, where the method includes:
displaying a first control in a first display mode under the condition that a first play source is operated;
running a second play source;
displaying a first control in a second display mode under the condition that the first play source and the second play source are operated simultaneously;
receiving a first input of a user to the first control;
and responding to the first input, and controlling the audio playing of the first playing source and the second playing source according to the playing mode determined by the first input.
In a second aspect, an embodiment of the present invention provides an audio playing apparatus, including:
the first display module is used for displaying a first control in a first display mode under the condition that a first play source is operated;
the running module is used for running the second playing source;
the second display module is used for displaying the first control in a second display mode under the condition that the first playing source and the second playing source are operated simultaneously;
the first receiving module is used for receiving a first input of a user to the first control;
and the control module is used for responding to the first input and controlling the audio playing of the first playing source and the second playing source according to the playing mode determined by the first input.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a program stored on the memory and executable on the processor, where the program, when executed by the processor, implements the steps of the audio playing method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a readable storage medium, on which a program is stored, where the program, when executed by a processor, implements the steps of the audio playing method according to the first aspect.
In the embodiment of the invention, the user can uniformly manage the playing modes of the playing sources which run simultaneously through the first control, so that the audio playing can meet the requirements of the user.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of an audio playing method according to an embodiment of the present invention;
fig. 2 is a schematic view of an application scenario provided in an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 4 is a second schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
Herein, relational terms such as "first" and "second", and the like, are used solely to distinguish one from another of like names, and do not imply a relationship or order between the names.
In the embodiment of the present invention, the electronic device may be a Mobile phone, a tablet Computer, a notebook Computer, an Ultra-Mobile Personal Computer (UMPC), a netbook, a Personal Digital Assistant (PDA), or the like.
Referring to fig. 1, an embodiment of the present invention provides an audio playing method, where an execution subject of the method may be an electronic device, and the method includes:
step 101: displaying a first control in a first display mode under the condition that a first play source is operated;
the first playback source may be executed in the foreground or in the background.
Step 102: running a second play source;
step 103: displaying a first control in a second display mode under the condition that the first play source and the second play source are operated simultaneously;
in embodiments of the present invention, the first control may have multiple forms, for example: the embodiment of the invention does not limit the specific form of the first control, the first control can be displayed at any position in the screen of the electronic equipment, and a user can adjust the display position of the first control through operations such as dragging.
Optionally, in a case where the first play source is executed, the first control is displayed in a first display mode, for example: the first control is displayed as a circle; thereafter, a second playback source is run, and in the case that the first playback source and the second playback source are run simultaneously, the first control is displayed in a second display mode, for example: the first control is displayed as a triangle. In this way, through the display mode of the first control, the user can intuitively know that the electronic device is running one or more play sources.
In some embodiments, when the first playback source is run in the background and the second playback source is run in the current interface, a prompt message for prompting the user to set the playback mode, that is, for prompting the user to set the playback modes of the two playback sources that are run simultaneously, is displayed in the first control. For example, referring to fig. 2, the first control 21 is a hover ball, and an audio image may be displayed in the hover ball to prompt the user to perform a setting of a play mode. It is to be understood that the prompt information may also be in a text or other form, and this is not particularly limited in the embodiment of the present invention.
Step 104: receiving a first input of a user to a first control;
in the embodiment of the invention, when the electronic device operates the first play source and the second play source at the same time, the user can perform the first input on the first control to set the play modes of the first play source and the second play source.
With continued reference to fig. 2, in some embodiments, the first control includes at least one icon, wherein one icon corresponds to one play mode.
Optionally, receiving a first input of the first control from the user specifically includes:
receiving a first input of a user to any one of at least one icon;
in the embodiment of the present invention, a user may click a first control, and accordingly a plurality of icons are displayed in a screen, where different icons correspond to different play modes, and fig. 2 shows three play modes, which are respectively: a simultaneous play mode corresponding to the double arrow icon, a first stop play mode corresponding to the stop icon, and a second stop play mode corresponding to the clock icon. Different play modes can be set by making a first input to different icons.
Step 105: and responding to the first input, and controlling the audio playing of the first playing source and the second playing source according to the playing mode determined by the first input.
In the embodiment of the invention, the audio playing of the first playing source and the second playing source is controlled according to the set playing mode.
Continuing to refer to fig. 2, taking the scenario shown in fig. 2 as an example, where the second playback source 201 is a video app (it is understood that a video may be regarded as a combination of picture playback and audio playback, and therefore the video app also belongs to a playback source for audio playback), and the first playback source 202 is a music app (optionally, as shown in fig. 2, when the first playback source runs in the background, a partial interface may be displayed in the screen to prompt that there is a playback source running in the background currently).
As shown in fig. 2, the play mode includes: a simultaneous play mode, a first stop play mode and a second stop play mode.
Controlling the audio playing of the first playing source and the second playing source according to the playing mode determined by the first input, specifically comprising:
under the condition that the play mode determined by the first input is a simultaneous play mode, controlling the first play source and the second play source to simultaneously play audio;
in the embodiment of the invention, in the simultaneous playing mode, the first playing source and the second playing source play audio simultaneously. Optionally, the audio of the first playback source and the audio of the second playback source are played in left and right channels of the electronic device, respectively, and the volume of the first playback source is greater than the volume of the second playback source.
Under the condition that the play mode determined by the first input is a first play stopping mode, controlling the first play source to stop audio play and controlling the second play source to play audio;
in this embodiment of the present invention, the first play stop mode may also be referred to as a long-term switching mode, specifically, the first play stop mode stops the first play source and starts the audio play of the second play source, and after the second play source finishes playing, the audio play of the first play source is not automatically resumed, and the user may manually restart the audio play of the first play source.
And under the condition that the play mode determined by the first input is a second play stop mode, controlling the first play source to stop audio play, controlling the second play source to play audio, and controlling the first play source to resume audio play after the second play source stops audio play and is spaced for a preset time length.
In this embodiment of the present invention, the second play stop mode may also be referred to as a temporary switch mode, and specifically is to temporarily suspend the first play source, start audio playing of the second play source, and after the second play source is finished, interval a preset time (for example, 2 seconds, or set by a user), and then resume audio playing of the first play source.
Therefore, different playing modes are selected, the use requirements of the user in different scenes and under different conditions are met, and the use experience of the electronic equipment is improved.
Further, the method also comprises the following steps:
(1) receiving a second input of the user;
(2) configuring a playlist of playback sources in response to a second input;
in the embodiment of the present invention, the user may configure the playlist of the playback sources by the second input, and pre-select one or more playback sources in the playlist.
Correspondingly, in the case that the first play source is operated, the method further comprises:
(3) under the condition that the first playing source and the second playing source are operated simultaneously, acquiring information of the second playing source;
in this embodiment of the present invention, the information of the second playback source may be a name or storage information of the second playback source, and the category of the information is not specifically limited in this embodiment of the present invention.
(4) And under the condition that the play source list comprises a second play source, controlling the first play source to stop audio play, controlling the second play source to play audio, and controlling the first play source to resume audio play after the second play source stops audio play and the interval is preset for a long time.
In the embodiment of the present invention, when the second playback source is a playback source in the playback source list, the playback mode is directly determined to be the second stop playback mode, that is, after the playback of the second playback source is completed, the audio playback is automatically resumed by the first playback source.
Thus, for some special play sources, the user usually only listens to the audio played by the play source temporarily, for example, voice information received by some voice social apps, and the user may select such a play source into the play source list in advance, so that the electronic device can automatically select a play mode for the play sources, and the electronic device is more intelligent.
Referring to fig. 3, an embodiment of the present invention provides an audio playing apparatus 300, including:
a first display module 301, configured to display a first control in a first display mode when a first playback source is executed;
an operation module 302, configured to operate the second playback source;
a second display module 303, configured to display a first control in a second display mode when the first playback source and the second playback source are simultaneously operated;
a first receiving module 304, configured to receive a first input to the first control by a user;
a control module 305, configured to control, in response to the first input, audio playing of the first playing source and the second playing source according to the playing mode determined by the first input.
Optionally, the first control includes at least one icon, where one icon corresponds to one of the play modes;
the first receiving module 304 is specifically configured to receive a first input of any one of the at least one icon from a user.
Optionally, the control module 305 includes:
a first control unit, configured to control the first playback source and the second playback source to perform audio playback simultaneously when the playback mode determined by the first input is a simultaneous playback mode;
the second control unit is used for controlling the first playing source to stop audio playing and controlling the second playing source to play audio under the condition that the playing mode determined by the first input is a first playing stopping mode;
and the third control unit is used for controlling the first playing source to stop audio playing and controlling the second playing source to play audio under the condition that the playing mode determined by the first input is the second playing stopping mode, and controlling the first playing source to resume audio playing after the second playing source stops audio playing and a preset time interval.
Optionally, the audio playing apparatus 300 further includes:
the second receiving module is used for receiving a second input of the user;
a configuration module for configuring a playlist in response to the second input;
the acquisition module is used for acquiring the information of the second play source under the condition that the first play source and the second play source are operated simultaneously;
the control module is further configured to control the first play source to stop audio playing and control the second play source to perform audio playing under the condition that the play source list includes the second play source, and control the first play source to resume audio playing after the second play source stops audio playing and a preset time interval.
In the embodiment of the invention, the user can uniformly manage the playing modes of the playing sources which run simultaneously through the first control, so that the audio playing can meet the requirements of the user.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device for implementing various embodiments of the present invention, and as shown in the figure, the electronic device 400 includes but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
A display unit 406, which may be configured to display a first control in a first display mode when the first playback source is executed;
a processor 410 operable to run a second playback source;
the display unit 406 may be further configured to display a first control in a second display mode when the first playback source and the second playback source are simultaneously executed;
a user input unit 407, configured to receive a first input of the first control from a user;
the processor 410 may be further configured to control, in response to the first input, audio playback of the first playback source and the second playback source according to the playback mode determined by the first input.
In the embodiment of the invention, the user can uniformly manage the playing modes of the playing sources which run simultaneously through the first control, so that the audio playing can meet the requirements of the user.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 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. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 402, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the electronic apparatus 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The electronic device 400 also includes at least one sensor 405, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 4061 and/or the backlight when the electronic apparatus 400 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
The interface unit 408 is an interface for connecting an external device to the electronic apparatus 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby performing overall monitoring of the electronic device. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The electronic device 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 400 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the computer program implements each process of the method embodiments shown in fig. 1 to 2, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the method embodiments shown in fig. 1 to fig. 2, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. An audio playing method, the method comprising:
displaying a first control in a first display mode under the condition that a first play source is operated;
running a second play source;
displaying a first control in a second display mode under the condition that the first play source and the second play source are operated simultaneously;
receiving a first input of a user to the first control;
and responding to the first input, and controlling the audio playing of the first playing source and the second playing source according to the playing mode determined by the first input.
2. The method of claim 1,
the first control comprises at least one icon, wherein one icon corresponds to one play mode;
the receiving a first input of the first control by a user comprises:
and receiving a first input of any icon in the at least one icon from a user.
3. The method of claim 2, wherein the controlling the audio playback of the first playback source and the second playback source according to the playback mode determined by the first input comprises:
under the condition that the play mode determined by the first input is a simultaneous play mode, controlling the first play source and the second play source to simultaneously play audio;
under the condition that the play mode determined by the first input is a first play stopping mode, controlling the first play source to stop audio play and controlling the second play source to play audio;
and under the condition that the play mode determined by the first input is a second play stop mode, controlling the first play source to stop audio play, controlling the second play source to play audio, and controlling the first play source to resume audio play after the second play source stops audio play and is spaced for a preset time length.
4. The method of claim 1, further comprising:
receiving a second input of the user;
configuring a playlist of playback sources in response to the second input;
under the condition that the first playing source and the second playing source are operated simultaneously, acquiring information of the second playing source;
and under the condition that the play source list comprises the second play source, controlling the first play source to stop audio play, controlling the second play source to play audio, and controlling the first play source to resume audio play after the second play source stops audio play and the interval is preset.
5. An audio playback apparatus, comprising:
the first display module is used for displaying a first control in a first display mode under the condition that a first play source is operated;
the running module is used for running the second playing source;
the second display module is used for displaying the first control in a second display mode under the condition that the first playing source and the second playing source are operated simultaneously;
the first receiving module is used for receiving a first input of a user to the first control;
and the control module is used for responding to the first input and controlling the audio playing of the first playing source and the second playing source according to the playing mode determined by the first input.
6. The audio playback device of claim 5, wherein the first control comprises at least one icon, wherein one icon corresponds to one of the playback modes;
the first receiving module is specifically configured to receive a first input of a user to any one of the at least one icon.
7. The audio playback device of claim 6, wherein the control module comprises:
a first control unit, configured to control the first playback source and the second playback source to perform audio playback simultaneously when the playback mode determined by the first input is a simultaneous playback mode;
the second control unit is used for controlling the first playing source to stop audio playing and controlling the second playing source to play audio under the condition that the playing mode determined by the first input is a first playing stopping mode;
and the third control unit is used for controlling the first playing source to stop audio playing and controlling the second playing source to play audio under the condition that the playing mode determined by the first input is the second playing stopping mode, and controlling the first playing source to resume audio playing after the second playing source stops audio playing and a preset time interval.
8. The audio playback apparatus of claim 7, wherein the electronic device further comprises:
the second receiving module is used for receiving a second input of the user;
a configuration module for configuring a playlist in response to the second input;
the acquisition module is used for acquiring the information of the second play source under the condition that the first play source and the second play source are operated simultaneously;
the control module is further configured to control the first play source to stop audio playing and control the second play source to perform audio playing under the condition that the play source list includes the second play source, and control the first play source to resume audio playing after the second play source stops audio playing and a preset time interval.
9. An electronic device comprising a processor, a memory, and a program stored on the memory and executable on the processor, the program, when executed by the processor, implementing the steps of the audio playback method of any of claims 1 to 4.
10. A readable storage medium, on which a program is stored, which when executed by a processor implements the steps of the audio playback method according to any one of claims 1 to 4.
CN202010489859.9A 2020-06-02 2020-06-02 Audio playing method, electronic equipment and readable storage medium Active CN111694537B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010489859.9A CN111694537B (en) 2020-06-02 2020-06-02 Audio playing method, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010489859.9A CN111694537B (en) 2020-06-02 2020-06-02 Audio playing method, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111694537A true CN111694537A (en) 2020-09-22
CN111694537B CN111694537B (en) 2022-09-16

Family

ID=72479241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010489859.9A Active CN111694537B (en) 2020-06-02 2020-06-02 Audio playing method, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111694537B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112099755A (en) * 2020-10-15 2020-12-18 上海商米科技集团股份有限公司 Method for simultaneously calling input audio stream by multiple applications and readable medium
CN112965685A (en) * 2021-02-04 2021-06-15 RealMe重庆移动通信有限公司 Audio control method, device, system, terminal equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677703A (en) * 2012-09-18 2014-03-26 联想(北京)有限公司 Electronic equipment and volume adjusting method thereof
US20140140674A1 (en) * 2012-11-21 2014-05-22 Cambridge Executive Limited Wireless transmission of media to an audio/visual output device
CN105955579A (en) * 2016-04-29 2016-09-21 北京小米移动软件有限公司 Music playing control method and device
CN111177453A (en) * 2020-01-07 2020-05-19 百度在线网络技术(北京)有限公司 Method, device and equipment for controlling audio playing and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677703A (en) * 2012-09-18 2014-03-26 联想(北京)有限公司 Electronic equipment and volume adjusting method thereof
US20140140674A1 (en) * 2012-11-21 2014-05-22 Cambridge Executive Limited Wireless transmission of media to an audio/visual output device
CN105955579A (en) * 2016-04-29 2016-09-21 北京小米移动软件有限公司 Music playing control method and device
CN111177453A (en) * 2020-01-07 2020-05-19 百度在线网络技术(北京)有限公司 Method, device and equipment for controlling audio playing and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112099755A (en) * 2020-10-15 2020-12-18 上海商米科技集团股份有限公司 Method for simultaneously calling input audio stream by multiple applications and readable medium
CN112965685A (en) * 2021-02-04 2021-06-15 RealMe重庆移动通信有限公司 Audio control method, device, system, terminal equipment and storage medium
CN112965685B (en) * 2021-02-04 2023-08-25 RealMe重庆移动通信有限公司 Audio control method, device, system, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN111694537B (en) 2022-09-16

Similar Documents

Publication Publication Date Title
EP4047940A1 (en) Screencast control method and electronic device
CN108062190B (en) Application running state control method and mobile terminal
CN110989882B (en) Control method, electronic device and computer readable storage medium
CN109814822B (en) Multimedia play control method and device and terminal equipment
CN108712566B (en) Voice assistant awakening method and mobile terminal
CN110837327B (en) Message viewing method and terminal
US11658932B2 (en) Message sending method and terminal device
EP4072074A1 (en) Configuration information sharing method, terminal device and computer-readable storage medium
WO2019154182A1 (en) Method for setting volume of application program, and mobile terminal
CN109901695B (en) Screen power-saving display method, mobile terminal and computer-readable storage medium
WO2019080775A1 (en) Notification message prompting method and mobile terminal
CN110308834B (en) Setting method of application icon display mode and terminal
CN107613095B (en) Incoming call processing method and mobile terminal
US11989330B2 (en) Permission management method and terminal device
WO2019169991A1 (en) Display method and mobile terminal
CN110855921B (en) Video recording control method and electronic equipment
WO2020024770A1 (en) Method for determining communication object, and mobile terminal
CN106951143B (en) Method and device for hiding application icons
CN111694537B (en) Audio playing method, electronic equipment and readable storage medium
CN111417929A (en) Interface display method and control terminal
CN111459603A (en) Icon display method and electronic equipment
CN111367450A (en) Application program control method, electronic device and medium
CN111694497B (en) Page combination method and electronic equipment
CN111475066B (en) Background switching method of application program and electronic equipment
CN111240551B (en) Application program control method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant