Summary of the invention
In order to simplify the position fixing process of the audio window in audio program, and then improve location efficiency, the invention provides a kind of method and apparatus of realizing the audio window location.
The invention provides a kind of method that realizes the audio window location, described method comprises:
The state of audio reception program changes instruction;
Change instruction according to described state, obtain idsplay order corresponding to described audio program;
Described idsplay order is sent to display end, so that described display end shows location entrance corresponding to described audio program;
Receive the positioning instruction that the user triggers by clicking described location entrance;
Realize the location of the target audio window in described audio program according to described positioning instruction.
Preferably, described location of realizing the target audio window in described audio program according to described positioning instruction comprises:
State in described audio program changes front window and is set to the target audio window;
Realize that according to described positioning instruction described state changes the location of front window.
Preferably, described location of realizing the target audio window in described audio program according to described positioning instruction comprises:
Arbitrary audio window in described audio program is set to the target audio window;
Realize the location of described audio window according to described positioning instruction.
Preferably, described location of realizing the target audio window in described audio program according to described positioning instruction is specially:
Current broadcast window in described audio program is set to the target audio window;
Realize the location of described current broadcast window according to described positioning instruction.
Preferably, described method also comprises:
Obtain the current coordinate of described location entrance;
Obtain the move of the described location entrance of user's triggering;
Described move and described current coordinate are sent to display end, so that described display end shows described location entrance again.
The present invention also provides a kind of device of realizing the audio window location, and described device comprises:
The first receiver module, the state that is used for the audio reception program changes instruction;
The first acquisition module is used for changing instruction according to described state, obtains idsplay order corresponding to described audio program;
The first delivery module is used for described idsplay order is sent to display end, so that described display end shows location entrance corresponding to described audio program;
The second receiver module is used for receiving the positioning instruction that the user triggers by clicking described location entrance;
Locating module is used for the location of realizing the target audio window of described audio program according to described positioning instruction.
Preferably, described locating module comprises:
First arranges submodule, and the state that is used for described audio program changes front window and is set to the target audio window;
The first locator module is used for realizing that according to described positioning instruction described state changes the location of front window.
Preferably, described locating module comprises:
Second arranges submodule, and the arbitrary audio window that is used for described audio program is set to the target audio window;
The second locator module is used for the location of realizing described audio window according to described positioning instruction.
Preferably, described locating module comprises:
The 3rd arranges submodule, and the current broadcast window that is used for described audio program is set to the target audio window;
The 3rd locator module is used for the location of realizing described current broadcast window according to described positioning instruction.
Preferably, described device also comprises:
The second acquisition module is for the current coordinate that obtains described location entrance;
The 3rd acquisition module is for the move of the described location entrance that obtains user's triggering;
The second delivery module is used for described move and described current coordinate are sent to display end, so that described display end shows described location entrance again.
The present invention by receive be in running status the non-display instruction of initial audio window, obtain idsplay order corresponding to described initial audio window, thereby described idsplay order is sent to display end, so that described display end shows location entrance corresponding to described initial audio window.Simultaneously, compared with prior art, the present invention only need to receive the positioning instruction that the user passes through click described location entrance triggering, with regard to the direct location according to positioning instruction realize target audio window of energy, thus the positioning step of simplification audio window, the raising location efficiency.
Further, the present invention is according to the positioning instruction that the user triggers, and can realize the location of the target audio window that sets in advance, increased the accuracy of location.
Further, the present invention obtains by move and the current coordinate of locating entrance, realizes the demonstration again of location entrance, and then has improved the dirigibility of location entrance demonstration.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the application's part embodiment, rather than whole embodiment.Based on the embodiment in the application, those of ordinary skills are not making the every other embodiment that obtains under the creative work prerequisite, all belong to the scope of the application's protection.
Embodiment one,
With reference to figure 1, Fig. 1 is a kind of process flow diagram of realizing the embodiment of the method one that audio window is located provided by the invention, and the method for the present embodiment specifically can comprise:
The state of step 101, audio reception program changes instruction.
In the present embodiment, it is the change instruction of the show state of audio program that state changes instruction, that is to say, when the show state of audio program changed, system can accepting state change instruction.
Concrete, the change of the show state of audio program can be audio program by the not show state of changing at the show state on mobile phone foreground at the mobile phone running background.Wherein, the meaning of running background is that audio program is in running status, but also is in the state that display end does not show.Simultaneously, the change of the show state of audio program can be also that the show state of certain display window of audio program changes, and for example, audio program shows and downloads the song interface by showing that current broadcast interface is changed into.
Step 102, change instruction according to described state, obtain idsplay order corresponding to described audio program.
In the present embodiment, receive the state change instruction of audio program in system after, obtain the corresponding idsplay order of this audio program.Wherein, idsplay order is used for showing current audio program corresponding location entrance.
Step 103, described idsplay order is sent to display end, so that described display end shows location entrance corresponding to described audio program.
In the present embodiment, the idsplay order that obtains is sent to display end, thereby display end shows location entrance corresponding to described audio program according to idsplay order.
In practical operation, there are relation one to one in audio program and idsplay order, and also there are relation one to one in idsplay order and location entrance simultaneously, that is to say, all have relation one to one between audio program, idsplay order and location entrance.Such as, there be the idsplay order corresponding with it for cruel my music player, can create the location entrance different from other music programs according to this idsplay order.
Wherein, the display format of location entrance can be circle, rectangle or irregular figure, and the icon of location entrance can show with the picture form, also can show with the animation form.In addition, the user can by the display format of regioselective entrance, change the display format of the location entrance of any one audio program.More and can not all show the time when the location of display end entrance quantity, can be by automatically dwindling the size of location entrance, to adapt to the viewing area of display end.
The positioning instruction that step 104, reception user trigger by clicking described location entrance.
In the present embodiment, after the user clicked the location entrance of display end demonstration, system received the positioning instruction that the user triggers.
Wherein, the user that is operating as of triggered location instruction clicks the location entrance.Positioning instruction specifically is used for the location entrance clicked according to the user, locks audio program corresponding to this location entrance.That is to say, when the user clicks the location during entrance, this location entrance corresponding audio program shows at display end.
Step 105, the location of realizing the target audio window in described audio program according to described positioning instruction.
In the present embodiment, can realize the accurate location of the window of audio program according to positioning instruction, before realizing the location, set in advance the target audio window that needs the location.Definite and the locator meams of target audio window can be divided into three kinds, and is specific as follows:
First kind of way:
At first, the state in described audio program changes front window and is set to the target audio window, secondly, realizes that according to described positioning instruction described state changes the location of front window.
Wherein, the state of audio program change front window is the display window of audio program before being converted to running background.For example, display window before cruel my music player enters running background is for just at broadcast window the time, and this just just is set to the target audio window at broadcast window, finally, make display end show this just at broadcast window according to positioning instruction, just realize the location at broadcast window.
The second way:
At first, the arbitrary audio window in described audio program is set to the target audio window, secondly, and the location of realizing described audio window according to described positioning instruction.
Wherein, any one audio window in can audio program is set to the target audio window, for example, can be arranged to the target audio window with downloading the song window, finally, make display end show this download song window according to positioning instruction, realize downloading the location of song window.
The third mode:
At first, the current broadcast window in described audio program is set to the target audio window, secondly, and the location of realizing described current broadcast window according to described positioning instruction.
Wherein, the target audio window is set to current broadcast window, opens current broadcast window by positioning instruction, realizes the location of current broadcast window.
In actual the use, often there is the demand of switching song, suspending song in the user, so, current broadcast window is set to the target audio window, realize the location of current broadcast window, by switching song button and the time-out song button that operates current broadcast window, satisfy user's demand.
With reference to figure 2, the method for Fig. 2 for realizing that the location entrance shows again, concrete steps are as follows:
Step 201, obtain the current coordinate of described location entrance.
In the present embodiment, before the demonstration again that realizes the location entrance, at first obtain the current coordinate of trailing location entrance.
Step 202, the move of obtaining the described location entrance of user's triggering.
In the present embodiment, the user triggers move by dragging the location entrance.Wherein, move comprises the terminal point coordinate that drags the location entrance, and the track that drags the location entrance.
Step 203, described move and described current coordinate are sent to display end, so that described display end shows described location entrance again.
In the present embodiment, after move and current coordinate are sent to display end, display end according to current coordinate, drag track and the terminal point coordinate of location entrance, the location entrance is shown again.
Concrete, all the location entrance is shown again at the track that drags the location entrance and destination county.
The present invention by receive be in running status the non-display instruction of initial audio window, obtain idsplay order corresponding to described initial audio window, thereby described idsplay order is sent to display end, so that described display end shows location entrance corresponding to described initial audio window.Simultaneously, compared with prior art, the present invention only need to receive the positioning instruction that the user passes through click described location entrance triggering, with regard to the direct location according to positioning instruction realize target audio window of energy, thus the positioning step of simplification audio window, the raising location efficiency.
Further, the present invention is according to the positioning instruction that the user triggers, and can realize the location of the target audio window that sets in advance, increased the accuracy of location.
Further, the present invention obtains by move and the current coordinate of locating entrance, realizes the demonstration again of location entrance, and then has improved the dirigibility of location entrance demonstration.
Embodiment two,
With reference to figure 3, Fig. 3 is a kind of structure drawing of device of realizing the device embodiment two that audio window is located provided by the invention, and the device of the present embodiment specifically can comprise:
The first receiver module 301, the state that is used for the audio reception program changes instruction.
The first acquisition module 302 is used for changing instruction according to described state, obtains idsplay order corresponding to described audio program.
The first delivery module 303 is used for described idsplay order is sent to display end, so that described display end shows location entrance corresponding to described audio program.
The second receiver module 304 is used for receiving the positioning instruction that the user triggers by clicking described location entrance.
Locating module 305 is used for the location of realizing the target audio window of described audio program according to described positioning instruction.
With reference to figure 4, the device of Fig. 4 for realizing that the location entrance shows again specifically comprises:
The second acquisition module 401 is for the current coordinate that obtains described location entrance.
The 3rd acquisition module 402 is for the move of the described location entrance that obtains user's triggering.
The second delivery module 403 is used for described move and described current coordinate are sent to display end, so that described display end shows described location entrance again.
The present invention by receive be in running status the non-display instruction of initial audio window, obtain idsplay order corresponding to described initial audio window, thereby described idsplay order is sent to display end, so that described display end shows location entrance corresponding to described initial audio window.Simultaneously, compared with prior art, the present invention only need to receive the positioning instruction that the user passes through click described location entrance triggering, with regard to the direct location according to positioning instruction realize target audio window of energy, thus the positioning step of simplification audio window, the raising location efficiency.
Further, the present invention is according to the positioning instruction that the user triggers, and can realize the location of the target audio window that sets in advance, increased the accuracy of location.
Further, the present invention obtains by move and the current coordinate of locating entrance, realizes the demonstration again of location entrance, and then has improved the dirigibility of location entrance demonstration.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part gets final product referring to the part explanation of embodiment of the method.Device embodiment described above is only schematic, wherein said unit as the separating component explanation can or can not be also physically to separate, the parts that show as the unit can be or can not be also physical locations, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select according to the actual needs wherein some or all of module to realize the purpose of the present embodiment scheme.Those of ordinary skills namely can understand and implement in the situation that do not pay creative work.
Need to prove, in this article, relational terms such as the first and second grades only is used for an entity or operation are separated with another entity or operational zone, and not necessarily requires or hint and have the relation of any this reality or sequentially between these entities or operation.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make the process, method, article or the equipment that comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or also be included as the intrinsic key element of this process, method, article or equipment.In the situation that not more restrictions, the key element that is limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
The above method and apparatus that audio window is located of realizing that the embodiment of the present invention is provided is described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.