CN104102717B - Method and system for exclusively playing music on terminal - Google Patents

Method and system for exclusively playing music on terminal Download PDF

Info

Publication number
CN104102717B
CN104102717B CN201410342026.4A CN201410342026A CN104102717B CN 104102717 B CN104102717 B CN 104102717B CN 201410342026 A CN201410342026 A CN 201410342026A CN 104102717 B CN104102717 B CN 104102717B
Authority
CN
China
Prior art keywords
music
playing
terminal
application
exclusive
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.)
Expired - Fee Related
Application number
CN201410342026.4A
Other languages
Chinese (zh)
Other versions
CN104102717A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410342026.4A priority Critical patent/CN104102717B/en
Publication of CN104102717A publication Critical patent/CN104102717A/en
Application granted granted Critical
Publication of CN104102717B publication Critical patent/CN104102717B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method and a system for exclusively playing music on a terminal, wherein the method comprises the following steps: when music playing is carried out by a music playing application of the terminal, if a starting instruction of a music exclusive playing mode is received, the music exclusive playing mode is started, wherein the music exclusive playing mode is a music playing mode which is additionally arranged on the terminal in advance; acquiring first identification information of the music playing application, and adding the first identification information serving as an identification code into a preset exclusive music playing file path; the audio playing request sent by the first application of the terminal is detected, and the playing strategy of the audio of the first application is determined according to the audio playing request and the identification code.

Description

Method and system for exclusively playing music on terminal
Technical Field
The invention relates to the technical field of terminal application, in particular to a method and a system for exclusively playing music on a terminal.
Background
With the development of terminal technology and the improvement of living standard of people, various terminals, especially mobile terminals such as mobile phones and tablet computers, have become essential tools for modern people, and great convenience is brought to the lives of people. In some occasions, a user may only want to play music with the terminal, but due to the numerous applications of the terminal, the user experience is affected by interruption or interference of message ringtones of various applications when playing music.
Disclosure of Invention
The invention aims to provide a method and a system for exclusively playing music on a terminal, which can avoid unnecessary disturbance to a user when the terminal plays music and improve user experience.
The purpose of the invention is realized by the following technical scheme:
a method for exclusively playing music on a terminal comprises the following steps:
when music playing is carried out by a music playing application of the terminal, if a starting instruction of a music exclusive playing mode is received, the music exclusive playing mode is started, wherein the music exclusive playing mode is a music playing mode which is additionally arranged on the terminal in advance;
acquiring first identification information of the music playing application, and adding the first identification information serving as an identification code into a preset exclusive music playing file path;
and detecting an audio playing request sent by a first application of the terminal, and determining an audio playing strategy of the first application according to the audio playing request and the identification code.
A system for exclusive playback of music on a terminal, comprising:
the starting module is used for starting a music exclusive playing mode if a starting instruction of the music exclusive playing mode is received when music playing is performed by a music playing application of the terminal, wherein the music exclusive playing mode is a music playing mode which is additionally arranged on the terminal in advance;
the acquisition module is used for acquiring first identification information of the music playing application and adding the first identification information serving as an identification code into a preset exclusive music playing file path;
and the control module is used for detecting an audio playing request sent by a first application of the terminal and determining an audio playing strategy of the first application according to the audio playing request and the identification code.
According to the scheme of the invention, a music exclusive playing mode is added in advance on a terminal, when music playing application of the terminal plays music, if an instruction for starting the music exclusive playing mode is received, the music exclusive playing mode is started, first identification information of the music playing application is acquired, the first identification information is used as an identification code to be added into a preset music exclusive playing file path, an audio playing request sent by the first application of the terminal is detected, a playing strategy of audio of the first application is determined according to the audio playing request and the identification code, namely whether the audio of the first application is played or not is controlled, because the music exclusive playing mode is added on the terminal, and because the first identification information of the music being played is used as the identification code to be added into the preset music exclusive playing file path, whether the audio of the first application is played or not can be controlled according to the detected audio playing request and the identification code, so that unnecessary disturbance to a user when the terminal plays music is avoided, and the user experience is improved.
Drawings
Fig. 1 is a flowchart illustrating a first embodiment of a method for exclusive music playing on a terminal according to the present invention;
fig. 2 is a flowchart illustrating a second embodiment of a method for exclusive music playing on a terminal according to the present invention;
fig. 3 is a flowchart illustrating a third embodiment of a method for exclusive music playing on a terminal according to the present invention;
fig. 4 is a flowchart illustrating a fourth embodiment of the method for exclusive music playing on a terminal according to the present invention;
fig. 5 is a flowchart illustrating a fifth embodiment of a method for exclusive music playing on a terminal according to the present invention;
FIG. 6 is a schematic diagram of a system for music-specific playback on a terminal according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a system for music-specific playback on a terminal according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of a system for exclusive music playing on a terminal according to a third embodiment of the present invention;
fig. 9 is a schematic structural diagram of a system for exclusive music playing on a terminal according to a fourth embodiment of the present invention;
fig. 10 is a schematic structural diagram of a system for exclusive music playing on a terminal according to a fifth embodiment of the present invention;
fig. 11 is a schematic structural diagram of a system for exclusive music playing on a terminal according to a sixth embodiment of the present invention;
fig. 12 is a schematic structural diagram of a system for exclusive music playing on a terminal according to a seventh embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the detailed description and specific examples, while indicating the scope of the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, first, an embodiment of a method for performing exclusive music playback on a terminal according to the present invention will be described, and then, embodiments of a system for performing exclusive music playback on a terminal according to the present invention will be described.
Example one
Fig. 1 is a schematic flow chart of a first embodiment of the method for exclusively playing music on a terminal according to the present invention. As shown in fig. 1, the method for exclusively playing music on a terminal in this embodiment includes the following steps:
step S101: when music playing is performed by the music playing application of the terminal, if a starting instruction of a music exclusive playing mode is received, the music exclusive playing mode is started, wherein the music exclusive playing mode is a music playing mode additionally arranged on the terminal in advance, and the step S102 is entered;
when the music playing application of the terminal plays music, whether a special music playing mode is entered or not can be prompted to a user, the prompting mode can be realized in a mode of a chart, a sound, a menu and the like, the user can send a starting instruction to the terminal in a mode of manual setting, sound control and the like, the special music playing mode is started after the terminal receives the starting instruction, the special music playing mode is a music playing mode which is additionally arranged on the terminal in advance, and under the special music playing mode, the music playing can be realized without disturbance through subsequent steps;
the method for exclusively playing music on the terminal in this embodiment may further include the steps of: indicating the current music playing mode to a user as a music exclusive playing mode, wherein the indication mode can be realized through sound, menus, icons and other modes;
step S102: acquiring first identification information of the music playing application, adding the first identification information serving as an identification code into a preset music exclusive playing file path, and entering step S103;
the first identification information may include any one of a process name, a package name, a process number, and the like of the music playing application;
step S103: detecting an audio playing request sent by a first application of the terminal, and determining an audio playing strategy of the first application according to the audio playing request and the identification code when the audio playing request sent by the first application of the terminal is detected;
the first application in this embodiment includes various applications that need to be played in audio in the terminal, and may also include the above music playing application, and the playing policy mainly includes two types, namely playing and not playing;
because the first identification information is added to a preset music exclusive playing file path as an identification code, and an audio playing request needs to be sent to an audio related service (such as an audio processing module or an audio processing flow) of the terminal whenever music, a prompt sound, a ringtone and the like need to be played by pushing an application message or receiving a notification and the like, at this time, a process name, a program package name or a process number of the first application can be acquired, the acquired process name, program package name or process number is matched with the identification code, and a playing strategy of the audio of the first application is controlled according to a matching result;
specifically, in one embodiment, the second identification information of the first application is obtained according to the audio playing request; judging whether the second identification information is matched with the identification code; if the first application is matched with the second application, playing the audio of the first application, namely, the playing strategy is playing; if not, returning to the step of detecting the audio playing request of the first application, namely that the playing strategy is not played; the second identification information may include any one of a process name, a package name, or a process number of the first application, and the playing process of the audio of the first application mainly includes parsing (decoding) an audio file specified by the first application, and then playing the audio file through an earphone or an external player.
In addition, the method for exclusively playing music on the terminal in this embodiment may further include the steps of: when a closing instruction or a pause instruction of the music-specific playing mode is received, or when the playing of the currently playing music is finished or stopped, the music-specific playing mode is closed, so that the audio playing function of all the applications (or also referred to as the first application) can be resumed.
Accordingly, according to the scheme of the above embodiment, a dedicated music playing mode is added in advance on the terminal, when the music playing application of the terminal plays music, if an instruction for starting the dedicated music playing mode is received, the dedicated music playing mode is started, the first identification information of the music playing application is acquired, the first identification information is added to a preset dedicated music playing file path as an identification code, an audio playing request sent by the first application of the terminal is detected, a playing strategy of the audio of the first application is determined according to the audio playing request and the identification code, that is, whether the audio of the first application is played is controlled, because the dedicated music playing mode is added on the terminal, and because the first identification information of the music being played is added to the preset dedicated music playing file path as the identification code, whether the audio of the first application is played or not can be controlled according to the detected audio playing request and the identification code, so that unnecessary disturbance to a user when the terminal plays music is avoided, and the user experience is improved.
Example two
Considering that the user may still want a part of the applied message ring tones (which may also be considered as music) to be played when the terminal enters the music-specific play mode, for example, short messages, ring tones of incoming calls, therefore, a step of adding the third identification information of these applications as identification codes to the music-specific play file path may also be added.
As shown in fig. 2, the method for exclusively playing music on a terminal in this embodiment includes the following steps:
step S201: when the music playing application of the terminal plays music, if a starting instruction of a music exclusive playing mode is received, the music exclusive playing mode is started, wherein the music exclusive playing mode is a music playing mode added to the terminal in advance, and the step S202 is entered;
step S202: acquiring first identification information of the music playing application, adding the first identification information serving as an identification code into a preset music exclusive playing file path, and entering step S203;
step S203: receiving an adding instruction, adding third identification information of a second application corresponding to the adding instruction as an identification code into the exclusive music playing file path, and entering the step S204;
the second application in this embodiment includes various applications that need to perform audio playing in the terminal, and generally does not include the music playing application described above;
third identification information of the second application can be added to the music exclusive playing file path as an identification code as required, wherein the third identification information is any one of a process name, a package name or a process number of the (or the) application;
step S204: and detecting an audio playing request sent by a first application of the terminal, and determining an audio playing strategy of the first application according to the audio playing request and the identification code when the audio playing request sent by the first application of the terminal is detected.
Other technical features in this embodiment are the same as those in the first embodiment, and are not described herein again.
It should be noted that, in this embodiment, adding the third identification information of the other application as the identification code to the music-specific playing file path is not limited to be performed after step S202, and for example, may be performed before step S202, which is not described herein again.
EXAMPLE III
Fig. 3 is a schematic flow chart of a third embodiment of the method for exclusively playing music on a terminal according to the present invention. In this embodiment, the difference from the first embodiment is that, when the user listens to music, especially when listening to high-quality music, if the music is online music and other applications in the background of the terminal are also downloading or updating using wifi or a data network, the online music downloading bandwidth is insufficient and the buffering time is long, so that the steps of running applications other than the music playing application currently using the network are added to improve the user experience of the user.
As shown in fig. 3, the method for exclusively playing music on a terminal in this embodiment includes the following steps:
step S301: when the music playing application of the terminal plays music, if a starting instruction of a music exclusive playing mode is received, the music exclusive playing mode is started, wherein the music exclusive playing mode is a music playing mode added to the terminal in advance, and the step S302 is entered;
step S302: acquiring first identification information of the music playing application, adding the first identification information serving as an identification code into a preset music exclusive playing file path, and entering step S303;
step S303: judging whether the music currently played is online music, if so, entering step S304, otherwise, entering step S305;
step S304: keeping running the music playing application, and forbidding or suspending running of applications which currently use the network and are except the music playing application, and entering step S305;
step S305: detecting an audio playing request sent by a first application of the terminal, and determining an audio playing strategy of the first application according to the audio playing request and the identification code when the audio playing request sent by the first application of the terminal is detected;
the implementation manner of determining whether the music currently being played is online music may be: and judging whether the average downloading speed of the music playing application reaches a preset downloading threshold value, if so, judging that the music currently being played is online music, and if not, judging that the music currently being played is local music, wherein the downloading threshold value can be set according to actual needs, for example, 20 KB/s.
Other technical features in this embodiment are the same as those in the first embodiment, and are not described herein again.
It should be noted that steps S303 and S304 in this embodiment are not limited to be performed after step S302, and may also be performed before step S302, for example, and are not described herein again.
Example four
Fig. 4 is a schematic flow chart of a fourth embodiment of the method for exclusively playing music on a terminal according to the present invention. In this embodiment, a difference from the first embodiment is that, when the process running on the terminal occupies a large amount of cpu (Central Processing Unit), the decoding speed of playing music is not enough, and a user experience of stuttering in the music playing process occurs, so that a step of closing or pausing a non-critical process is added to improve the user experience.
As shown in fig. 4, the method for exclusively playing music on a terminal in this embodiment includes the following steps:
step S401: when music playing is performed by the music playing application of the terminal, if a starting instruction of a music exclusive playing mode is received, the music exclusive playing mode is started, wherein the music exclusive playing mode is a music playing mode added in advance on the terminal, and the step S402 is entered;
step S402: acquiring first identification information of the music playing application, adding the first identification information serving as an identification code into a preset music exclusive playing file path, and entering step S403;
step S403: judging whether the terminal is in a screen closing state, if not, entering a step S404, and if so, entering a step S405;
step S404: judging whether the music playing interface is a full screen interface or not, if so, entering step S405, and if not, entering step S408;
step S405: inquiring the process group of the current running process of the terminal, and entering step S406;
step S406: judging whether the process group is a preset key process group or not according to the process group, and if not, entering a step S407;
step S407: terminating or suspending the current running process, and entering step S408;
step S408: detecting an audio playing request sent by a first application of the terminal, and determining an audio playing strategy of the first application according to the audio playing request and the identification code when the audio playing request sent by the first application of the terminal is detected;
in the Android system, the process groups include root, system, radio, media, user, and the like, and the key process refers to a process whose process group is root, system, and radio, and then processes grouped by other processes can be regarded as non-key processes and can be terminated or suspended in a music exclusive playing mode.
Other technical features in this embodiment are the same as those in the first embodiment, and are not described herein again.
It should be noted that steps S403 to S407 in this embodiment are not limited to be performed after step S402, and may also be performed before step S402, for example, and are not described herein again.
In addition, the determining whether the terminal is in the screen-off state and the determining whether the music playing interface is the full screen interface in this embodiment may not be performed in the order described above, for example, the step of determining whether the music playing interface is the full screen interface may also be performed first, and then the step of determining whether the terminal is in the screen-off state may be performed.
EXAMPLE five
Fig. 5 is a schematic flow chart of a fourth embodiment of the method for exclusively playing music on a terminal according to the present invention. In this embodiment, the difference from the fourth embodiment is that the non-critical process is terminated or suspended in another way, so as to improve the user experience.
As shown in fig. 5, the method for exclusively playing music on a terminal in this embodiment includes the following steps:
step S501: when music playing is performed by the music playing application of the terminal, if a starting instruction of a music exclusive playing mode is received, the music exclusive playing mode is started, wherein the music exclusive playing mode is a music playing mode additionally arranged on the terminal in advance, and the step S502 is entered;
step S502: acquiring first identification information of the music playing application, and adding the first identification information serving as an identification code into a preset exclusive music playing file path;
step S503: judging whether the terminal is in a screen closing state, if not, entering a step S504, and if so, entering a step S505;
step S504: judging whether the music playing interface is a full screen interface, if so, entering a step S505, and if not, entering a step S507;
step S505: inquiring whether the process identifier of the current running process of the terminal is in a preset key process identifier list, if not, entering the step S506;
step S506: terminating or suspending the currently running process;
step S507: detecting an audio playing request sent by a first application of the terminal, and determining an audio playing strategy of the first application according to the audio playing request and the identification code when the audio playing request sent by the first application of the terminal is detected;
in this embodiment, some processes may be taken as key processes in advance, and the process identifiers of these processes are added to the key process identifier list, so that a process whose process identifier is not in the key process identifier list is regarded as a non-key process and is terminated or suspended, and sufficient cpu resources and memory resources may be provided for decoding high-quality music.
Other technical features in this embodiment are the same as those in the first embodiment, and are not described herein again.
It should be noted that steps S503 to S506 in this embodiment are not limited to be executed after step S502, and may also be executed before step S502, for example, and are not described herein again.
In addition, the determining whether the terminal is in the screen-off state and the determining whether the music playing interface is the full screen interface in this embodiment may not be performed in the order described above, for example, the step of determining whether the music playing interface is the full screen interface may also be performed first, and then the step of determining whether the terminal is in the screen-off state may be performed.
According to the method for exclusively playing music on the terminal of the present invention, the present invention further provides a system for exclusively playing music on the terminal, and the following describes an embodiment of the system for exclusively playing music on the terminal of the present invention in detail. Fig. 6 is a schematic structural diagram of an embodiment of the system for music-specific playback on a terminal according to the present invention. For convenience of explanation, only portions relevant to the present invention are shown in fig. 6.
As shown in fig. 6, the system for exclusively playing music on a terminal in this embodiment includes an opening module 601, an obtaining module 602, and a control module 603, where:
the starting module 601 is configured to start a music exclusive playing mode if a starting instruction of the music exclusive playing mode is received when music playing is performed by a music playing application of the terminal, where the music exclusive playing mode is a music playing mode that is pre-added to the terminal;
an obtaining module 602, configured to obtain first identification information of the music playing application, and add the first identification information as an identification code to a preset music-dedicated playing file path;
the control module 603 is configured to detect an audio playing request sent by a first application of the terminal, and determine a playing policy of the audio of the first application according to the audio playing request and the identification code.
In one embodiment, the control module 603 may obtain the second identification information of the first application according to the audio playing request, determine whether the second identification information matches the identification code, if so, play the audio of the first application, and if not, return to the step of detecting the audio playing request of the first application.
In one embodiment, as shown in fig. 7, the system for exclusive music playing on a terminal of the present invention may further include:
the adding module 604 is configured to receive an adding instruction, and add third identification information of a second application corresponding to the adding instruction as an identification code to the music-dedicated playing file path.
In one embodiment, as shown in fig. 8, the system for exclusive music playing on a terminal of the present invention may further include:
the network control module 605 is configured to determine whether the music currently being played is online music, and if so, keep running the music playing application, and disable or suspend running of applications that use the network and are other than the music playing application.
In one embodiment, as shown in fig. 9, the system for exclusive music playing on a terminal of the present invention may further include:
a first process processing module 606, configured to determine whether the terminal is in a screen-off state, if the terminal is in the screen-off state, query a process group of a currently running process of the terminal, determine whether the process group is a preset critical process group according to the process group, and if the process group is not the preset critical process group, terminate or suspend the currently running process;
in one embodiment, as shown in fig. 10, the system for exclusive music playing on a terminal of the present invention may further include:
the second process processing module 607 is configured to determine whether the music playing interface is a full screen interface, query a process group of a currently running process of the terminal if the music playing interface is the full screen interface, determine whether the process group is a preset key process group according to the process group, and terminate or pause the currently running process if the process group is not the preset key process group.
In one embodiment, as shown in fig. 11, the system for exclusive music playing on a terminal of the present invention may further include:
a third process processing module 608, configured to determine whether the terminal is in a screen-off state, if the terminal is in the screen-off state, query whether a process identifier of a currently running process of the terminal is in a preset key process identifier list, and if the process identifier is not in the preset key process identifier list, terminate or suspend the currently running process.
In one embodiment, as shown in fig. 12, the system for exclusive music playing on a terminal according to the present invention may further include:
the fourth process processing module 609 is configured to determine whether the music playing interface is a full screen interface, query whether a process identifier of a currently running process of the terminal is in a preset key process identifier list if the music playing interface is the full screen interface, and terminate or pause the currently running process if the process identifier is not in the preset key process identifier list.
The system for exclusive music playing on the terminal of the present invention corresponds to the method for exclusive music playing on the terminal of the present invention one to one, and the technical features and the advantageous effects described in the above embodiment of the method for exclusive music playing on the terminal are all applicable to the embodiment of the system for exclusive music playing on the terminal, which is hereby stated.
Furthermore, in the description of the present invention, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (4)

1. A method for exclusively playing music on a terminal is characterized by comprising the following steps:
when music playing is carried out by a music playing application of the terminal, if a starting instruction of a music exclusive playing mode is received, the music exclusive playing mode is started, wherein the music exclusive playing mode is a music playing mode which is additionally arranged on the terminal in advance;
acquiring first identification information of the music playing application, and adding the first identification information serving as an identification code into a preset exclusive music playing file path;
receiving an adding instruction, and adding third identification information of a second application corresponding to the adding instruction into the exclusive music playing file path as an identification code;
judging whether the music currently played is online music;
if so, keeping running the music playing application, and forbidding or suspending running of the application which is currently used by the network and is except for the music playing application;
detecting an audio playing request sent by a first application of the terminal, and acquiring second identification information of the first application according to the audio playing request;
judging whether the second identification information is matched with the identification code;
if so, playing the audio of the first application;
and if not, returning to the step of detecting the audio playing request sent by the first application of the terminal.
2. The method for music specific playback on a terminal as recited in claim 1, further comprising the steps of:
judging whether the terminal is in a screen closing state, if so, inquiring a process group of a current running process of the terminal, judging whether the process group is a preset key process group according to the process group, and if not, terminating or suspending the current running process;
or
Judging whether a music playing interface is a full screen interface or not, if so, inquiring a process group of a current running process of the terminal, judging whether the process group is a preset key process group or not according to the process group, and if not, terminating or pausing the current running process;
or
Judging whether the terminal is in a screen closing state, if so, inquiring whether a process identifier of a current running process of the terminal is in a preset key process identifier list, and if not, stopping or pausing the current running process;
or
Judging whether the music playing interface is a full screen interface, if so, inquiring whether the process identifier of the current running process of the terminal is in a preset key process identifier list, and if not, terminating or pausing the current running process.
3. A system for exclusive playback of music on a terminal, comprising:
the starting module is used for starting a music exclusive playing mode if a starting instruction of the music exclusive playing mode is received when music playing is performed by a music playing application of the terminal, wherein the music exclusive playing mode is a music playing mode which is additionally arranged on the terminal in advance;
the acquisition module is used for acquiring first identification information of the music playing application and adding the first identification information serving as an identification code into a preset exclusive music playing file path;
the adding module is used for receiving an adding instruction and adding third identification information of a second application corresponding to the adding instruction into the exclusive music playing file path as an identification code;
the network control module is used for judging whether the music which is played currently is online music or not, if so, keeping running the music playing application, and forbidding or suspending the running of the application which uses the network currently and is except the music playing application;
the control module is used for detecting an audio playing request sent by a first application of the terminal, acquiring second identification information of the first application according to the audio playing request, judging whether the second identification information is matched with the identification code, playing the audio of the first application if the second identification information is matched with the identification code, and returning to the step of detecting the audio playing request sent by the first application of the terminal if the second identification information is not matched with the identification code.
4. The system for music specific playback on a terminal according to claim 3, further comprising:
the first process processing module is used for judging whether the terminal is in a screen closing state or not, inquiring a process group of a currently running process of the terminal if the terminal is in the screen closing state, judging whether the process group is a preset key process group or not according to the process group, and stopping or suspending the currently running process if the process group is not the preset key process group;
or
The second process processing module is used for judging whether the music playing interface is a full screen interface or not, inquiring a process group of a currently running process of the terminal if the music playing interface is the full screen interface, judging whether the process group is a preset key process group or not according to the process group, and stopping or pausing the currently running process if the process group is not the preset key process group;
or
The third process processing module is used for judging whether the terminal is in a screen closing state, inquiring whether a process identifier of a current running process of the terminal is in a preset key process identifier list if the terminal is in the screen closing state, and stopping or suspending the current running process if the process identifier of the current running process of the terminal is not in the preset key process identifier list;
or
And the fourth process processing module is used for judging whether the music playing interface is a full-screen interface or not, inquiring whether the process identifier of the currently running process of the terminal is in a preset key process identifier list or not if the music playing interface is the full-screen interface, and stopping or pausing the currently running process if the process identifier of the currently running process of the terminal is not in the preset key process identifier list.
CN201410342026.4A 2014-07-17 2014-07-17 Method and system for exclusively playing music on terminal Expired - Fee Related CN104102717B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410342026.4A CN104102717B (en) 2014-07-17 2014-07-17 Method and system for exclusively playing music on terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410342026.4A CN104102717B (en) 2014-07-17 2014-07-17 Method and system for exclusively playing music on terminal

Publications (2)

Publication Number Publication Date
CN104102717A CN104102717A (en) 2014-10-15
CN104102717B true CN104102717B (en) 2019-12-27

Family

ID=51670871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410342026.4A Expired - Fee Related CN104102717B (en) 2014-07-17 2014-07-17 Method and system for exclusively playing music on terminal

Country Status (1)

Country Link
CN (1) CN104102717B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426218A (en) * 2015-12-10 2016-03-23 小米科技有限责任公司 Method and device for controlling audio playing
CN108184193B (en) * 2017-12-28 2021-03-30 西安Tcl软件开发有限公司 Play control method of Bluetooth play terminal, Bluetooth device and computer storage medium
CN110191227A (en) * 2019-05-20 2019-08-30 维沃移动通信有限公司 Message prompt method and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1703059A (en) * 2004-05-28 2005-11-30 乐金电子(中国)研究开发中心有限公司 Method of realizing special mode functions of mp3 of mobile communication terminal
CN101277334A (en) * 2008-05-06 2008-10-01 宇龙计算机通信科技(深圳)有限公司 Mobile terminal with play mode and method for implementing play mode
CN102868809A (en) * 2012-08-30 2013-01-09 广东欧珀移动通信有限公司 Mobile phone music playing method and mobile phone
CN102982263A (en) * 2012-11-19 2013-03-20 中国联合网络通信集团有限公司 Application program protection method and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1703059A (en) * 2004-05-28 2005-11-30 乐金电子(中国)研究开发中心有限公司 Method of realizing special mode functions of mp3 of mobile communication terminal
CN101277334A (en) * 2008-05-06 2008-10-01 宇龙计算机通信科技(深圳)有限公司 Mobile terminal with play mode and method for implementing play mode
CN102868809A (en) * 2012-08-30 2013-01-09 广东欧珀移动通信有限公司 Mobile phone music playing method and mobile phone
CN102982263A (en) * 2012-11-19 2013-03-20 中国联合网络通信集团有限公司 Application program protection method and equipment

Also Published As

Publication number Publication date
CN104102717A (en) 2014-10-15

Similar Documents

Publication Publication Date Title
CN106507445B (en) Wireless fidelity Wi-Fi scanning method and mobile terminal
CN107277266B (en) Mode switching method and device
US8892088B2 (en) Systems and methods for handling incoming calls on a media device
CN104640046B (en) The method and system of wireless music system alarm clock are set
EP3179705B1 (en) Message processing method, system and related device
CN102932549A (en) Mobile terminal and method for accessing application programs rapidly through earphones
WO2018149137A1 (en) Wireless fidelity (wi-fi) connection method and related product
WO2018103405A1 (en) Method for identifying access point and hotspot, and related product
US9876744B2 (en) Information sending method and information sending apparatus
CN109376062B (en) Network state prompting method and related device
CN105610842A (en) WIFI hotspot access method and mobile device
CN111199743A (en) Audio coding format determining method and device, storage medium and electronic equipment
US20170033753A1 (en) Volume Control Methods and Devices, and Multimedia Playback Control Methods and Devices
CN113411794A (en) Connection method, Bluetooth headset, terminal and computer storage medium
CN104102717B (en) Method and system for exclusively playing music on terminal
CN111131951A (en) Wireless earphone positioning method, wireless earphone, electronic equipment and storage medium
WO2018028239A1 (en) Method and apparatus for controlling terminal, and computer storage medium
CN112040057B (en) Device control method, device, electronic device, control system and storage medium
CN105679350A (en) Audio playing method and device
US10111207B2 (en) Network device, terminal device, and voice service control method
WO2015062240A1 (en) Application installation method, apparatus and device
CN103974215B (en) Control method of electronic device and electronic equipment
CN108184193A (en) Control method for playing back, bluetooth equipment and the computer storage media of bluetooth playback terminal
CN116527810A (en) Method for outputting audio, electronic device and storage medium
WO2018149136A1 (en) Wireless fidelity (wifi) connection method and related product

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191227