Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
Fig. 1 is a kind of flow chart of channel processing method provided in an embodiment of the present invention.The execution master of the inventive embodiments
Body is server, and referring to Fig. 1, methods described includes:
101st, when the temporary channel for receiving first user transmission sets up request, temporary channel is set up and to being invited to
Second user broadcasting channel is identified.
102nd, first user and the second user accepted the invitation are added to the temporary channel, the temporary channel is used for should
First user and the second user accepted the invitation carry out information exchange.
103rd, user's mobility status of the temporary channel is monitored, threshold is set when monitoring that the user in the temporary channel is less than
During value, the temporary channel is deleted.
Method provided in an embodiment of the present invention, please by the temporary channel foundation that the first user transmission is received when server
Temporary channel is set up when asking and is identified to the second user broadcasting channel being invited to, by first user and second accepted the invitation
User is added to the temporary channel so that the first user and the second user accepted the invitation can be directly entered the temporary channel and
Inputting channel number need not be performed and wait operation, it is convenient and swift, and the temporary channel can be used in the information exchange of small-sized group, flexibly
Property is strong.Further, the server is interim by deleting this when the user in monitoring the temporary channel is less than given threshold
Channel, can reclaim the resource of temporary channel occupancy, it is to avoid the wasting of resources.
Alternatively, this method also includes:
Receive the channel prescribed profile of first user transmission;
When receiving the operation requests that any second user is sent, judge the transmission operation requests second user whether
The channel prescribed profile is met, when the second user for sending the operation requests meets the channel prescribed profile, the operation is responded
Request, when the second user for sending the operation requests is unsatisfactory for the channel prescribed profile, ignores the operation requests;Or,
When receiving the operation requests that any second user is sent, judge whether the operation requests meet the channel authority
Condition, when the operation requests meet the channel prescribed profile, responds the operation requests, when the operation requests are unsatisfactory for the channel
During prescribed profile, ignore the operation requests.
Alternatively, this method also includes:
When receiving when exiting request of the transmission of any user in the temporary channel, the user for exiting request will be sent
Deleted from the temporary channel.
Alternatively, when the temporary channel for receiving the first user transmission sets up request, set up after temporary channel, the party
Method also includes:
For temporary channel channel distribution mark and channel resource so that first user and the second user energy being invited to
Information exchange is enough carried out based on the channel resource, the channel identication is used to uniquely determine the temporary channel.
Alternatively, it is that temporary channel channel distribution mark and channel resource include:
A channel identication is chosen from the multiple channel identications advanced for and distributes to the temporary channel;
The corresponding channel resource of the channel identication of the selection is distributed into the temporary channel.
Above-mentioned all optional technical schemes, can form the alternative embodiment of the present invention, herein no longer using any combination
Repeat one by one.
Fig. 2 is a kind of flow chart of channel processing method provided in an embodiment of the present invention.The execution master of the inventive embodiments
Body is server, and referring to Fig. 2, methods described includes:
201st, when the temporary channel that the server receives the first user transmission sets up request, temporary channel is set up.
The embodiment of the present invention is applied to a variety of public platforms, and such as net cast platform, immediate communication platform, music sharing are put down
Platform etc., the server can be the server cluster of the public platform, or any in the server cluster of the public platform
Functional module in server, or any server, the embodiment of the present invention is not limited this.Further, in the public
Channel can be set up on platform, user can carry out information exchange in channel, such as on net cast platform, and the server is built
Multiple channels are found, each channel can be with live different video, and user can carry out net cast, viewing in each channel and regard
Frequency or issue comment etc..
In embodiments of the present invention, the server has provided the user the service for setting up temporary channel, and first user can
Information exchange is carried out to invite user to add the channel.Wherein, the server, which can be provided the user, sets up temporary channel option,
The temporary channel set up request can be activated by first user this set up temporary channel option triggering, the embodiment of the present invention is to this
The triggering mode that temporary channel sets up request is not limited.
Further, the server can also provide the invitation option of each user for first user, when first use
When family wishes to invite a certain second user carry out of short duration, single information exchange, the second user that is invited to can be activated
Option is invited, first user sends temporary channel to the server and sets up request, and temporary channel foundation request, which is carried, is invited
Second user please, the server sets up temporary channel when the temporary channel for receiving first user transmission sets up request.
In embodiments of the present invention, first user can also generate request when triggering temporary channel foundation request
Mark, request is set up so that the server area taps the multiple temporary channels received.
202nd, the server is that the temporary channel channel distribution is identified and channel resource so that first user and invitation
Second user can carry out information exchange based on the channel resource, and the channel identication is used to uniquely determine the temporary channel.
Wherein, the channel identication can be channel ID(Identity, sequence number), room number on the public platform etc.
The mark of the temporary channel can be uniquely determined, the embodiment of the present invention is not limited this.
Alternatively, the step 202 can include:The server chooses a frequency from the multiple channel identications advanced for
Road mark distributes to the temporary channel, and the corresponding channel resource of the channel identication of the selection is distributed into the temporary channel.
To be below that the temporary channel channel distribution is identified and channel resource is illustrated respectively to the server.
(1)The multiple channel identications advanced for refer to the server to set up the channel mark that temporary channel retains
Know.The server can be when setting up the temporary channel, and one channel identication of generation distributes to the temporary channel temporarily, still,
In order to further reduce the time of distribution temporary mark, simplify the flow for setting up temporary channel, the server can be previously generated
And retain multiple channel identications, to distribute to the temporary channel subsequently set up.
The server can have following any mode when channel distribution is identified:(1-1)The server is setting up interim
During channel, a channel identication for being currently at idle condition is randomly selected from the multiple channel identications advanced for and is distributed to
The temporary channel;(1-2)The server is chosen from current when setting up temporary channel from the multiple channel identications advanced for
In idle condition and channel identication corresponding with the geographical position of first user, the embodiment of the present invention is not limited this.
Channel identication is distributed to after the temporary channel, the state of the channel identication can also be adjusted to busy condition by the server,
To show that the channel identication has been allocated, it is to avoid the same channel identication of duplicate allocation.
In actual applications, the server can set up fixed channel and temporary channel, and in order to distinguish fixed channel
The channel identication of channel identication and temporary channel, the server can previously generate multiple channel identications and be classified, by life
Into multiple channel identications be divided into fixed channel mark and temporary channel mark, and be stored in respectively in corresponding database, with
Just when setting up fixed channel, the server can be solid for fixed channel selection one in the database that fixed channel is identified
Determine channel identication, can be temporary channel selection one in the database that temporary channel is identified when setting up temporary channel
Temporary channel is identified.
Because user needs to know the channel identication of fixed channel, fixation frequency could be entered by inputting channel mark
Road, but need not know that the channel identication of temporary channel can just enter temporary channel, and shorter channel identication is easily remembered, and
Longer channel identication is not easy memory, then alternatively, and the channel identication is the integer of 32, and the server will belong to fractional value
The channel identication of scope is defined as fixed channel mark, and the channel identication for belonging to big number range is defined as into temporary channel mark
Know.As the channel identication in the range of " 1-1 10,000,000 " is defined as into frequency in the range of fixed channel mark, general " 2,000 ten thousand -3 thousand ten thousand "
Road mark is defined as temporary channel mark.
(2)Temporary channel is used for first user and the second user being invited to carries out information exchange, and is entering row information
In interactive process, the temporary channel needs the information such as INVENTIONBroadcast video, word, the i.e. temporary channel to need to take certain money
Source.In order to reduce the time of distribution resource, simplify the flow of information exchange, the server can distribute for the temporary channel in advance
Resource so that first user and the second user being invited to are based on the channel resource and carry out information exchange.
In embodiments of the present invention, the server can be that the channel identication advanced for distributes corresponding resource, as general
When any channel identication distributes to the temporary channel, the corresponding resource of the channel identication of the distribution is also allocated to the interim frequency
Road so that the resource progress information exchange that the user in the temporary channel can be based on the distribution.
Certainly, the server can also be when setting up the temporary channel, according to the number for the second user being invited to, interaction
The information such as type, determine the number of resources that the temporary channel needs, and according to the number of resources of the determination, distribute and provide for the temporary channel
Source, the embodiment of the present invention is not limited the concrete mode for distributing resource.
203rd, the server broadcasts the channel identication to the second user being invited to.
In embodiments of the present invention, the server broadcasts the channel identication to all second users being invited to, when any
When second user receives the broadcast, it can receive, refuse or ignore the invitation.
204th, first user and the second user accepted the invitation are added to the temporary channel, the interim frequency by the server
Road is used for first user and the second user accepted the invitation carries out information exchange.
In embodiments of the present invention, the server responds the temporary channel foundation request of first user transmission, and foundation is faced
When channel, and identified to the second user broadcasting channel that is invited to, can when the server determines the second user accepted the invitation
So that first user and the second user accepted the invitation directly are added into the temporary channel.First user is interim without understanding
The various rules and authority of channel, need to only trigger the temporary channel and set up request, you can set up and add temporary channel, Er Qiewu
The information such as inputting channel mark, identifying code are needed, it is simple and quick.
It should be noted that the embodiment of the present invention with the server when it is determined that any second user is accepted the invitation, by this
The second user accepted the invitation is illustrated exemplified by being added to the temporary channel, and in practical application, the server can also be given tacit consent to
All second users that first user is invited are added to the temporary channel, are performed without second user and receive operation, this
Inventive embodiments are not limited this.
Based on above-mentioned steps, the server establishes temporary channel, and second that first user is accepted the invitation with this
User is added to the temporary channel, now, and first user and the second user accepted the invitation can be in the temporary channels
Carry out information exchange.
Specifically, the information interactive process can be:When the server receives the first message of first user transmission
When, the first message is sent to each second user, or, disappear when the server receives the second of any second user transmission
During breath, second message is sent to first user and the second user in addition to the second user for sending second message.
205th, the server receives the channel prescribed profile of first user transmission.
Wherein, the channel prescribed profile can such as should to invite the authority of user, user to carry out live level-right etc.
The second user that channel prescribed profile can accept the invitation for this opens the authority for inviting other users, and prescribed level is default
Rank or the second user on the pre-set level can carry out net cast in the temporary channel or watch live, and
Second user of the rank under the pre-set level can watch live etc. in the temporary channel, and the embodiment of the present invention is to the frequency
Road prescribed profile is not limited.
It should be noted that the embodiment of the present invention is illustrated so that the step 205 is performed after the step 204 as an example,
In fact, the temporary channel set up request can also carry channel prescribed profile, the i.e. step 205 and the step 201 can be with
Perform simultaneously, or, the step 205 can be held during first user and this at least one user progress information exchange
OK, the embodiment of the present invention is not limited this.
206th, when the server receives the operation requests that any second user is sent, judge to send the operation requests
Whether second user meets the channel prescribed profile, if it is, step 207 is performed, if not, terminating.
In embodiments of the present invention, first user setting contents of channel prescribed profile, then the server receive it is any
During the operation requests that second user is sent, the operation requests are handled according to the channel prescribed profile.
207th, the server responds the operation requests.
Specifically, when the server determines that the second user for sending the operation requests meets the channel prescribed profile, perform
Operation indicated by the operation requests returns to information indicated by the operation requests, to respond the operation requests.
The embodiment of the present invention is with the service when the second user for sending the operation requests is unsatisfactory for the channel prescribed profile
Device is illustrated exemplified by no longer performing any operation, and in another embodiment provided in an embodiment of the present invention, the server is ignored
The operation requests, or message is sent to the second user for sending the operation requests, point out the second user lack of competence to perform and ask
The operation asked.
Such as, user is divided into the ranks such as A, B, C, D by the server, and according to A, B, C, D order, rank drops successively
It is low.The channel prescribed profile prescribed level can carry out net cast for A or B second user in the temporary channel, and level
Net cast cannot not be carried out in the temporary channel in below B second user, then when the server receives second user a
During the request of the progress net cast of transmission, whether the rank for judging second user a is B or A, when it is determined that second user a level
Not Wei B or A when, server response second user a request so that it is straight that second user a carries out video in the temporary channel
Broadcast, when it is determined that second user a rank is in below B, the server ignores the request of the carry out net cast.
In another embodiment provided in an embodiment of the present invention, the step 206 and step 207 can be by following steps generations
Replace:When receiving the operation requests that any second user is sent, judge whether the operation requests meet the channel prescribed profile,
When the operation requests meet the channel prescribed profile, the operation requests are responded, when the operation requests are unsatisfactory for the channel authority
During condition, ignore the operation requests.
Such as, the channel prescribed profile provides that all second users cannot invite other users to enter the interim frequency
Road, then when the server receive second user b transmissions to user c invitation when, determine that this couple of user c invitation is unsatisfactory for
The channel prescribed profile, then ignore this couple of user c invitation.
208th, when the exiting request of any user transmission in the temporary channel is received when the server, this will be sent and moved back
The user for going out request deletes from the temporary channel.
Wherein, this exits request and can logged off by the user state, the behaviour such as room window that closes the temporary channel
Trigger, the embodiment of the present invention is not limited the triggering mode for exiting request.In addition, first user accepts the invitation with this
Second user can trigger this and exit request, the embodiment of the present invention is not also limited sending the user that this exits request.
209th, user's mobility status of the monitoring server temporary channel, when the monitoring server is into the temporary channel
User be less than given threshold when, delete the temporary channel.
In embodiments of the present invention, first user and the second user accepted the invitation are believed in the temporary channel
During breath interaction, any user, which can be triggered, exits request to exit the temporary channel, can also meet channel power
On the premise of limit condition, other users are invited to enter the flowing that there is user in the temporary channel, the i.e. temporary channel.
In order to avoid when user is very few in the temporary channel, causing the wasting of resources, the server can with given threshold, and
User's mobility status of the temporary channel is monitored, when monitoring that the user in the temporary channel is less than given threshold, deleting should
Temporary channel.
Alternatively, when the user that the server is detected in the temporary channel is less than given threshold, timing is started, when true
Surely when the duration counted reaches preset duration, the user of the temporary channel is still less than given threshold, then deletes the temporary channel.Should
Preset duration can be preset by the server, or by the server according to current temporary channel number and resource occupation
Situation determines that the embodiment of the present invention is not limited this.
Wherein, the state of the channel identication can also be adjusted to idle shape by the server when deleting the temporary channel
State, the resource internal memory shared by the temporary channel is emptied, to reclaim the channel identication and the channel resource, is easy to recycling frequency
Road is identified, and saves channel identication resource.
It should be noted that the embodiment of the present invention is illustrated so that the step 209 is performed after step 208 as an example, it is real
On border, the step 209 in real time or can be carried out periodically, i.e., the second user accepted the invitation in first user with this is entered
During row information is interacted, the server monitors user's mobility status of the temporary channel in real time or periodically, once
When monitoring that the user in the temporary channel is less than given threshold, the temporary channel is deleted, or once monitor the temporary channel
In user be less than given threshold when, wait and the temporary channel deleted after the preset duration.
Explanation is needed further exist for, the embodiment of the present invention is illustrated so that executive agent is server as an example, in fact,
Step involved by the embodiment of the present invention can be performed by multiple servers that are mutually related, and be set up in such as step 201-204
Temporary channel and the process for adding user to the temporary channel can be performed by channel server, be controlled in step 205-207
The process of the temporary channel authority can be performed by permission server, and the mistake of user's mobility status is monitored in step 208-209
Journey can be performed by the channel server, and in the process, the process that information exchange is carried out between user can be by interaction clothes
Business device is performed, and the embodiment of the present invention is not also limited the executive agent.
Method provided in an embodiment of the present invention, please by the temporary channel foundation that the first user transmission is received when server
Temporary channel is set up when asking and is identified to the second user broadcasting channel being invited to, by first user and second accepted the invitation
User is added to the temporary channel so that the first user and the second user accepted the invitation can be directly entered the temporary channel and
Inputting channel number need not be performed and wait operation, it is convenient and swift, and the temporary channel can be used in the information exchange of small-sized group, flexibly
Property is strong.Further, the server is interim by deleting this when the user in monitoring the temporary channel is less than given threshold
Channel, can reclaim the resource of temporary channel occupancy, it is to avoid the wasting of resources.
Fig. 3 is a kind of frequency channel processor structural representation provided in an embodiment of the present invention, and referring to Fig. 3, the device includes:
Temporary channel sets up module 301, addition line module 302, deletes channel module 303,
Wherein, temporary channel is set up module 301 and is used for when the temporary channel for receiving the first user transmission sets up request,
Set up temporary channel and identified to the second user broadcasting channel being invited to;Addition line module 302 sets up mould with temporary channel
Block 301 is connected, and for first user and the second user accepted the invitation to be added into the temporary channel, the temporary channel is used for
First user and the second user accepted the invitation carry out information exchange;Channel module 303 is deleted with addition line module 302 to connect
Connect, user's mobility status for monitoring the temporary channel, when monitoring that the user in the temporary channel is less than given threshold,
Delete the temporary channel.
Alternatively, the device also includes:
Prescribed profile receiving module, the channel prescribed profile for receiving first user transmission;
First control of authority module, is somebody's turn to do for when receiving the operation requests that any second user is sent, judging to send
Whether the second user of operation requests meets the channel prescribed profile, when the second user for sending the operation requests meets the channel
During prescribed profile, the operation requests are responded, when the second user for sending the operation requests is unsatisfactory for the channel prescribed profile, are neglected
The slightly operation requests;Or,
Second control of authority module, for when receiving the operation requests that any second user is sent, judging the operation
Whether request meets the channel prescribed profile, when the operation requests meet the channel prescribed profile, responds the operation requests, when
When the operation requests are unsatisfactory for the channel prescribed profile, ignore the operation requests.
Alternatively, the device also includes:
Module is exited, for when receiving when exiting request of the transmission of any user in the temporary channel, being somebody's turn to do sending
The user for exiting request deletes from the temporary channel.
Alternatively, the device also includes:
Distribute module, for being identified and channel resource for the temporary channel channel distribution so that first user is with being invited
Second user please can carry out information exchange based on the channel resource, and the channel identication is used to uniquely determine the temporary channel.
Alternatively, the distribute module includes:
Mark chooses unit, distributes to this for choosing a channel identication from the multiple channel identications advanced for and faces
When channel;
Allocation unit, for the corresponding channel resource of the channel identication of the selection to be distributed into the temporary channel.
Device provided in an embodiment of the present invention, please by the temporary channel foundation that the first user transmission is received when server
Temporary channel is set up when asking and is identified to the second user broadcasting channel being invited to, by first user and second accepted the invitation
User is added to the temporary channel so that the first user and the second user accepted the invitation can be directly entered the temporary channel and
Inputting channel number need not be performed and wait operation, it is convenient and swift, and the temporary channel can be used in the information exchange of small-sized group, flexibly
Property is strong.Further, the server is interim by deleting this when the user in monitoring the temporary channel is less than given threshold
Channel, can reclaim the resource of temporary channel occupancy, it is to avoid the wasting of resources.
It should be noted that:The frequency channel processor that above-described embodiment is provided is when handling channel, only with above-mentioned each function
The division progress of module is for example, in practical application, as needed can distribute above-mentioned functions by different function moulds
Block is completed, i.e., the internal structure of server is divided into different functional modules, described above all or part of to complete
Function.In addition, the frequency channel processor that above-described embodiment is provided belongs to same design with channel processing method embodiment, its is specific
Implementation process refers to embodiment of the method, repeats no more here.
Fig. 4 is a kind of server architecture schematic diagram provided in an embodiment of the present invention, and the server 400 can be because of configuration or performance
It is different and produce than larger difference, one or more central processing units can be included(central processing
Units, CPU)422(For example, one or more processors)With memory 432, journey is applied in one or more storages
The storage medium 430 of sequence 442 or data 444(Such as one or more mass memory units).Wherein, the He of memory 432
Storage medium 430 can be of short duration storage or persistently storage.Can be included by being stored in the program of storage medium 430 by one or one
With upper module(Diagram is not marked), each module can be including operating to the series of instructions in server.Further, in
Central processor 422 could be arranged to communicate with storage medium 430, be performed on server 400 a series of in storage medium 430
Command operating.
Server 400 can also include one or more power supplys 426, one or more wired or wireless networks
Interface 450, one or more input/output interfaces 458, and/or, one or more operating systems 441, for example
Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Described in above-described embodiment can be based on the server architecture shown in the Fig. 4 as the step performed by server.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware
To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.