CN112559044A - Play switching method and device and computer readable storage medium - Google Patents
Play switching method and device and computer readable storage medium Download PDFInfo
- Publication number
- CN112559044A CN112559044A CN202011540282.6A CN202011540282A CN112559044A CN 112559044 A CN112559044 A CN 112559044A CN 202011540282 A CN202011540282 A CN 202011540282A CN 112559044 A CN112559044 A CN 112559044A
- Authority
- CN
- China
- Prior art keywords
- application
- switching
- audio
- play
- operation instruction
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000006870 function Effects 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 10
- 238000004891 communication Methods 0.000 claims description 4
- 238000013507 mapping Methods 0.000 claims description 3
- 210000003811 finger Anatomy 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 230000006399 behavior Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 210000003813 thumb Anatomy 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/30003—Arrangements for executing specific machine instructions
- G06F9/30076—Arrangements for executing specific machine instructions to perform miscellaneous control operations, e.g. NOP
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/63—Querying
- G06F16/635—Filtering based on additional data, e.g. user or group profiles
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application provides a play switching method, a play switching device and a computer readable storage medium, wherein the play switching method comprises the following steps: receiving an operation instruction input by a play stopping control aiming at a first application running in a foreground; switching the second application running in the background to the foreground to run according to the operation instruction; and controlling the second application to play audio. Through the implementation of the scheme, only one step of operation needs to be executed for the play stopping control of the first application which is currently playing the audio, the second application can be automatically switched to play the audio, the operation flow of switching the audio playing is effectively simplified, and the operation efficiency of a user is improved.
Description
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method and an apparatus for switching between playing modes and a computer-readable storage medium.
Background
With the continuous development of electronic technology, an electronic device is not only a simple communication tool, but also becomes a diversified user-to-outside interactive window, in practical applications, a plurality of applications with audio playing functions, such as a music player, a radio station, etc., are usually installed on the electronic device, and a user usually has a requirement for switching playing of a plurality of applications during use.
At present, when a user uses a certain application running in the foreground to play audio, if the user needs to switch back to another application running before the user performs audio playing, the user needs to execute a play stop instruction on the current application, then execute an application switching instruction to switch to another application, and then trigger a play start instruction for another application, so that the whole play switching operation is complicated.
Disclosure of Invention
The embodiment of the application provides a play switching method, a play switching device and a computer readable storage medium, which can at least solve the problem that the operation of an inter-application audio play switching scheme provided by the related technology is complex.
A first aspect of an embodiment of the present application provides a play switching method, which is applied to an application having an audio play function, and includes:
receiving an operation instruction input by a play stopping control aiming at a first application running in a foreground;
switching the second application running in the background to the foreground to run according to the operation instruction;
and controlling the second application to play audio.
A second aspect of the embodiments of the present application provides a playback switching apparatus, which is applied to an application having an audio playback function, and includes:
the receiving module is used for receiving an operation instruction input by a play stopping control aiming at a first application running in a foreground;
the switching module is used for switching the second application running in the background to the foreground to run according to the operation instruction;
and the playing module is used for controlling the second application to play audio.
A third aspect of embodiments of the present application provides an electronic apparatus, including: the playback switching method includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the playback switching method provided in the first aspect of the embodiments of the present application when executing the computer program.
A fourth aspect of the present embodiment provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the play switching method provided in the first aspect of the present embodiment.
As can be seen from the above, according to the play switching method, device and computer-readable storage medium provided by the present application, an operation instruction input for a play stop control of a first application running in a foreground is received; switching the second application running in the background to the foreground to run according to the operation instruction; and controlling the second application to play audio. Through the implementation of the scheme, only one step of operation needs to be executed for the play stopping control of the first application which is currently playing the audio, the second application can be automatically switched to play the audio, the operation flow of switching the audio playing is effectively simplified, and the operation efficiency of a user is improved.
Drawings
Fig. 1 is a schematic basic flow chart of a play switching method according to a first embodiment of the present application;
fig. 2 is a schematic interface diagram of an audio playing application according to a first embodiment of the present application;
fig. 3 is a schematic diagram of application switching according to a first embodiment of the present application;
fig. 4 is a flowchart illustrating an audio playing control method according to a first embodiment of the present application;
fig. 5 is a detailed flowchart of a play switching method according to a second embodiment of the present application;
fig. 6 is a schematic diagram of program modules of a playback switching apparatus according to a third embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application.
Detailed Description
In order to make the objects, features and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments of the present application. 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 application.
In order to solve the defect that the operation of the inter-application audio playing switching scheme provided in the related art is complicated, the first embodiment of the present application provides a playing switching method, which is applied to applications with an audio playing function (i.e., audio playing applications), such as a music player, a radio station, and the like.
As shown in fig. 1, which is a basic flowchart of the play switching method provided in this embodiment, the play switching method includes the following steps:
Specifically, as shown in fig. 2, which is an interface schematic diagram of an audio playing application provided in this embodiment, when the audio playing application runs in the foreground, a plurality of different playing control controls, such as a previous song switching control, a next song switching control, a playing stop control, and the like, are displayed on the display interface, where please see a in fig. 2 for the playing stop control. In practical application, the play stopping control is used for opening an audio play pause function to a user, and in addition, if the application is a call application, the play stopping control is a call hang-up control. It should be noted that the operation instruction of the present embodiment is generally a press instruction, and the press duration, the press number, and the like when the operation instruction is executed can be flexibly selected according to the actual application scenario.
And 102, switching the second application running in the background to the foreground to run according to the operation instruction.
Specifically, as shown in fig. 3, an application switching diagram provided by this embodiment is shown, where a in fig. 3 is a display interface of a first application, and B is a display interface of a second application, and this embodiment controls a foreground display interface of the electronic device to jump to the second application while controlling the first application to stop playing audio (please refer to fig. 3, where the stop playing control originally displayed on a is converted into a start playing control) in response to an operation instruction input for the stop playing control of the first application.
In an exemplary implementation of this embodiment, the first application and the second application may be a music player and a sound station, respectively. In a preferred embodiment of this embodiment, the first application is a call application, the second application is a music player, and in an actual application scenario, when a user uses the music player to play music, if the call application receives an incoming call, the music player of the user may pause playing and run in a background, and when the user hangs up the incoming call, the music player usually has a requirement to continue playing music.
And 103, controlling the second application to play audio.
Specifically, this embodiment still automatically controls the second application to carry out audio playing when the second application switches to the foreground operation to the stop audio playing from the first application only needs to execute one step of operation to the start audio playing of the second application, has effectively simplified the operation flow that audio playing switched, has promoted user's operating efficiency.
In some embodiments of this embodiment, the step of switching the second application running in the background to the foreground running according to the operation instruction specifically includes: determining a second application to be switched from a plurality of applications running in the background according to the operation instruction; and switching the second application to the foreground for running.
Specifically, in practical applications, a user may have a use requirement of multiple audio playing applications at the same time, so that multiple applications with playing suspended are run in the background.
Further, in some embodiments of this embodiment, the step of determining the second application to be switched from the plurality of applications running in the background according to the operation instruction specifically includes: identifying a command input characteristic corresponding to the operating command; and determining a second application to be switched from the plurality of applications running in the background according to the instruction input characteristics.
Specifically, in this embodiment, when the command input operation behaviors are different, the command input characteristics are also different, taking the operation command as a pressing command as an example, the command input characteristics may be the pressing times, the pressing duration, and the like. It should be understood that, in this embodiment, a corresponding instruction input feature may be configured for each application in advance, and then, in an actual application process, the application to be switched may be indexed according to the instruction input feature when the operation instruction is currently input.
Further, in some embodiments of the present embodiment, the operation command is a press command. Correspondingly, the step of identifying the instruction input characteristics corresponding to the operation instruction specifically includes: the fingerprint characteristic information of the user fingerprint image synchronously acquired by the screen fingerprint identification module aiming at the pressing instruction is identified; the step of determining the second application to be switched from the plurality of applications running in the background according to the instruction input feature specifically includes: and determining a second application to be switched from a plurality of applications running in the background according to the fingerprint characteristic information and the preset mapping relation between the fingerprint characteristic information and the applications.
Specifically, in practical applications, a user presses the play stop control by a finger to input an operation instruction, and in this embodiment, it is considered that fingerprint features of different fingers of the user are different, so that even though an action of instruction input operation is the same, the operation instruction can be distinguished according to the difference of the fingers inputting the instruction. In this embodiment, when it is detected that the user presses the play stop control and inputs an operation instruction, the under-screen fingerprint module configured on the electronic device is controlled to synchronously acquire a fingerprint image when the user performs the pressing operation, and fingerprint feature information of a finger performing the pressing operation is extracted through the fingerprint image, so that the play stop control pressed by the user through which finger is pressed can be distinguished, and the index can be corresponded to the application to be switched according to the fingerprint feature information. For example, the current background has a plurality of audio playing applications for switching, including an application a, an application B, and an application C, where fingerprint feature information of a thumb, an index finger, and a middle finger is respectively configured for the application a, the application B, and the application C in advance, and if the current user performs a pressing operation on the play stopping control through the index finger, the user fingerprint feature information acquired when the pressing instruction is detected is the fingerprint feature information of the index finger, and then the application B is correspondingly determined as a target application of the three applications that are run in the background, which is switched by the user in due period.
Further, in another implementation manner of this embodiment, the step of determining the second application to be switched from the plurality of applications running in the background according to the operation instruction specifically includes: responding to an operation instruction, and acquiring switching priorities of a plurality of applications running in a background; and determining the application with the highest switching priority as the second application to be switched.
Specifically, in another implementation, the operation instruction of the user for switching the audio playback may be fixed, and the specific application that is desired to be switched when the audio playback switching is performed is associated with the application attributes of the multiple applications running in the background. In this embodiment, a switching priority may be preconfigured for the multiple applications, where the switching priority may be determined based on the use frequency of each application in a preset historical time period, the installed time length of the application, and the like, and the switching priority may also be obtained in real time for the multiple applications, for example, the switching priority may be determined based on the time sequence of this starting of the multiple applications running in the background, the continuous running time length of this time, and the like. It should be understood that the application with the highest switching priority in this embodiment is the application that best meets the switching desire of the audio playing of the user.
In some embodiments of this embodiment, before the step of switching the second application running in the background to the foreground according to the operation instruction, the method further includes: identifying a command input characteristic corresponding to the operating command; and judging whether the application switching condition is met or not according to the instruction input characteristics.
Specifically, in this embodiment, because the play stop control has an inherent attribute that provides an audio play stop function to the user, it is necessary to switch to the second application to start audio play while determining whether the actual usage requirement of the current user is to stop only audio play of the first application or to stop audio play of the first application in the actual application, based on which, this embodiment may distinguish the current actual requirement of the user according to a difference in instruction input behaviors when the user inputs an operation instruction for the play stop control, for example, taking the operation instruction as a press instruction, associate an application switching condition with a press duration, determine that the user currently has only a requirement for pausing audio play of the first application if the user presses for a short time, and determine that the user currently has an audio play switching requirement if the user presses for a long time. Therefore, the step of switching the second application running in the background to the foreground running according to the operation instruction is executed only when the application switching condition is met; and when the application switching condition is not met, controlling the first application to stop audio playing according to the operation instruction, and further accurately responding to the expected control operation of the user in a complex application scene.
As shown in fig. 4, which is a schematic flow chart of the audio playing control method provided in this embodiment, in some embodiments of this embodiment, the flow for controlling the second application to play the audio specifically includes the following steps:
and step 403, controlling the second application to play the target audio.
Specifically, in practical applications, when the user switches audio playing, the audio that is played before the cut-out application is paused, so that when the application is switched back to perform audio playing, the played audio may be the audio that is paused before, and the playing mode may be to continue playing from the paused position. In the embodiment, another application scenario is considered, that is, the first application and the second application are both music players, and in the process of playing music by using the first application, because the library resources of different music players are different, the version of the song currently played by the first application is not the version expected by the user, or the played song can only play a certain segment of the song due to the copyright, so that the user has a requirement of switching to the second application to play the song of other versions or to open the song of the copyright. Based on this, in this embodiment, according to the audio characteristics (which may include but are not limited to an audio identifier, an audio type, and the like) of the audio played by the first application when the user triggers the play switching, the corresponding audio is searched in the resource library of the second application for playing. Similarly, the embodiment is also applicable to switching and playing of similar audio, for example, if a song of a certain music style played by the first application is particularly interested by the current user, other songs similar to the music style can be searched in the resource library of the second application for playing based on the music style characteristics of the song, without exiting the playing interface of the song in the first application, so that the user can return to the first application to continue playing the song thereafter.
Based on the technical scheme of the embodiment of the application, receiving an operation instruction input by a play stopping control aiming at a first application running in a foreground; switching the second application running in the background to the foreground to run according to the operation instruction; and controlling the second application to play audio. Through the implementation of the scheme, only one step of operation needs to be executed for the play stopping control of the first application which is currently playing the audio, the second application can be automatically switched to play the audio, the operation flow of switching the audio playing is effectively simplified, and the operation efficiency of a user is improved.
The method in fig. 5 is a detailed play switching method provided in a second embodiment of the present application, and is applied to applications with an audio playing function, such as a music player, a radio station, and the like, where the play switching method includes:
Specifically, in this embodiment, the play stop control is used to open the audio play pause function to the user, the operation instruction of this embodiment is usually a press instruction, and the press duration, the press frequency, and the like when executing the operation instruction can be flexibly selected according to the actual application scenario.
Specifically, in the present embodiment, it is considered that when the instruction input operation behaviors are different, the instruction input characteristics are also different, taking the operation instruction as the press instruction as an example, the instruction input characteristics may be the number of presses, the pressing time length, and the like.
And 503, determining a second application to be switched from the plurality of applications running in the background according to the instruction input characteristics.
Specifically, according to the embodiment, the target application to be switched is correspondingly determined from the multiple applications running in the background according to different instruction input behaviors, so that the method is not limited to directional switching between two applications, and can meet the requirements of users on more flexible and diversified audio playing switching.
And 504, controlling the first application to stop playing the audio, and switching the second application running in the background to the foreground to run.
Specifically, in response to an operation instruction input by the play stop control for the first application, the embodiment controls the foreground display interface of the electronic device to jump to the second application while controlling the first application to stop playing the audio.
And step 505, acquiring audio characteristic information corresponding to the audio stopped by the first application.
Specifically, in practical applications, when a user uses a first application to play audio, due to different resource libraries of different applications, the version of the audio currently played in the first application may not be the version expected by the user, or the played audio may only play a certain segment due to copyright, so that the user has a requirement to switch to a second application to play the audio of other versions or to open the audio of copyright.
And step 507, controlling the second application to play the searched target audio.
Specifically, in this embodiment, according to the audio characteristics (for example, an audio identifier, an audio type, and the like) of the audio played by the first application when the user triggers the play switching, the corresponding audio is searched in the resource library of the second application for playing. Of course, in other embodiments, when switching to the second application for audio playing, the second application may also be directly controlled to continue playing the audio that was stopped before playing.
It should be understood that, the size of the serial number of each step in this embodiment does not mean the execution sequence of the step, and the execution sequence of each step should be determined by its function and inherent logic, and should not be limited uniquely to the implementation process of the embodiment of the present application.
According to the play switching method disclosed by the embodiment of the application, an operation instruction input by a play stopping control for a first application running in a foreground is received; switching the second application running in the background to the foreground to run according to the operation instruction; and controlling the second application to play audio. Through the implementation of the scheme, only one step of operation needs to be executed for the play stopping control of the first application which is currently playing the audio, the second application can be automatically switched to play the audio, the operation flow of switching the audio playing is effectively simplified, and the operation efficiency of a user is improved.
Fig. 6 is a playback switching apparatus according to a third embodiment of the present application. The playback switching apparatus can be used to implement the playback switching method in the foregoing embodiments. As shown in fig. 6, the playback switching apparatus mainly includes:
a receiving module 601, configured to receive an operation instruction input by a play stop control for a first application running in a foreground;
a switching module 602, configured to switch a second application running in a background to a foreground to run according to an operation instruction;
the playing module 603 is configured to control the second application to perform audio playing.
In some embodiments of this embodiment, the switching module 602 is specifically configured to: determining a second application to be switched from a plurality of applications running in the background according to the operation instruction; and switching the second application to the foreground for running.
Further, in some embodiments of this embodiment, when the switching module 602 executes the second application to be switched determined from the multiple applications running in the background according to the operation instruction, specifically, the switching module is configured to: identifying a command input characteristic corresponding to the operating command; and determining a second application to be switched from the plurality of applications running in the background according to the instruction input characteristics.
Further, in some embodiments of the present embodiment, the operation command is a press command. Correspondingly, the switching module 602 is specifically configured to: the fingerprint characteristic information of the user fingerprint image synchronously acquired by the screen fingerprint identification module aiming at the pressing instruction is identified; and determining a second application to be switched from a plurality of applications running in the background according to the fingerprint characteristic information and the preset mapping relation between the fingerprint characteristic information and the applications.
Further, in other embodiments of this embodiment, when the switching module 602 executes the second application to be switched determined from the multiple applications running in the background according to the operation instruction, specifically, the switching module is configured to: responding to an operation instruction, and acquiring switching priorities of a plurality of applications running in a background; and determining the application with the highest switching priority as the second application to be switched.
In some embodiments of this embodiment, the playback switching apparatus further includes: a determination module configured to: identifying an instruction input characteristic corresponding to the operation instruction before switching the second application running in the background to the foreground to run according to the operation instruction; and judging whether the application switching condition is met or not according to the instruction input characteristics. Correspondingly, the switching module 602 is specifically configured to: when the application switching condition is met, switching the second application running in the background to the foreground to run according to the operation instruction; the play module 603 is further configured to: and when the application switching condition is not met, controlling the first application to pause audio playing according to the operation instruction.
In some embodiments of this embodiment, when the playing module 603 executes and controls the second application to play the audio, the playing module is specifically configured to: acquiring audio characteristic information corresponding to audio played by a first application; searching a target audio to be played from an audio resource library of the second application based on the audio characteristic information; and controlling the second application to play the target audio.
It should be noted that, the play switching method in the first and second embodiments can be implemented based on the play switching device provided in this embodiment, and it can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working process of the play switching device described in this embodiment may refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
According to the play switching device provided by the embodiment, an operation instruction input by a play stopping control for a first application running in a foreground is received; switching the second application running in the background to the foreground to run according to the operation instruction; and controlling the second application to play audio. Through the implementation of the scheme, only one step of operation needs to be executed for the play stopping control of the first application which is currently playing the audio, the second application can be automatically switched to play the audio, the operation flow of switching the audio playing is effectively simplified, and the operation efficiency of a user is improved.
Referring to fig. 7, fig. 7 is an electronic device according to a fourth embodiment of the present disclosure. The electronic device can be used for realizing the play switching method in the foregoing embodiment. As shown in fig. 7, the electronic device mainly includes:
a memory 701, a processor 702, a bus 703 and a computer program stored on the memory 701 and executable on the processor 702, the memory 701 and the processor 702 being connected by the bus 703. When the processor 702 executes the computer program, the playback switching method in the foregoing embodiments is implemented. Wherein the number of processors may be one or more.
The Memory 701 may be a high-speed Random Access Memory (RAM) Memory or a non-volatile Memory (non-volatile Memory), such as a disk Memory. The memory 701 is used for storing executable program code, and the processor 702 is coupled with the memory 701.
Further, an embodiment of the present application also provides a computer-readable storage medium, where the computer-readable storage medium may be provided in an electronic device in the foregoing embodiments, and the computer-readable storage medium may be the memory in the foregoing embodiment shown in fig. 7.
The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the play switching method in the foregoing embodiments. Further, the computer-readable storage medium may be various media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a RAM, a magnetic disk, or an optical disk.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a readable storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned readable storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In view of the above description of the playback switching method, apparatus and computer-readable storage medium provided by the present application, those skilled in the art will recognize that there may be variations in the embodiments and applications of the method and apparatus according to the concepts of the present application.
Claims (10)
1. A play switching method is applied to an application with an audio play function, and is characterized by comprising the following steps:
receiving an operation instruction input by a play stopping control aiming at a first application running in a foreground;
switching the second application running in the background to the foreground to run according to the operation instruction;
and controlling the second application to play audio.
2. The playback switching method according to claim 1, wherein the switching the second application running in the background to the foreground according to the operation instruction includes:
determining a second application to be switched from a plurality of applications running in the background according to the operation instruction;
and switching the second application to foreground operation.
3. The playback switching method according to claim 2, wherein the determining, according to the operation instruction, the second application to be switched from among the plurality of applications running in the background comprises:
identifying a command input feature corresponding to the operational command;
and determining a second application to be switched from a plurality of applications running in the background according to the instruction input characteristics.
4. The playback switching method according to claim 3, wherein the operation command is a press command;
the identifying of the instruction input features corresponding to the operation instructions comprises:
identifying fingerprint characteristic information of a user fingerprint image synchronously acquired by the screen fingerprint module aiming at the pressing instruction;
the determining a second application to be switched from the plurality of applications running in the background according to the instruction input features comprises:
and determining a second application to be switched from a plurality of applications running in the background according to the fingerprint characteristic information and the preset mapping relation between the fingerprint characteristic information and the applications.
5. The playback switching method according to claim 2, wherein the determining, according to the operation instruction, the second application to be switched from among the plurality of applications running in the background comprises:
responding to the operation instruction, and acquiring switching priorities of a plurality of applications running in a background;
and determining the application with the highest switching priority as a second application to be switched.
6. The playback switching method according to claim 1, wherein before switching the second application running in the background to the foreground according to the operation instruction, the method further comprises:
identifying a command input feature corresponding to the operational command;
judging whether an application switching condition is met or not according to the instruction input characteristics;
when the application switching condition is met, executing the step of switching the second application running in the background to the foreground running according to the operation instruction;
and when the application switching condition is not met, controlling the first application to stop audio playing according to the operation instruction.
7. The playback switching method according to any one of claims 1 to 6, wherein the controlling the second application to perform audio playback includes:
acquiring audio characteristic information corresponding to the audio played by the first application;
searching a target audio to be played from an audio resource library of the second application based on the audio characteristic information;
and controlling the second application to play the target audio.
8. A play switching device applied to an application with an audio play function, comprising:
the receiving module is used for receiving an operation instruction input by a play stopping control aiming at a first application running in a foreground;
the switching module is used for switching the second application running in the background to the foreground to run according to the operation instruction;
and the playing module is used for controlling the second application to play audio.
9. An electronic device, comprising: a memory, a processor, and a bus;
the bus is used for realizing connection communication between the memory and the processor;
the processor is configured to execute a computer program stored on the memory;
the processor, when executing the computer program, performs the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011540282.6A CN112559044B (en) | 2020-12-23 | 2020-12-23 | Play switching method and device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011540282.6A CN112559044B (en) | 2020-12-23 | 2020-12-23 | Play switching method and device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112559044A true CN112559044A (en) | 2021-03-26 |
CN112559044B CN112559044B (en) | 2024-10-11 |
Family
ID=75032290
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011540282.6A Active CN112559044B (en) | 2020-12-23 | 2020-12-23 | Play switching method and device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112559044B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113805838A (en) * | 2021-09-24 | 2021-12-17 | 维沃移动通信有限公司 | Multimedia information processing method and device and electronic equipment |
CN115550501A (en) * | 2021-06-30 | 2022-12-30 | 博泰车联网科技(上海)股份有限公司 | Audio control method, electronic device and medium |
WO2023116768A1 (en) * | 2021-12-24 | 2023-06-29 | 华为技术有限公司 | Audio playback method and related apparatus |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130061249A1 (en) * | 2011-09-01 | 2013-03-07 | Microsoft Corporation | Decoupling background work and foreground work |
CN105519083A (en) * | 2013-09-04 | 2016-04-20 | 本田技研工业株式会社 | Mobile terminal, onboard device, control method, and control program |
CN107704298A (en) * | 2017-08-28 | 2018-02-16 | 深圳天珑无线科技有限公司 | Terminal and its interface switching method, storage device based on fingerprint recognition |
CN108268233A (en) * | 2016-12-30 | 2018-07-10 | 乐视汽车(北京)有限公司 | Sound source control method, device and vehicle |
CN108536512A (en) * | 2018-04-17 | 2018-09-14 | Oppo广东移动通信有限公司 | interface switching method, device and terminal device |
WO2019056194A1 (en) * | 2017-09-20 | 2019-03-28 | 深圳传音通讯有限公司 | Information processing method, terminal, and computer readable medium |
CN111373348A (en) * | 2018-02-08 | 2020-07-03 | 华为技术有限公司 | Application switching method and terminal |
CN112015505A (en) * | 2020-08-13 | 2020-12-01 | 北京字节跳动网络技术有限公司 | Mode switching method and device and electronic equipment |
-
2020
- 2020-12-23 CN CN202011540282.6A patent/CN112559044B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130061249A1 (en) * | 2011-09-01 | 2013-03-07 | Microsoft Corporation | Decoupling background work and foreground work |
CN105519083A (en) * | 2013-09-04 | 2016-04-20 | 本田技研工业株式会社 | Mobile terminal, onboard device, control method, and control program |
CN108268233A (en) * | 2016-12-30 | 2018-07-10 | 乐视汽车(北京)有限公司 | Sound source control method, device and vehicle |
CN107704298A (en) * | 2017-08-28 | 2018-02-16 | 深圳天珑无线科技有限公司 | Terminal and its interface switching method, storage device based on fingerprint recognition |
WO2019056194A1 (en) * | 2017-09-20 | 2019-03-28 | 深圳传音通讯有限公司 | Information processing method, terminal, and computer readable medium |
CN111373348A (en) * | 2018-02-08 | 2020-07-03 | 华为技术有限公司 | Application switching method and terminal |
CN108536512A (en) * | 2018-04-17 | 2018-09-14 | Oppo广东移动通信有限公司 | interface switching method, device and terminal device |
CN112015505A (en) * | 2020-08-13 | 2020-12-01 | 北京字节跳动网络技术有限公司 | Mode switching method and device and electronic equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115550501A (en) * | 2021-06-30 | 2022-12-30 | 博泰车联网科技(上海)股份有限公司 | Audio control method, electronic device and medium |
CN113805838A (en) * | 2021-09-24 | 2021-12-17 | 维沃移动通信有限公司 | Multimedia information processing method and device and electronic equipment |
WO2023116768A1 (en) * | 2021-12-24 | 2023-06-29 | 华为技术有限公司 | Audio playback method and related apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN112559044B (en) | 2024-10-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112559044A (en) | Play switching method and device and computer readable storage medium | |
CN111061484B (en) | Code compiling method, device, server, user terminal and readable medium | |
CN109062479B (en) | Split screen application switching method and device, storage medium and electronic equipment | |
CN108132735B (en) | Terminal and application control method | |
WO2022001341A1 (en) | Application program tag generation method, application interface display method and device | |
CN107329750A (en) | The recognition methods of advertisement page, jump method and mobile terminal in application program | |
CN108920070B (en) | Screen splitting method and device based on special-shaped display screen, storage medium and mobile terminal | |
US10373613B2 (en) | Dual-mode voice control method, device, and user terminal | |
CN105045655A (en) | application resource loading method and device | |
CN112817483A (en) | Multi-point touch processing method, device, equipment and storage medium | |
CN112169320A (en) | Application program starting and archiving method, device, equipment and storage medium | |
CN109656416B (en) | Control method and device based on multimedia data and related equipment | |
CN109983428A (en) | A kind of operating method and device of application | |
CN106445286B (en) | Method and device for determining focus of terminal screen based on split screen and terminal equipment | |
CN109257652B (en) | Configuration information switching method and device, electronic device, system and storage medium | |
CN106095230A (en) | A kind of method for controlling mobile terminal and terminal | |
CN111694626A (en) | Application skipping method and device, terminal and storage medium | |
CN114816692B (en) | Screen projection display method and device, mobile terminal and storage medium | |
CN110597427B (en) | Application management method and device, computer equipment and storage medium | |
CN110837335A (en) | Method and device for displaying page tag in application, terminal and storage medium | |
CN105786368A (en) | Information instruction input method and device based on interactive screen | |
CN107422943A (en) | Button Activiation method and device | |
CN108650544B (en) | Media playing method, device and system | |
CN112506592B (en) | Page loading time length determining method, device, equipment and storage medium | |
CN112148917A (en) | Media playing control method, device and system and computer readable storage medium |
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 |