CN104978398A - Method for music playing and terminal device - Google Patents

Method for music playing and terminal device Download PDF

Info

Publication number
CN104978398A
CN104978398A CN201510296216.1A CN201510296216A CN104978398A CN 104978398 A CN104978398 A CN 104978398A CN 201510296216 A CN201510296216 A CN 201510296216A CN 104978398 A CN104978398 A CN 104978398A
Authority
CN
China
Prior art keywords
url
music
event
play
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510296216.1A
Other languages
Chinese (zh)
Inventor
任超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510296216.1A priority Critical patent/CN104978398A/en
Publication of CN104978398A publication Critical patent/CN104978398A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/632Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)
  • Information Transfer Between Computers (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

An embodiment of the invention discloses a method for music playing and terminal device. The method comprises: monitoring web browsing events of a current terminal device, and detecting whether the web browsing events comprise a uniform resource locator URL event, wherein the URL event comprises a URL access event or a URL sharing event; if the URL event is included, determining whether the resource indicated by a target URL that corresponds to the URL event is music; if the resource is music, generating a play command that comprises the target URL, and sending the play command to a wireless music player that is connected to the terminal device, so that the wireless music player can access the target URL according to the play command to play the music indicated by the target URL. By implementing the embodiment of the invention, the Internet music can be directly played in the wireless music player, thereby improving the efficiency of music playing and saving the time of the end user.

Description

A kind of method for playing music and terminal device
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of method for playing music and terminal device.
Background technology
At present, wireless music playing device is if wireless sound box is as a kind of novel intelligent appliance equipment, Wireless Fidelity (Wireless Fidelity can be passed through, Wi-Fi) with mobile phone communicate for the APP (Application) managing this wireless sound box, perform the various instructions that this APP sends, as play music, suspending broadcasting, switching music etc.In actual applications, the music liked by this APP browsing of music resource, and pushes in this wireless sound box and plays by user.
But, if user is when view Internet, run into the music liked, then directly this music cannot be pushed to this wireless sound box and play.Now, this internet music is play by wireless sound box if want, then need the APP opened for controlling this wireless sound box, in the music sources storehouse of this APP, search out this internet music and push to wireless sound box, internet music could be realized to play in wireless sound box, this process operation is loaded down with trivial details, makes music efficiency lower, wastes the time of terminal user.
Summary of the invention
Embodiments provide a kind of method for playing music and terminal device, directly can play the music in internet in wireless music playing device, thus improve music efficiency, save the time of terminal user.
The embodiment of the invention discloses a kind of method for playing music, comprising:
The network browsing event of monitoring present terminal equipment, and detect described network browsing event and whether comprise uniform resource position mark URL event, described URL event comprises URL Access Events or URL shares event;
If comprise described URL event, then judge the resource indicated by target URL corresponding to described URL event whether music;
If music, then generate the play command comprising described target URL, and send described play command to the wireless music playing device be connected with described terminal device, to make described wireless music playing device access described target URL according to described play command, to play the music indicated by described target URL.
Optionally, comprise the play command of described target URL in described generation, and before sending described play command to the wireless music playing device be connected with described terminal device, described method also comprises:
Export play cuing message, described play cuing message plays the music indicated by described target URL for reminding the user of described terminal device the need of the wireless music playing device by being connected with described terminal device;
If receive the confirmation play instruction that user inputs for described play cuing message, then perform the play command that described generation comprises described target URL, and send the step of described play command to the wireless music playing device be connected with described terminal device.
Optionally, described play cuing message comprises any one or multinomial in the musical designation of the music indicated by described target URL, music type, music size and playing duration.
Optionally, describedly judge the resource indicated by target URL corresponding to described URL event whether music, comprising:
Detect in target URL corresponding to described URL event and whether there is target extension name, the described target expansion wireless music playing device be connected with described terminal device by name support the extension name of the music file play;
If there is described target extension name, then determine that the resource indicated by described target URL is music.
Optionally, in the network browsing event of described monitoring present terminal equipment, and detect before whether described network browsing event comprise URL event, described method also comprises:
Detect present terminal equipment and whether open URL event-monitoring function;
If detect, described URL event-monitoring function opened by described terminal device, then perform the network browsing event of the described terminal device of described monitoring, and detects the step whether described network browsing event comprise URL event.
Correspondingly, the embodiment of the invention also discloses a kind of terminal device, comprising:
Network monitoring module, for monitoring the network browsing event of present terminal equipment, and detect described network browsing event and whether comprise uniform resource position mark URL event, described URL event comprises URL Access Events or URL shares event;
Judge module, during for detecting that described network browsing event comprises described URL event at described network monitoring module, judges the resource indicated by target URL corresponding to described URL event whether music;
Instruction sending module, for when the resource of judged result indicated by described target URL of described judge module is music, generate the play command comprising described target URL, and send described play command to the wireless music playing device be connected with described terminal device, to make described wireless music playing device access described target URL according to described play command, to play the music indicated by described target URL.
Optionally, described terminal device also comprises:
Message output module, for exporting play cuing message, described play cuing message plays the music indicated by described target URL for reminding the user of described terminal device the need of the wireless music playing device by being connected with described terminal device;
Notification module, for when receiving the confirmation play instruction that user inputs for described play cuing message, notify that described instruction sending module generates the play command comprising described target URL, and send described play command to the wireless music playing device be connected with described terminal device.
Optionally, described play cuing message comprises any one or multinomial in the musical designation of the music indicated by described target URL, music type, music size and playing duration.
Optionally, described judge module comprises:
Detecting unit, for detecting in target URL corresponding to described URL event whether there is target extension name, the described target expansion wireless music playing device be connected with described terminal device by name support the extension name of the music file play;
Music determining unit, when there is described target extension name for detecting in described target URL at described detecting unit, determines that the resource indicated by described target URL is music.
Optionally, described terminal device also comprises:
Function detection module, URL event-monitoring function whether is opened for detecting present terminal equipment, and when detecting that described URL event-monitoring function opened by described terminal device, notify that described network monitoring module monitors the network browsing event of described terminal device, and detect described network browsing event and whether comprise URL event.
The embodiment of the present invention is by the network browsing operations of monitor terminal user, and whether the resource detecting this URL instruction when current generation URL event being detected further is music, make it possible to generate the play command comprising this URL when this URL is designated as music, and send to wireless music playing device to play, thus achieve the music directly play in this wireless music playing device in internet, avoid when wanting to play the music in this internet, user is needed to go to apply the problem that could realize after manual search goes out this music in music sources storehouse playing this internet music, make to improve music efficiency, save the time of terminal user.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of method for playing music that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of method for playing music that the embodiment of the present invention provides;
Fig. 3 is the structural representation of a kind of terminal device that the embodiment of the present invention provides;
Fig. 4 is the structural representation of the another kind of terminal device that the embodiment of the present invention provides;
Fig. 5 is the structural representation of another terminal device that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of method for playing music and terminal device, directly can play the music in internet in wireless music playing device, thus improve music efficiency, save the time of terminal user.Below describe in detail respectively.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of method for playing music that the embodiment of the present invention provides; Concrete, the described method of the embodiment of the present invention can comprise the following steps:
S101: the network browsing event of monitoring present terminal equipment, and detect described network browsing event and whether comprise URL event.
It should be noted that, method described in the embodiment of the present invention can be applied particularly to smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, mobile internet device (Mobile Internet Devices, MID), in the terminal device such as personal digital assistant (Personal Digital Assistant, PDA) or PC.
Optionally, event comprises URL Access Events or URL shares event for described URL(uniform resource locator) (Uniform Resource Locator is called for short URL).Concrete, this URL Access Events can trigger the Access Events of accessing the corresponding resource of this URL for user by clicking URL link, this URL shares event can send to other users for user clicks a certain programmable button by URL, and that such as shares circle of friends shares event.
S102: if comprise described URL event, then judge the resource indicated by target URL corresponding to described URL event whether music.
In specific embodiment, obtain this network browsing event if detect and comprise this URL event, terminal device (hereinafter referred to as terminal) can judge whether the resource indicated by the target URL that this URL event is corresponding is music, and the extension name such as comprised according to this target URL judges whether the resource obtaining this target URL instruction is music.
S103: if music, then generate the play command comprising described target URL, and send described play command to the wireless music playing device be connected with described terminal device, to make described wireless music playing device access described target URL according to described play command, to play the music indicated by described target URL.
In specific embodiment, when judging that obtaining target URL resource corresponding to this URL event is music, this target URL can be packed, and generate the play command that comprises this target URL, this play command be sent to the current wireless music playing device be connected with terminal.This play command plays music indicated by this target URL for controlling wireless music playing device, concrete, wireless music playing device is after receiving this play command, namely may have access to the URL that this play command comprises, play the music that this URL indicates, thus achieve the music of to be play-overed by wireless music playing device in network.
Further optional, the play command of described target URL is comprised in described generation, and before sending described play command to the wireless music playing device be connected with described terminal device, terminal is exportable play cuing message also, and described play cuing message plays the music indicated by described target URL for reminding the user of described terminal the need of the wireless music playing device by being connected with described terminal; If receive the confirmation play instruction that user inputs for described play cuing message, then perform the play command that described generation comprises described target URL, and send the step of described play command to the wireless music playing device be connected with described terminal device.Wherein, described play cuing message can comprise any one or multinomial in the musical designation of music indicated by described target URL, music type, music size and playing duration.
In embodiments of the present invention, by the network browsing operations of monitor terminal user, and whether the resource detecting this URL instruction when current generation URL event being detected further is music, make it possible to generate the play command comprising this URL when this URL is designated as music, and send to wireless music playing device to play, thus achieve the music directly play in this wireless music playing device in internet, avoid when wanting to play the music in this internet, user is needed to go to apply the problem that could realize after manual search goes out this music in music sources storehouse playing this internet music, make to improve music efficiency, save the time of terminal user.
Further, refer to Fig. 2, Fig. 2 is the schematic flow sheet of a kind of method for playing music that the embodiment of the present invention provides, concrete, and the described method of the embodiment of the present invention can comprise the following steps:
S201: the network browsing event of monitoring present terminal equipment, and detect described network browsing event and whether comprise URL event.
Optionally, described URL event can comprise URL Access Events or URL shares event.Concrete, this URL Access Events can trigger the Access Events of accessing the corresponding resource of this URL for user by clicking URL link, this URL shares event, and for user clicks, URL is sent to other users by a certain programmable button, and that such as shares circle of friends shares event.
S202: if comprise described URL event, then detect in target URL corresponding to described URL event whether there is target extension name.
S203: if there is described target extension name, then determine that the resource indicated by described target URL is music.
In specific embodiment, the APP carrying out music in terminal for controlling wireless music playing device can at running background, and surf the web operation and the network browsing event of monitor terminal user, and when detecting that user clicks certain URL link or shares a certain URL resource, determine current generation URL event, whether the resource getting final product this URL of further detection trigger corresponding is music, and the extension name such as comprised according to this URL judges whether the resource obtaining this URL instruction is music.
It should be noted that, described music of the invention process can refer to the audio file of various form.Concrete, store the extension name of the audio file of various form in terminal, i.e. target extension name, as comprised mp3, mp4, wma, wmv, mid, wav, vqf, flac, ogg and/or ape etc.When URL event being detected, whether terminal can detect in target URL corresponding to this URL event exists arbitrary above-mentioned item target extension name, and detect there is above-mentioned arbitrary target extension name time, can determine that the resource that this target URL is corresponding is music.Further, this target extension name can be specially this wireless music playing device can support the music file of broadcasting extension name as wireless sound box.
S204: export play cuing message, described play cuing message is for reminding the user of described terminal the need of the music play by described wireless music playing device indicated by described target URL.
S205: the confirmation play instruction that user inputs for described play cuing message if receive, then generate the play command comprising described target URL, and send described play command to described wireless music playing device, to make described wireless music playing device access described target URL according to described play command, to play the music indicated by described target URL.
Further, the play command of described target URL is comprised in described generation, and before sending described play command to the wireless music playing device be connected with described terminal, terminal also exportable one for remind terminal user the need of by wireless music playing device as wireless sound box plays the play cuing message of the music indicated by this target URL, and the confirmation play instruction receiving user and input for described play cuing message, when such as user clicks the confirmation play instruction of a certain default confirmation button triggering, generate the play command comprising this target URL, and this play command is sent to this wireless sound box, with the music making this wireless sound box play this target URL instruction.
Concrete, described play cuing message can comprise the music informations such as the musical designation of music indicated by described target URL, music type, Ge Shouming, music size and playing duration, so that user determines whether to need to play by this wireless sound box the music that this URL indicates according to this music information.
In specific embodiment, present terminal connects by cordless communication network and wireless sound box, connects as by bluetooth, Wi-Fi or 2.4G wireless network and wireless sound box.Obtaining target URL resource corresponding to this URL event in judgement is music, and receive the confirmation play instruction that user inputs for the play cuing message of this output, when also namely determining to need to play the music of this URL instruction by this wireless sound box, this target URL can be packed, and generate the play command that comprises this target URL, this play command is sent to the current wireless sound box setting up wireless connections with terminal.This play command plays music indicated by this target URL for controlling wireless sound box, concrete, wireless sound box is after receiving this play command, namely may have access to the URL that this play command comprises, play the music that this URL indicates, thus achieve the music of to be play-overed by wireless music playing device in network.
Further, also a URL event-monitoring functional switch can being set in terminal, whether opening by detecting this monitoring function switch the operation performing correspondence.Concrete, can detect that present terminal opens URL event-monitoring function, as by a certain programmable button of click trigger open this URL event-monitoring function time, trigger the network browsing event performing this terminal of monitoring, and detect the step whether described network browsing event comprise URL event; Otherwise, then without the need to monitoring terminal network browsing event.
In embodiments of the present invention, by the network browsing operations of monitor terminal user, make current generation URL event detected, and the resource that this URL indicates is when being music, this music is play the need of by wireless sound box further by output play cuing prompting message user, and generation comprises the play command of this URL and sends to this wireless sound box after user confirms to play, thus can realize directly in this wireless sound box, playing internet music according to user's request, avoid when wanting to play this internet music, user is needed to go to apply the problem that could realize after manual search goes out this music in music sources storehouse playing this internet music, make to improve music efficiency, save the time of terminal user.
Refer to Fig. 3, Fig. 3 is the structural representation of a kind of terminal device that the embodiment of the present invention provides, concrete, and the described terminal device of the embodiment of the present invention can comprise network monitoring module 11, judge module 12 and instruction sending module 13.Wherein,
Described network monitoring module 11, for monitoring the network browsing event of present terminal equipment, and detect described network browsing event and whether comprise uniform resource position mark URL event, described URL event comprises URL Access Events or URL shares event.
It should be noted that, the terminal device described in the embodiment of the present invention can be the terminal devices such as smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, MID, PDA or PC.
Optionally, described URL event can comprise URL Access Events or URL shares event.Concrete, this URL Access Events can trigger the Access Events of accessing the corresponding resource of this URL for user by clicking URL link, this URL shares event can send to other users for user clicks a certain programmable button by URL, and that such as shares circle of friends shares event.
Described judge module 12, for when described network monitoring module 11 detects that described network browsing event comprises described URL event, judges the resource indicated by target URL corresponding to described URL event whether music.
In specific embodiment, if network monitoring module 11 detection obtains this network browsing event and comprises this URL event, judge module 12 can be triggered and judge whether the resource indicated by the target URL that this URL event is corresponding is music, such as, the extension name that judge module 12 can comprise according to this target URL judges whether the resource obtaining this target URL instruction is music.
Described instruction sending module 13, for when the resource of judged result indicated by described target URL of described judge module 12 is music, generate the play command comprising described target URL, and send described play command to the wireless music playing device be connected with described terminal device, to make described wireless music playing device access described target URL according to described play command, to play the music indicated by described target URL.
In specific embodiment, when judge module 12 judges that obtaining target URL resource corresponding to this URL event is music, this target URL can pack by instruction sending module 13, and generate the play command that comprises this target URL, this play command is sent to the current wireless music playing device connected with terminal.This play command plays music indicated by this target URL for controlling wireless music playing device, concrete, wireless music playing device is after receiving this play command, namely may have access to the URL that this play command comprises, play the music that this URL indicates, thus achieve the music of to be play-overed by wireless music playing device in network.
In embodiments of the present invention, by the network browsing operations of monitor terminal user, and whether the resource detecting this URL instruction when current generation URL event being detected further is music, make it possible to generate the play command comprising this URL when this URL is designated as music, and send to wireless music playing device to play, thus achieve the music directly play in this wireless music playing device in internet, avoid when wanting to play the music in this internet, user is needed to go to apply the problem that could realize after manual search goes out this music in music sources storehouse playing this internet music, make to improve music efficiency, save the time of terminal user.
Further, refer to Fig. 4, Fig. 4 is the structural representation of the another kind of terminal device that the embodiment of the present invention provides, concrete, the described terminal device of the embodiment of the present invention can comprise the network monitoring module 11 of the terminal device in the corresponding embodiment of above-mentioned Fig. 3, judge module 12 and instruction sending module 13.Further, in embodiments of the present invention, described terminal device also can comprise:
Message output module 14, for exporting play cuing message, described play cuing message plays the music indicated by described target URL for reminding the user of described terminal device the need of the wireless music playing device by being connected with described terminal device;
Notification module 15, for when receiving the confirmation play instruction that user inputs for described play cuing message, notify that described instruction sending module 13 generates the play command comprising described target URL, and send described play command to the wireless music playing device be connected with described terminal device.
Optionally, described play cuing message comprises any one or multinomial in the musical designation of the music indicated by described target URL, music type, music size and playing duration.
Further, the play command of described target URL is comprised in described generation, and before sending described play command to the wireless music playing device be connected with described terminal, terminal also by message output module 14 export one for remind terminal user the need of by wireless music playing device as wireless sound box plays the play cuing message of the music indicated by this target URL, and the confirmation play instruction receiving user and input for described play cuing message, when such as user clicks the confirmation play instruction of a certain default confirmation button triggering, trigger notice module 15 notification instruction sending module 13 generates the play command comprising this target URL, and this play command is sent to this wireless sound box, with the music making this wireless sound box play this URL instruction.Wherein, described play cuing message can comprise the music informations such as the musical designation of music indicated by described target URL, music type, Ge Shouming, music size and playing duration, so that user determines whether to need to play by this wireless sound box the music that this URL indicates according to this music information.
Optionally, in embodiments of the present invention, described judge module 12 can comprise further:
Detecting unit 121, for detecting in target URL corresponding to described URL event whether there is target extension name, the described target expansion wireless music playing device be connected with described terminal device by name support the extension name of the music file play;
Music determining unit 122, when there is described target extension name for detecting in described target URL at described detecting unit 121, determines that the resource indicated by described target URL is music.
In specific embodiment, the APP carrying out music in terminal for controlling wireless sound box can at running background, surf the web operation and the network browsing event of network monitoring module 11 monitor terminal user, and when detecting that user clicks certain URL link or shares a certain URL resource, determine current generation URL event, whether is namely music by judge module 12 resource that further this URL of detection trigger is corresponding, the extension name such as comprised according to this URL judges to obtain whether the resource that this URL indicates is music.
It should be noted that, described music of the invention process can refer to the audio file of various form.Concrete, store the extension name of the audio file of various form in terminal, i.e. target extension name, as comprised mp3, mp4, wma, wmv, rmvb, mid, wav, vqf, flac, ogg and/or ape etc.When network monitoring module 11 detects URL event, namely detect in target URL corresponding to this URL event whether there is arbitrary above-mentioned item target extension name by detecting unit 121, and detect there is above-mentioned arbitrary target extension name time, music determining unit 122 can determine that the resource that this target URL is corresponding is music.Further, this target extension name can be specially this wireless music playing device can support the music file of broadcasting extension name as wireless sound box.
Further alternative, in embodiments of the present invention, described terminal can also comprise:
Function detection module 16, URL event-monitoring function whether is opened for detecting present terminal equipment, and when detecting that described URL event-monitoring function opened by described terminal device, notify that described network monitoring module 11 monitors the network browsing event of described terminal device, and detect described network browsing event and whether comprise URL event.
Further, also can arrange a URL event-monitoring functional switch in terminal, detecting this monitoring function switch by function detection module 16 is that unlatching or closed condition perform corresponding operation.Concrete, function detection module 16 can detect that present terminal opens URL event-monitoring function, when opening this URL event-monitoring function as by a certain programmable button triggering of click, notify that described network monitoring module 11 monitors the network browsing event of this terminal, and detect described network browsing event and whether comprise URL event; Otherwise, then without the need to monitoring terminal network browsing event.
In specific embodiment, present terminal connects by cordless communication network and wireless sound box, connects as by bluetooth, Wi-Fi or 2.4G wireless network and wireless sound box.Judge that obtaining target URL resource corresponding to this URL event is music at judge module 12, and receive the notice that notification module 15 sends after receiving the confirmation play instruction that the play cuing message of user for this output inputs, when also namely determining to need to play the music of this URL instruction by this wireless sound box, this target URL can pack by instruction sending module 13, and generate the play command that comprises this target URL, this play command is sent to the current wireless sound box setting up wireless connections with terminal.This play command plays music indicated by this target URL for controlling wireless sound box, concrete, wireless sound box is after receiving this play command, namely may have access to the URL that this play command comprises, play the music that this URL indicates, thus achieve the music of to be play-overed by wireless music playing device in network.
In embodiments of the present invention, by the network browsing operations of monitor terminal user, make current generation URL event detected, and the resource that this URL indicates is when being music, this music is play the need of by wireless sound box further by output play cuing prompting message user, and generation comprises the play command of this URL and sends to this wireless sound box after user confirms to play, thus can realize directly in this wireless sound box, playing internet music according to user's request, avoid when wanting to play this internet music, user is needed to go to apply the problem that could realize after manual search goes out this music in music sources storehouse playing this internet music, make to improve music efficiency, save the time of terminal user.
Refer to Fig. 5, Fig. 5 is the structural representation of another terminal device that the embodiment of the present invention provides, for performing above-mentioned method for playing music.As shown in Figure 5, the described terminal device of the embodiment of the present invention can comprise: at least one processor 100, at least one input media 200, at least one output unit 300, assembly such as storer 500 grade.Wherein, these assemblies are communicated to connect by one or more bus 400.It will be appreciated by those skilled in the art that, the structure of the terminal shown in Fig. 5 does not form the restriction to the embodiment of the present invention, it both can be busbar network, also can be hub-and-spoke configuration, the parts more more or less than diagram can also be comprised, or combine some parts, or different parts are arranged.Wherein:
Processor 100 is the control center of terminal, utilize the various piece of various interface and the whole terminal of connection, by running or perform the program in storer 500 of being stored in and/or module, and call the data be stored in storer 500, to perform various function and the process data of terminal.Processor 100 by integrated circuit (Integrated Circuit is called for short IC) composition, such as, can be made up of the IC of single encapsulation, also can be made up of the encapsulation IC connecting many identical functions or difference in functionality.For example, processor 100 only can comprise central processing unit (Central Processing Unit, be called for short CPU), also can be CPU, digital signal processor (digital signal processor, be called for short DSP), the combination of graphic process unit (Graphic ProcessingUnit, be called for short GPU) and various control chip.In embodiments of the present invention, CPU can be single arithmetic core, also can comprise multioperation core.
Input media 200 can comprise the touch-screen of standard, keyboard, shooting are first-class, also can include line interface, wave point etc.
Output unit 300 can comprise display screen, loudspeaker etc., also can include line interface, wave point etc.
Storer 500 can be used for storing software program and module, processor 100, input media 200 and output unit 300 are stored in software program in storer 500 and module by calling, thus perform the various functions application of terminal and realize data processing.Storer 500 mainly comprises program storage area and data storage area, and wherein, program storage area can store operating system, application program etc. needed at least one function; Data storage area can store the data etc. created according to the use of terminal.In embodiments of the present invention, operating system can be android system, iOS system or Windows operating system etc.
Concrete, processor 100 calls the application program be stored in storer 500, for performing following steps:
The network browsing event of monitoring present terminal equipment, and detect described network browsing event and whether comprise uniform resource position mark URL event, described URL event comprises URL Access Events or URL shares event;
If comprise described URL event, then judge the resource indicated by target URL corresponding to described URL event whether music;
If music, then generate the play command comprising described target URL, and send described play command to the wireless music playing device be connected with described terminal device, to make described wireless music playing device access described target URL according to described play command, to play the music indicated by described target URL.
It should be noted that, the terminal described in the embodiment of the present invention can be specially the terminal devices such as smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, MID, PDA or PC.
Optionally, described URL event can comprise URL Access Events or URL shares event.Concrete, this URL Access Events can trigger the Access Events of accessing the corresponding resource of this URL for user by clicking URL link, this URL shares event can send to other users for user clicks a certain programmable button by URL, and that such as shares circle of friends shares event.
Optionally, processor 100 calls the application program be stored in storer 500 and performs the play command that described generation comprises described target URL, and before sending described play command to the wireless music playing device be connected with described terminal device, also for performing following steps:
Export play cuing message, described play cuing message plays the music indicated by described target URL for reminding the user of described terminal device the need of the wireless music playing device by being connected with described terminal device;
If receive the confirmation play instruction that user inputs for described play cuing message, then perform the play command that described generation comprises described target URL, and send the step of described play command to the wireless music playing device be connected with described terminal device.
Optionally, described play cuing message comprises any one or multinomial in the musical designation of the music indicated by described target URL, music type, music size and playing duration.
Optionally, processor 100 calls the application program be stored in storer 500 and performs and describedly judge the resource indicated by target URL corresponding to described URL event whether music, specifically performs following steps:
Detect in target URL corresponding to described URL event and whether there is target extension name, the described target expansion wireless music playing device be connected with described terminal device by name support the extension name of the music file play;
If there is described target extension name, then determine that the resource indicated by described target URL is music.
It should be noted that, described music of the invention process can refer to the audio file of various form.Concrete, store the extension name of the audio file of various form in terminal, i.e. target extension name, as comprised mp3, mp4, wma, wmv, rmvb, mid, wav, vqf, avi, mpg, mpeg or cda etc.When URL event being detected, whether terminal can detect in target URL corresponding to this URL event exists arbitrary above-mentioned item target extension name, and detect there is arbitrary target extension name time, can determine that the resource that this target URL is corresponding is music.Further, this target extension name can be specially this wireless music playing device can support the music file of broadcasting extension name as wireless sound box.
Optionally, processor 100 calls the network browsing event that the application program be stored in storer 500 performs described monitoring present terminal equipment, and detects before whether described network browsing event comprise URL event, also for performing following steps:
Detect present terminal equipment and whether open URL event-monitoring function;
If detect, described URL event-monitoring function opened by described terminal device, then perform the network browsing event of the described terminal device of described monitoring, and detects the step whether described network browsing event comprise URL event.
In embodiments of the present invention, by the network browsing operations of monitor terminal user, and whether the resource detecting this URL instruction when current generation URL event being detected further is music, make it possible to generate the play command comprising this URL when this URL is designated as music, and send to wireless music playing device to play, thus achieve the music directly play in this wireless music playing device in internet, avoid when wanting to play the music in this internet, user is needed to go to apply the problem that could realize after manual search goes out this music in music sources storehouse playing this internet music, make to improve music efficiency, save the time of terminal user.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random access memory (Random Access Memory is called for short RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. a method for playing music, is characterized in that, comprising:
The network browsing event of monitoring present terminal equipment, and detect described network browsing event and whether comprise uniform resource position mark URL event, described URL event comprises URL Access Events or URL shares event;
If comprise described URL event, then judge the resource indicated by target URL corresponding to described URL event whether music;
If music, then generate the play command comprising described target URL, and send described play command to the wireless music playing device be connected with described terminal device, to make described wireless music playing device access described target URL according to described play command, to play the music indicated by described target URL.
2. method according to claim 1, is characterized in that, comprises the play command of described target URL in described generation, and before sending described play command to the wireless music playing device be connected with described terminal device, described method also comprises:
Export play cuing message, described play cuing message plays the music indicated by described target URL for reminding the user of described terminal device the need of the wireless music playing device by being connected with described terminal device;
If receive the confirmation play instruction that user inputs for described play cuing message, then perform the play command that described generation comprises described target URL, and send the step of described play command to the wireless music playing device be connected with described terminal device.
3. method according to claim 2, is characterized in that, described play cuing message comprises any one or multinomial in the musical designation of the music indicated by described target URL, music type, music size and playing duration.
4. the method according to any one of claim 1-3, is characterized in that, describedly judges the resource indicated by target URL corresponding to described URL event whether music, comprising:
Detect in target URL corresponding to described URL event and whether there is target extension name, the described target expansion wireless music playing device be connected with described terminal device by name support the extension name of the music file play;
If there is described target extension name, then determine that the resource indicated by described target URL is music.
5. method according to claim 1, is characterized in that, in the network browsing event of described monitoring present terminal equipment, and detect before whether described network browsing event comprise URL event, described method also comprises:
Detect present terminal equipment and whether open URL event-monitoring function;
If detect, described URL event-monitoring function opened by described terminal device, then perform the network browsing event of the described terminal device of described monitoring, and detects the step whether described network browsing event comprise URL event.
6. a terminal device, is characterized in that, comprising:
Network monitoring module, for monitoring the network browsing event of present terminal equipment, and detect described network browsing event and whether comprise uniform resource position mark URL event, described URL event comprises URL Access Events or URL shares event;
Judge module, during for detecting that described network browsing event comprises described URL event at described network monitoring module, judges the resource indicated by target URL corresponding to described URL event whether music;
Instruction sending module, for when the resource of judged result indicated by described target URL of described judge module is music, generate the play command comprising described target URL, and send described play command to the wireless music playing device be connected with described terminal device, to make described wireless music playing device access described target URL according to described play command, to play the music indicated by described target URL.
7. terminal device according to claim 6, is characterized in that, described terminal device also comprises:
Message output module, for exporting play cuing message, described play cuing message plays the music indicated by described target URL for reminding the user of described terminal device the need of the wireless music playing device by being connected with described terminal device;
Notification module, for when receiving the confirmation play instruction that user inputs for described play cuing message, notify that described instruction sending module generates the play command comprising described target URL, and send described play command to the wireless music playing device be connected with described terminal device.
8. terminal device according to claim 7, is characterized in that, described play cuing message comprises any one or multinomial in the musical designation of the music indicated by described target URL, music type, music size and playing duration.
9. the terminal device according to any one of claim 6-8, is characterized in that, described judge module comprises:
Detecting unit, for detecting in target URL corresponding to described URL event whether there is target extension name, the described target expansion wireless music playing device be connected with described terminal device by name support the extension name of the music file play;
Music determining unit, when there is described target extension name for detecting in described target URL at described detecting unit, determines that the resource indicated by described target URL is music.
10. terminal device according to claim 6, is characterized in that, described terminal device also comprises:
Function detection module, URL event-monitoring function whether is opened for detecting present terminal equipment, and when detecting that described URL event-monitoring function opened by described terminal device, notify that described network monitoring module monitors the network browsing event of described terminal device, and detect described network browsing event and whether comprise URL event.
CN201510296216.1A 2015-06-02 2015-06-02 Method for music playing and terminal device Pending CN104978398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510296216.1A CN104978398A (en) 2015-06-02 2015-06-02 Method for music playing and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510296216.1A CN104978398A (en) 2015-06-02 2015-06-02 Method for music playing and terminal device

Publications (1)

Publication Number Publication Date
CN104978398A true CN104978398A (en) 2015-10-14

Family

ID=54274902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510296216.1A Pending CN104978398A (en) 2015-06-02 2015-06-02 Method for music playing and terminal device

Country Status (1)

Country Link
CN (1) CN104978398A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808202A (en) * 2016-03-08 2016-07-27 广东欧珀移动通信有限公司 Information display method and relevant equipment
CN106815084A (en) * 2016-12-30 2017-06-09 百度在线网络技术(北京)有限公司 The operation processing method and device of interconnecting application
CN108287918A (en) * 2018-02-13 2018-07-17 广东欧珀移动通信有限公司 Method for playing music, device, storage medium based on five application page and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU5036700A (en) * 1999-08-19 2001-03-19 Audiobase, Inc. A system and method for providing audio/video content delivery over a network
CN101212485A (en) * 2006-12-28 2008-07-02 中国科学院计算技术研究所 Method for obtaining stream media link address
CN102843615A (en) * 2012-09-05 2012-12-26 北京星网锐捷网络技术有限公司 Cache indexing method of online video files and cache server
CN103347219A (en) * 2013-06-26 2013-10-09 广东欧珀移动通信有限公司 Method of playing network videos online
CN103455602A (en) * 2013-09-03 2013-12-18 小米科技有限责任公司 Video URL (Uniform Resource Locator) capturing method and device and terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU5036700A (en) * 1999-08-19 2001-03-19 Audiobase, Inc. A system and method for providing audio/video content delivery over a network
CN101212485A (en) * 2006-12-28 2008-07-02 中国科学院计算技术研究所 Method for obtaining stream media link address
CN102843615A (en) * 2012-09-05 2012-12-26 北京星网锐捷网络技术有限公司 Cache indexing method of online video files and cache server
CN103347219A (en) * 2013-06-26 2013-10-09 广东欧珀移动通信有限公司 Method of playing network videos online
CN103455602A (en) * 2013-09-03 2013-12-18 小米科技有限责任公司 Video URL (Uniform Resource Locator) capturing method and device and terminal equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808202A (en) * 2016-03-08 2016-07-27 广东欧珀移动通信有限公司 Information display method and relevant equipment
CN106815084A (en) * 2016-12-30 2017-06-09 百度在线网络技术(北京)有限公司 The operation processing method and device of interconnecting application
CN106815084B (en) * 2016-12-30 2023-06-23 百度在线网络技术(北京)有限公司 Operation processing method and device for interconnection application
CN108287918A (en) * 2018-02-13 2018-07-17 广东欧珀移动通信有限公司 Method for playing music, device, storage medium based on five application page and electronic equipment
CN108287918B (en) * 2018-02-13 2020-07-07 Oppo广东移动通信有限公司 Music playing method and device based on application page, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
WO2021013125A1 (en) Method and device for sending conversation message
CN108027706A (en) A kind of application interface display methods and terminal device
US9431983B2 (en) Volume adjusting method, volume adjusting apparatus and electronic device using the same
TW201826112A (en) Voice-based interaction method and apparatus, electronic device, and operating system
US20080167008A1 (en) Voicemail Systems and Methods
WO2014201863A1 (en) Volume adjusting method, volume adjusting apparatus and electronic device using the same
US20090064202A1 (en) Support layer for enabling same accessory support across multiple platforms
CN105072146B (en) Music information sharing method and device
WO2022033171A1 (en) Method and apparatus for playing multimedia data, and electronic device and storage medium
WO2018099163A1 (en) Terminal and application control method
CN112685121B (en) Method and equipment for presenting session entry
CN112822431B (en) Method and equipment for private audio and video call
CN110413179B (en) Method and equipment for presenting session message
CN103984597A (en) Method, device and system for task run switching
CN104978398A (en) Method for music playing and terminal device
CN107967092B (en) Application related information display method and related equipment
CN104599702A (en) Music playing method
WO2016070690A1 (en) Method, device and system for realizing communication between application and webpage on terminal device
CN106020893A (en) Application installation method and device
US11632581B2 (en) Playlist switching method, apparatus and system, terminal and storage medium
CN108604331B (en) Information reminding method and mobile device
CN109658934A (en) Pass through the method and device of voice control multimedia app
CN111381798A (en) Audio processing method, device, terminal and storage medium
CN105005612A (en) Music file acquisition method and mobile terminal
CN103530100B (en) A kind of Jing Yin method, apparatus of WMP components and player

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151014