Summary of the invention
In order to solve the problem that in prior art, user exits channel or enters channel complicated operation from other pages, the embodiment of the present invention provides a kind of control method and device of channel.Described technical scheme is as follows:
On the one hand, the embodiment of the present invention provides a kind of control method of channel, and described method comprises:
When the page of multimedia application demonstration switches to the page outside the described broadcasting channel page from the broadcasting channel page, the page output hover button after switching;
Operational order according to user to hover button, controls the displaying of the broadcasting channel page or closing of broadcasting channel.
In a kind of implementation of the embodiment of the present invention, described page output hover button after switching, comprising:
Search hover button historical record, judge that whether described hover button is for starting for the first time, described hover button historical record comprises coordinate when described hover button is closed at every turn;
When described hover button is while starting for the first time, at initial coordinate place, export described hover button;
When described hover button is not while starting for the first time, the coordinate place while once closing on described hover button exports described hover button.
In the another kind of implementation of the embodiment of the present invention, described according to user the operational order to hover button, control the displaying of the broadcasting channel page or closing of broadcasting channel, comprising:
Receive the operational order that user sends by described hover button;
When described operational order is the first operational order, controls described multimedia application and show the described broadcasting channel page, and close described hover button;
When described operational order is the second operational order, controls described multimedia application and close described broadcasting channel, and close described hover button.
In the another kind of implementation of the embodiment of the present invention, described operational order also comprises and drags instruction, and described method also comprises:
When the operational order sending by described hover button as described user drags instruction described in being, described in determining, drag the terminal point coordinate of instruction;
At described terminal point coordinate, place exports described hover button.
In the another kind of implementation of the embodiment of the present invention, described method also comprises:
Whether periodically detect described broadcasting channel closes;
If described broadcasting channel is closed, close described hover button;
If described broadcasting channel is not closed, whether detect described multimedia application in background state;
If described multimedia application, in background state, is closed described hover button.
On the other hand, the embodiment of the present invention also provides a kind of control device of channel, and described device comprises:
Output module, while switching to the page outside the described broadcasting channel page for the page showing when multimedia application from the broadcasting channel page, the page output hover button after switching;
Processing module, for the operational order to hover button according to user, controls the displaying of the broadcasting channel page or closing of broadcasting channel.
In a kind of implementation of the embodiment of the present invention, described output module comprises:
Judging unit, for searching hover button historical record, judges that whether described hover button is for starting for the first time, and described hover button historical record comprises coordinate when described hover button is closed at every turn;
Display unit, for being while starting for the first time when described hover button, exports described hover button at initial coordinate place;
When described hover button is not while starting for the first time, the coordinate place while once closing on described hover button exports described hover button.
In the another kind of implementation of the embodiment of the present invention, described processing module comprises:
Receiving element, the operational order sending by described hover button for receiving user;
Processing unit, for when described operational order is the first operational order, controls described multimedia application and shows the described broadcasting channel page, and close described hover button;
When described operational order is the second operational order, controls described multimedia application and close described broadcasting channel, and close described hover button.
In the another kind of implementation of the embodiment of the present invention, described operational order also comprises and drags instruction, described processing unit, while dragging instruction described in for the operational order sending by described hover button as described user being also, drags the terminal point coordinate of instruction described in determining;
Described output module, also for exporting described hover button at described terminal point coordinate place.
In the another kind of implementation of the embodiment of the present invention, described device also comprises:
Whether detection module, close for periodically detecting described broadcasting channel;
Described processing module, also, for when described broadcasting channel has been closed, closes described hover button;
When described broadcasting channel is not closed, whether detect described multimedia application in background state;
If described multimedia application, in background state, is closed described hover button.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
While switching to the page outside the broadcasting channel page by the page showing in multimedia application from the broadcasting channel page, the page output hover button after switching; Operational order according to user to hover button, controls the displaying of the broadcasting channel page or closing of broadcasting channel; Make user both can show the broadcasting channel page by hover button, also can close broadcasting channel by hover button, hover button is in the page after switching in addition, and do not limit it in homepage, can facilitate user to hover button executable operations, simple to operate, be user-friendly to.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment mono-
The embodiment of the present invention provides a kind of control method of channel, and referring to Fig. 1, the method comprises:
Step 101: when the page of multimedia application demonstration switches to the page outside the broadcasting channel page from the broadcasting channel page, the page output hover button after switching.
In the present embodiment, multimedia application includes but not limited to chat application, the live application of voice/video and audio/video playback application.
In the present embodiment, the broadcasting channel page refers to the page corresponding with broadcasting channel.In broadcasting channel, " channel " is similar with group, when main broadcaster creates a channel, server is ID of this channel allocation, other clients member can enter this channel by ID or channel designation, add this group, in group, can carry out relevant groups function, enjoy respective service.The broadcasting channel here can be divided into according to its function: chat channel, live audio channel and net cast channel etc., wherein live audio channel can be music, radio station broadcasting or main broadcaster's performance etc., net cast channel can be that Online Video is play, and it is live etc. that main broadcaster's performance of talent and art or main broadcaster play.
The page outside the broadcasting channel page comprises homepage, the chat page and finds the page (referring to hereinafter) etc.
When the page of multimedia application demonstration switches to the page outside the broadcasting channel page from the broadcasting channel page, the broadcasting channel that the broadcasting channel page is corresponding is not closed, multimedia application still can receiving channels in the audio-frequency information that sends of other users or main broadcaster, user still can with channel in other users carry out speech exchange; Meanwhile, other users or main broadcaster still can see this user in this channel user list.
Particularly, whether close: the information that reception server sends in communication process if can detect broadcasting channel by following manner, the information sending according to server judges whether to be in this broadcasting channel, and user is in this broadcasting channel, i.e. the broadcasting channel of multimedia application is not closed; User is not in this broadcasting channel, i.e. the broadcasting channel of multimedia application is closed.
Particularly, this hover button is suspended on the page of multimedia application, and it does not take fixing layout and shows control.Hover button can be safeguarded by hover button service (Service), the responsible position of determining that this hover button shows of this Service, outward appearance etc.The initial position of hover button can arrange arbitrarily, for example, on the right side of screen.
Step 102: the operational order according to user to hover button, control the displaying of the broadcasting channel page or closing of broadcasting channel.
The operational order here comprise click, double-click, long by with drag etc.
When the embodiment of the present invention switches to the page outside the broadcasting channel page by the page showing in multimedia application from the broadcasting channel page, the page output hover button after switching; Operational order according to user to hover button, controls the displaying of the broadcasting channel page or closing of broadcasting channel; Make user both can show the broadcasting channel page by hover button, also can close broadcasting channel by hover button, hover button is in the page after switching in addition, and do not limit it in homepage, can facilitate user to hover button executable operations, simple to operate, be user-friendly to.
Embodiment bis-
The embodiment of the present invention provides a kind of control method of channel, and referring to Fig. 2, the method comprises:
Step 201: when the page of multimedia application demonstration switches to the page outside the broadcasting channel page from the broadcasting channel page, the page output hover button after switching.
In the present embodiment, multimedia application includes but not limited to chat application, the live application of voice/video and audio/video playback application.
In the present embodiment, the broadcasting channel page refers to the page corresponding with broadcasting channel.In broadcasting channel, " channel " is similar with group, when main broadcaster creates a channel, server is ID of this channel allocation, other clients member can enter this channel by ID or channel designation, add this group, in group, can carry out relevant groups function, enjoy respective service.The broadcasting channel here can also be divided into according to its function: chat channel, live audio channel and net cast channel etc., wherein live audio channel can be music, radio station broadcasting or main broadcaster's performance etc., net cast channel can be that Online Video is play, and it is live etc. that main broadcaster's performance of talent and art or main broadcaster play.
The page outside the broadcasting channel page comprises homepage, the chat page and finds the page (referring to hereinafter) etc.
When the page of multimedia application demonstration switches to the page outside the broadcasting channel page from the broadcasting channel page, the broadcasting channel that the broadcasting channel page is corresponding is not closed, multimedia application still can receiving channels in the audio-frequency information that sends of other users or main broadcaster, user still can with channel in other users carry out speech exchange; Meanwhile, other users or main broadcaster still can see this user in this channel user list.
Particularly, the page output hover button after switching, can adopt following manner to realize:
Step 1, search hover button historical record, judge that whether hover button is for starting for the first time, hover button historical record comprises coordinate when hover button is closed at every turn.
Step 2, when hover button be while starting for the first time, at initial coordinate place output hover button; When hover button is not while starting for the first time, the coordinate place output hover button while once closing on hover button.
Particularly, this hover button is suspended on the page of multimedia application, and it does not take fixing layout and shows control.Hover button can be safeguarded by hover button Service, the responsible position of determining that this hover button shows of this Service, outward appearance etc.The initial position of hover button can arrange arbitrarily, for example, on the right side of screen.
As shown in Figure 3, during multimedia application access homepage, homepage has shown recommendation channel and function button, and now hover button can be suspended in and recommend on channel, and the position of this hover button can be adjusted by user certainly.
As shown in Figure 4, when the page is found in multimedia application access, find that the page has shown " sweep and sweep " button, " voice-enabled chat " button and function button, now the hover button optional position of this page that can suspend.
As shown in Figure 5, during the multimedia application access IM page, the IM page is a chat conversations frame, and now hover button can be suspended in the optional position of this chat conversations frame.
Step 202: receive the operational order that user sends by hover button.
The operational order here comprise click, double-click, long by with drag etc.
Step 203: when operational order is the first operational order, controls multimedia application and show the broadcasting channel page, and close hover button; When operational order is the second operational order, controls multimedia application and close broadcasting channel, and close hover button.
First operational order here and the content of the second operational order provide in advance, and for example the first operational order is for clicking hover button, and the second operational order is for double-clicking hover button.
Further, operational order also comprises and drags instruction, and the method can also comprise:
Step 1, the operational order that sends by hover button as user when dragging instruction, are determined the terminal point coordinate that drags instruction.
Step 2, at terminal point coordinate place output hover button.
Wherein, drag instruction for hover button is moved to another position from a position.This has dragged instruction definition track of this moving process, wherein, the terminal that move for this hover button another position.
Further, operational order also comprises that the method can also comprise by the instruction of projected route paddling:
The operational order sending by hover button as user is when by the instruction of projected route paddling, and the volume that controls broadcasting channel increases or reduces.By the instruction of projected route paddling, can be divided into upwards paddling and downwards paddling, two kinds of paddling modes respectively corresponding volume increase and reduce.
Further, operational order also comprises long by instruction, and the method can also comprise:
The operational order sending by hover button as user is, while growing by instruction, to control broadcasting channel quiet.
Easily know, aforesaid operations instruction and relevant treatment thereof just as an example, do not limit so.
Further, the present invention can also carry out indicated channel state by hover button, and for example the color by hover button or figure indicate whether channel is current a voice messaging.
Step 204: periodically detect broadcasting channel and whether close, if broadcasting channel is closed, close hover button; If broadcasting channel is not closed, perform step 205.
Particularly, can detect by following manner: the information that reception server sends in communication process, the information sending according to server judges whether to be in this broadcasting channel, and user is in this broadcasting channel, i.e. the broadcasting channel of multimedia application is not closed; User is not in this broadcasting channel, i.e. the broadcasting channel of multimedia application is closed.
Cycle in this step can arrange arbitrarily, for example 500 milliseconds.
Step 205: detect multimedia application whether in background state, if multimedia application, in background state, is closed hover button.If multimedia application is not in background state, do not carry out any action.
By above-mentioned steps 204~205, both guarantee the real-time that hover button shows, can, when occurring suspension, repeat logon or being kicked out of the situations such as channel, make in time response accurately; Also avoided in addition hover button to affect the normal use of other application.
Further, the method can also comprise: when closing hover button, record the coordinate of hover button, generate hover button historical record.This hover button record can be for exporting hover button in step 201.
When the embodiment of the present invention switches to the page outside the broadcasting channel page by the page showing in multimedia application from the broadcasting channel page, the page output hover button after switching; Operational order according to user to hover button, controls the displaying of the broadcasting channel page or closing of broadcasting channel; Make user both can show the broadcasting channel page by hover button, also can close broadcasting channel by hover button, hover button is in the page after switching in addition, and do not limit it in homepage, can facilitate user to hover button executable operations, simple to operate, be user-friendly to.
Embodiment tri-
The embodiment of the present invention provides a kind of control device of channel, and referring to Fig. 6, this device comprises:
Output module 301, while switching to the page outside the broadcasting channel page for the page showing when multimedia application from the broadcasting channel page, the page output hover button after switching.
Processing module 302, for the operational order to hover button according to user, controls the displaying of the broadcasting channel page or closing of broadcasting channel.
In the present embodiment, multimedia application includes but not limited to chat application, the live application of voice/video and audio/video playback application.
In the present embodiment, the broadcasting channel page refers to the page corresponding with broadcasting channel.In broadcasting channel, " channel " is similar with group, when main broadcaster creates a channel, server is ID of this channel allocation, other clients member can enter this channel by ID or channel designation, add this group, in group, can carry out relevant groups function, enjoy respective service.The broadcasting channel here can be divided into according to its function: chat channel, live audio channel and net cast channel etc., wherein live audio channel can be music, radio station broadcasting or main broadcaster's performance etc., net cast channel can be that Online Video is play, and it is live etc. that main broadcaster's performance of talent and art or main broadcaster play.
The page outside the broadcasting channel page comprises homepage, the chat page and finds the page (referring to hereinafter) etc.
When the page of multimedia application demonstration switches to the page outside the broadcasting channel page from the broadcasting channel page, the broadcasting channel that the broadcasting channel page is corresponding is not closed, multimedia application still can receiving channels in the audio-frequency information that sends of other users or main broadcaster, user still can with channel in other users carry out speech exchange; Meanwhile, other users or main broadcaster still can see this user in this channel user list.
Particularly, whether close: the information that reception server sends in communication process if can detect broadcasting channel by following manner, the information sending according to server judges whether to be in this broadcasting channel, and user is in this broadcasting channel, i.e. the broadcasting channel of multimedia application is not closed; User is not in this broadcasting channel, i.e. the broadcasting channel of multimedia application is closed.
Particularly, this hover button is suspended on the page of multimedia application, and it does not take fixing layout and shows control.Hover button can be safeguarded by hover button Service, the responsible position of determining that this hover button shows of this Service, outward appearance etc.The initial position of hover button can arrange arbitrarily, for example, on the right side of screen.
The operational order here comprise click, double-click, long by with drag etc.
When the embodiment of the present invention switches to the page outside the broadcasting channel page by the page showing in multimedia application from the broadcasting channel page, the page output hover button after switching; Operational order according to user to hover button, controls the displaying of the broadcasting channel page or closing of broadcasting channel; Make user both can show the broadcasting channel page by hover button, also can close broadcasting channel by hover button, hover button is in the page after switching in addition, and do not limit it in homepage, can facilitate user to hover button executable operations, simple to operate, be user-friendly to.
Embodiment tetra-
The embodiment of the present invention provides a kind of control device of channel, and referring to Fig. 7, this device comprises:
Output module 401, while switching to the page outside the broadcasting channel page for the page showing when multimedia application from the broadcasting channel page, the page output hover button after switching.
Processing module 402, for the operational order to hover button according to user, controls the displaying of the broadcasting channel page or closing of broadcasting channel.
In the present embodiment, multimedia application includes but not limited to chat application, the live application of voice/video and audio/video playback application.
In the present embodiment, the broadcasting channel page refers to the page corresponding with broadcasting channel.In broadcasting channel, " channel " is similar with group, when main broadcaster creates a channel, server is ID of this channel allocation, other clients member can enter this channel by ID or channel designation, add this group, in group, can carry out relevant groups function, enjoy respective service.The broadcasting channel here can also be divided into according to its function: chat channel, live audio channel and net cast channel etc., wherein live audio channel can be music, radio station broadcasting or main broadcaster's performance etc., net cast channel can be that Online Video is play, and it is live etc. that main broadcaster's performance of talent and art or main broadcaster play.
The page outside the broadcasting channel page comprises homepage, the chat page and finds the page (referring to hereinafter) etc.
When the page of multimedia application demonstration switches to the page outside the broadcasting channel page from the broadcasting channel page, the broadcasting channel that the broadcasting channel page is corresponding is not closed, multimedia application still can receiving channels in the audio-frequency information that sends of other users or main broadcaster, user still can with channel in other users carry out speech exchange; Meanwhile, other users or main broadcaster still can see this user in this channel user list.
Particularly, this hover button is suspended on the page of multimedia application, and it does not take fixing layout and shows control.Hover button can be safeguarded by hover button Service, the responsible position of determining that this hover button shows of this Service, outward appearance etc.The initial position of hover button can arrange arbitrarily, for example, on the right side of screen.
As shown in Figure 3, during multimedia application access homepage, homepage has shown recommendation channel and function button, and now hover button can be suspended in and recommend on channel, and the position of this hover button can be adjusted by user certainly.
As shown in Figure 4, when the page is found in multimedia application access, find that the page has shown " sweep and sweep " button, " voice-enabled chat " button and function button, now the hover button optional position of this page that can suspend.
As shown in Figure 5, during the multimedia application access IM page, the IM page is a chat conversations frame, and now hover button can be suspended in the optional position of this chat conversations frame.
In the present embodiment, output module 401 can comprise:
Judging unit 4011, for searching hover button historical record, judges that whether hover button is for starting for the first time, and hover button historical record comprises coordinate when hover button is closed at every turn.
Display unit 4012, for being while starting for the first time when hover button, at initial coordinate place output hover button; When hover button is not while starting for the first time, the coordinate place output hover button while once closing on hover button.
Further, processing module 402 can comprise:
Receiving element 4021, the operational order sending by hover button for receiving user.
The operational order here comprise click, double-click, long by with drag etc.
Processing unit 4022, for when operational order is the first operational order, controls multimedia application and shows the broadcasting channel page, and close hover button; When operational order is the second operational order, controls multimedia application and close broadcasting channel, and close hover button.
First operational order here and the content of the second operational order provide in advance, and for example the first operational order is for clicking hover button, and the second operational order is for double-clicking hover button.
Further, operational order also comprises and drags instruction, processing unit 4022, also for the operational order that sends by hover button as user when dragging instruction, determine the terminal point coordinate that drags instruction.
Correspondingly, output module 401, also for exporting hover button at terminal point coordinate place.
Wherein, drag instruction for hover button is moved to another position from a position.This has dragged instruction definition track of this moving process, wherein, the terminal that move for this hover button another position.
Further, operational order also comprises by the instruction of projected route paddling, processing unit 4022, also for the operational order that sends by hover button as user when by the instruction of projected route paddling, the volume that controls broadcasting channel increases or reduces.By the instruction of projected route paddling, can be divided into upwards paddling and downwards paddling, two kinds of paddling modes respectively corresponding volume increase and reduce.
Further, operational order also comprises to be grown by instruction, and processing unit 4022 is also, while growing by instruction, to control broadcasting channel quiet for the operational order sending by hover button as user.
Easily know, aforesaid operations instruction and relevant treatment thereof just as an example, do not limit so.
Further, the present invention can also carry out indicated channel state by hover button, and for example the color by hover button or figure indicate whether channel is current a voice messaging.
Further, this device can also comprise:
Whether detection module 403, close for periodically detecting broadcasting channel;
Processing module 402, also, for when broadcasting channel is closed, closes hover button;
When broadcasting channel is not closed, whether detect multimedia application in background state;
If multimedia application, in background state, is closed hover button.
Particularly, can detect by following manner: the information that reception server sends in communication process, the information sending according to server judges whether to be in this broadcasting channel, and user is in this broadcasting channel, i.e. the broadcasting channel of multimedia application is not closed; User is not in this broadcasting channel, i.e. the broadcasting channel of multimedia application is closed.
Cycle in this step can arrange arbitrarily, for example 500 milliseconds.
Periodicity by detection module 403 detects, and has both guaranteed the real-time that hover button shows, can, when occurring suspension, repeat logon or being kicked out of the situations such as channel, make in time response accurately; Also avoided in addition hover button to affect the normal use of other application.
When the embodiment of the present invention switches to the page outside the broadcasting channel page by the page showing in multimedia application from the broadcasting channel page, the page output hover button after switching; Operational order according to user to hover button, controls the displaying of the broadcasting channel page or closing of broadcasting channel; Make user both can show the broadcasting channel page by hover button, also can close broadcasting channel by hover button, hover button is in the page after switching in addition, and do not limit it in homepage, can facilitate user to hover button executable operations, simple to operate, be user-friendly to.
It should be noted that: the control device of the channel that above-described embodiment provides is when getting back to fast or exiting channel, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the inner structure of the equipment of being about to is divided into different functional modules, to complete all or part of function described above.In addition, the control device of the channel that above-described embodiment provides and the control method embodiment of channel belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.