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 clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the flow chart of a kind of channel processing method of providing of the embodiment of the present invention.The executive agent of this inventive embodiments is server, and referring to Fig. 1, described method comprises:
101,, when receiving the interim channel foundation request of first user transmission, set up interim channel and identify to the second user's broadcasting channel being invited to.
102, by this first user and second user add of accepting the invitation to this interim channel, this interim channel carries out information interaction for this first user with the second user who accepts the invitation.
103, monitor user's mobility status of this interim channel, when the user in monitoring this interim channel is less than setting threshold, delete this interim channel.
The method that the embodiment of the present invention provides, by receiving when server when the interim channel of first user transmission is set up request, set up interim channel and identify to the second user's broadcasting channel being invited to, by this first user and second user add of accepting the invitation to this interim channel, the second user who makes first user and accept the invitation can directly enter this interim channel and wait operation without carrying out inputting channel number, convenient and swift, and this interim channel can be used in the information interaction of small-sized group, and flexibility is strong.Further, when this server is less than setting threshold by the user in monitoring this interim channel, delete this interim channel, can reclaim the resource that this interim channel takies, avoided the wasting of resources.
Alternatively, the method also comprises:
Receive the channel authority condition that this first user sends;
When receiving the operation requests of arbitrary second user's transmission, whether the second user that judgement sends this operation requests meets this channel authority condition, when the second user of this operation requests of transmission meets this channel authority condition, respond this operation requests, when the second user of this operation requests of transmission does not meet this channel authority condition, ignore this operation requests; Or,
When receiving the operation requests of arbitrary second user's transmission, judge that whether this operation requests meets this channel authority condition, when this operation requests meets this channel authority condition, responds this operation requests, when this operation requests does not meet this channel authority condition, ignore this operation requests.
Alternatively, the method also comprises:
What the arbitrary user in receiving this interim channel sent exits while asking, and by sending this user who exits request, from this interim channel, deletes.
Alternatively, when receiving the interim channel foundation request of first user transmission, after setting up interim channel, the method also comprises:
For this interim channel allocation channel identication and channel resource, make this first user and the second user who is invited to carry out information interaction based on this channel resource, this channel identication is for unique definite this interim channel.
Alternatively, for this interim channel allocation channel identication and channel resource comprise:
From a plurality of channel identications that retain in advance, choose a channel identication and distribute to this interim channel;
Channel resource corresponding to channel identication that this is chosen distributed to this interim channel.
Above-mentioned all optional technical schemes, can adopt any combination to form optional embodiment of the present invention, and this is no longer going to repeat them.
Fig. 2 is the flow chart of a kind of channel processing method of providing of the embodiment of the present invention.The executive agent of this inventive embodiments is server, and referring to Fig. 2, described method comprises:
201, when this server receives the interim channel foundation request of first user transmission, set up interim channel.
The embodiment of the present invention is applied to multiple public platform, as net cast platform, immediate communication platform, music sharing platform etc., this server can be the server cluster of this public platform, or the arbitrary server in the server cluster of this public platform, or the functional module in arbitrary server, the embodiment of the present invention does not limit this.Further, on this public platform, can set up channel, user can carry out information interaction in channel, as on net cast platform, this server is set up a plurality of channels, each channel can live different video, and user can carry out net cast, watch video or issue comment etc. in each channel.
In embodiments of the present invention, this server provides the service of setting up interim channel for user, and this first user can invite user to add this channel to carry out information interaction.Wherein, this server can be set up interim channel option for user provides, and the request of setting up of this interim channel can activate this by this first user and set up interim channel option and trigger, and the triggering mode that the embodiment of the present invention is set up request to this interim channel does not limit.
Further, this server can also provide for this first user each user's invitation option, when this first user wishes to invite a certain the second user to carry out of short duration, independent information interaction, can activate the second user's who is invited to invitation option, this first user sends interim channel to this server and sets up request, the second user who is invited to is carried in this interim channel request of setting up, and when this server is set up request at the interim channel that receives this first user transmission, sets up interim channel.
In embodiments of the present invention, this first user, when triggering this interim channel foundation request, can also generate request mark, so that this server area divides a plurality of interim channel receiving to set up request.
202, this server is this interim channel allocation channel identication and channel resource, makes the second user of this first user and invitation to carry out information interaction based on this channel resource, and this channel identication is for unique definite this interim channel.
Wherein, this channel identication can be channel ID(Identity, sequence number), the room number on this public platform etc. can unique sign of determining this interim channel, the embodiment of the present invention does not limit this.
Alternatively, this step 202 can comprise: this server is chosen a channel identication and distributed to this interim channel from a plurality of channel identications that retain in advance, and channel resource corresponding to channel identication that this is chosen distributed to this interim channel.
To describe respectively for this interim channel allocation channel identication and channel resource this server below.
(1) these a plurality of channel identications that retain in advance refer to the channel identication that this server retains for setting up interim channel.This server can be when setting up this interim channel, a channel identication of interim generation is distributed to this interim channel, but, in order further to reduce to distribute the time of temporary mark, simplify the flow process of setting up interim channel, this server can generate and retain a plurality of channel identications in advance, to distribute to the interim channel of follow-up foundation.
This server is when channel distribution identifies, can there is following any mode: (1-1) this server, when setting up interim channel, is chosen at random a current channel identication in idle condition and distributed to this interim channel from a plurality of channel identications that retain in advance; (1-2) this server is when setting up interim channel, chooses currently in idle condition and the channel identication corresponding with the geographical position of this first user from a plurality of channel identications that retain in advance, and the embodiment of the present invention does not limit this.After channel identication being distributed to this interim channel, this server can also be adjusted into busy condition by the state of this channel identication, to show that this channel identication is assigned with, avoids the same channel identication of duplicate allocation.
In actual applications, this server can be set up fixed channel and interim channel, and in order to distinguish the channel identication of fixed channel and the channel identication of interim channel, this server can generate in advance a plurality of channel identications and classify, a plurality of channel identications that generate are divided into fixed channel sign and interim channel identication, and be kept at respectively in corresponding database, so that when setting up fixed channel, this server can be for this fixed channel be chosen a fixed channel sign in the database of fixed channel sign, when setting up interim channel, can in the database of interim channel identication, for this interim channel, choose an interim channel identication.
Because user need to be known the channel identication of fixed channel, could identify and enter this fixed channel by inputting channel, but do not need the channel identication of knowing interim channel just can enter interim channel, and shorter channel identication is easily remembered, and longer channel identication is not easy memory, alternatively, this channel identication is the integer of 32, this server is defined as fixed channel sign by the channel identication that belongs to fractional value scope, and the channel identication that belongs to large number range is defined as to interim channel identication.As the channel identication in " 1-1 10,000,000 " scope being defined as to fixed channel sign, the channel identication in " 2,000 ten thousand-3,000 ten thousand " scope is defined as to interim channel identication.
(2) interim channel carries out information interaction for this first user with the second user who is invited to, and in carrying out the process of information interaction, this interim channel need to be broadcasted the information such as video, word, and this interim channel need to take certain resource.In order to reduce the time of Resources allocation, simplify the flow process of information interaction, this server can be this interim channel allocation resource in advance, makes this first user and the second user who is invited to carry out information interaction based on this channel resource.
In embodiments of the present invention, this server can distribute corresponding resource for the channel identication retaining in advance, when arbitrary channel identication is distributed to this interim channel, resource corresponding to the channel identication of this distribution also distributed to this interim channel, make the user in this interim channel the resource based on this distribution to carry out information interaction.
Certainly, this server can also be when setting up this interim channel, according to information such as the second user's who is invited to number, type of interaction, determine the number of resources that this interim channel needs, according to this definite number of resources, for this interim channel allocation resource, the embodiment of the present invention does not limit the concrete mode of Resources allocation.
203, this server is broadcasted this channel identication to the second user who is invited to.
In embodiments of the present invention, this server is broadcasted this channel identication to all the second users that are invited to, and when arbitrary the second user receives this broadcast, can accept, refuses or ignore this invitation.
204, this server is by this first user and second user add of accepting the invitation to this interim channel, and this interim channel carries out information interaction for this first user with the second user who accepts the invitation.
In embodiments of the present invention, this server responds the interim channel foundation request that this first user sends, set up interim channel, and to the second user's broadcasting channel sign being invited to, when this server is determined the second user accept the invitation, can be directly by this first user with second user add of accepting the invitation to this interim channel.This first user, without various rules and the authority of understanding interim channel, only needs to trigger this interim channel and sets up request, can set up and add interim channel, and without information such as inputting channel sign, identifying codes, simple and quick.
It should be noted that, the embodiment of the present invention with this server when definite arbitrary the second user accepts the invitation, the second user add that this is accepted the invitation to this interim channel is that example describes, in practical application, this server can also be given tacit consent to all second user adds of this first user invitation to this interim channel, and carry out acceptance operation without the second user, the embodiment of the present invention does not limit this.
Based on above-mentioned steps, this server has been set up interim channel, and by this first user and this second user add of accepting the invitation to this interim channel, now, this first user and this second user who accepts the invitation can carry out information interaction in this interim channel.
Particularly, this information interactive process can be: when this server receives the first message of this first user transmission, this first message is sent to each second user, or, when this server receives the second message of arbitrary second user's transmission, this second message is sent to this first user and the second user except the second user of this second message of transmission.
205, this server receives the channel authority condition that this first user sends.
Wherein, this channel authority condition can be for inviting user's authority, user to carry out live level-right etc., if this channel authority condition can be these open other users' of invitation of the second user that accept the invitation authority, and prescribed level is that pre-set level or the second user on this pre-set level can carry out net cast or watch live in this interim channel, and that second user of rank under this pre-set level can watch in this interim channel is live etc., the embodiment of the present invention does not limit this channel authority condition.
It should be noted that, the embodiment of the present invention is implemented as example and describes after this step 204 with this step 205, in fact, this interim channel request of setting up can also be carried this channel authority condition, this step 205 can be carried out with this step 201 simultaneously, or this step 205 can be carried out in this first user and this at least one user carry out the process of information interaction, the embodiment of the present invention does not limit this.
206, when this server receives the operation requests of arbitrary second user's transmission, whether the second user that judgement sends this operation requests meets this channel authority condition, and if so, execution step 207, if not, finishes.
In embodiments of the present invention, this first user is setting contents of channel authority condition, and this server, when receiving the operation requests of arbitrary second user's transmission, is processed this operation requests according to this channel authority condition.
207, this server responds this operation requests.
Particularly, when this server, determine the second user who sends this operation requests and meet this channel authority condition, carry out the indicated operation of this operation requests or return to the indicated information of this operation requests, to respond this operation requests.
The embodiment of the present invention is no longer carried out any example that is operating as with this server when sending the second user of this operation requests and do not meet this channel authority condition and is described, in another embodiment providing in the embodiment of the present invention, this server is ignored this operation requests, or send message to the second user who sends this operation requests, point out this second user lack of competence to carry out the operation of asking.
As, this server is divided into user the ranks such as A, B, C, D, and according to the order of A, B, C, D, rank reduces successively.The second user that this channel authority condition prescribed level is A or B can carry out net cast in this interim channel, and second user of rank below B cannot carry out net cast at this interim channel, when this server receive that the second user a sends carry out the request of net cast time, whether the rank that judges the second user a is B or A, when determining that the rank of the second user a is B or A, this server responds the request of the second user a, make the second user a carry out net cast in this interim channel, when the rank of determining the second user a is when B is following, this server is ignored this request of carrying out net cast.
In another embodiment providing in the embodiment of the present invention, this step 206 and step 207 can be replaced by following steps: when receiving the operation requests of arbitrary second user's transmission, judge whether this operation requests meets this channel authority condition, when this operation requests meets this channel authority condition, respond this operation requests, when this operation requests does not meet this channel authority condition, ignore this operation requests.
As, this channel authority condition stipulates that the second all use cannot invite other users to enter this interim channel per family, when this server receives the invitation to user c of the second user b transmission, determine that this does not meet this channel authority condition to the invitation of user c, ignores this invitation to user c.
208, when this server receive that arbitrary user in this interim channel sends exit request time, by sending this user who exits request, from this interim channel, delete.
Wherein, this exits, and request can be logged off state by this user, the operation such as room window of closing this interim channel triggers, and the triggering mode that the embodiment of the present invention exits request to this does not limit.In addition, this first user and this second use of accepting the invitation can trigger per family this and exit request, and the embodiment of the present invention does not limit sending this user who exits request yet.
209, user's mobility status of this this interim channel of monitoring server, when this monitoring server is when the user in interim channel is less than setting threshold to this, deletes this interim channel.
In embodiments of the present invention, this first user and this second user who accepts the invitation carry out in the process of information interaction in this interim channel, arbitrary use can trigger the request exited per family to exit this interim channel, also can meet under the prerequisite of channel authority condition, invite other users to enter this interim channel, in this interim channel, exist flowing of user.
When in this interim channel, user is very few, cause the wasting of resources, this server can setting threshold, and monitors user's mobility status of this interim channel, when the user in monitoring this interim channel is less than setting threshold, deletes this interim channel.
Alternatively, when this server detects user in this interim channel and is less than setting threshold, start timing, when determining that the duration of statistics arrives default duration, the user of this interim channel is still less than setting threshold, deletes this interim channel.This default duration can be preset by this server, or is determined according to current interim number of channels and occupation condition by this server, and the embodiment of the present invention does not limit this.
Wherein, this server, when deleting this interim channel, can also be adjusted into idle condition by the state of this channel identication, the resource internal memory that this interim channel is shared empties, to reclaim this channel identication and this channel resource, be convenient to reuse channel identication, saved channel identication resource.
It should be noted that, the embodiment of the present invention is implemented as example and describes after step 208 with this step 209, in fact, this step 209 can be carried out in real time or periodically, at this first user and this second user who accepts the invitation, carry out in the process of information interaction, this server is monitored user's mobility status of this interim channel in real time or periodically, once the user who monitors in this interim channel, be less than setting threshold, delete this interim channel, or be less than setting threshold once the user who monitors in this interim channel, after waiting for this default duration, delete this interim channel.
Further it should be noted that, the embodiment of the present invention be take executive agent and is described as server as example, in fact, the related step of the embodiment of the present invention can be carried out by a plurality of servers that are mutually related, as process from user to this interim channel that set up interim channel in this step 201-204 and add can be carried out by channel server, in step 205-207, controlling the process of this interim channel authority can be carried out by permission server, in this step 208-209, the process of monitor user ' mobility status can be carried out by this channel server, and in this process, between user, carrying out the process of information interaction can be carried out by interactive server, the embodiment of the present invention does not limit this executive agent yet.
The method that the embodiment of the present invention provides, by receiving when server when the interim channel of first user transmission is set up request, set up interim channel and identify to the second user's broadcasting channel being invited to, by this first user and second user add of accepting the invitation to this interim channel, the second user who makes first user and accept the invitation can directly enter this interim channel and wait operation without carrying out inputting channel number, convenient and swift, and this interim channel can be used in the information interaction of small-sized group, and flexibility is strong.Further, when this server is less than setting threshold by the user in monitoring this interim channel, delete this interim channel, can reclaim the resource that this interim channel takies, avoided the wasting of resources.
Fig. 3 is a kind of frequency channel processor structural representation that the embodiment of the present invention provides, and referring to Fig. 3, this device comprises: interim channel is set up module 301, adds line module 302, deleted channel module 303,
Wherein, interim channel is set up module 301 for when receiving the interim channel foundation request of first user transmission, sets up interim channel and identifies to the second user's broadcasting channel being invited to; Add line module 302 and set up module 301 with interim channel and is connected, for by this first user and second user add of accepting the invitation to this interim channel, this interim channel is used for this first user and the second user of accepting the invitation carries out information interaction; Delete channel module 303 and be connected with interpolation line module 302, for monitoring user's mobility status of this interim channel, when the user in monitoring this interim channel is less than setting threshold, delete this interim channel.
Alternatively, this device also comprises:
Authority Conditional Access Module, the channel authority condition sending for receiving this first user;
The first control of authority module, for when receiving the operation requests of arbitrary second user's transmission, whether the second user that judgement sends this operation requests meets this channel authority condition, when the second user of this operation requests of transmission meets this channel authority condition, respond this operation requests, when the second user of this operation requests of transmission does not meet this channel authority condition, ignore this operation requests; Or,
The second control of authority module, for when receiving the operation requests of arbitrary second user's transmission, judge whether this operation requests meets this channel authority condition, when this operation requests meets this channel authority condition, respond this operation requests, when this operation requests does not meet this channel authority condition, ignore this operation requests.
Alternatively, this device also comprises:
Exit module, for when receive that the arbitrary user of this interim channel sends exit request time, by sending this user who exits request, from this interim channel, delete.
Alternatively, this device also comprises:
Distribution module, is used to this interim channel allocation channel identication and channel resource, makes this first user and the second user who is invited to carry out information interaction based on this channel resource, and this channel identication is for unique definite this interim channel.
Alternatively, this distribution module comprises:
Sign is chosen unit, for choosing a channel identication from a plurality of channel identications that retain in advance, distributes to this interim channel;
Allocation units, distribute to this interim channel for channel resource corresponding to channel identication that this is chosen.
The device that the embodiment of the present invention provides, by receiving when server when the interim channel of first user transmission is set up request, set up interim channel and identify to the second user's broadcasting channel being invited to, by this first user and second user add of accepting the invitation to this interim channel, the second user who makes first user and accept the invitation can directly enter this interim channel and wait operation without carrying out inputting channel number, convenient and swift, and this interim channel can be used in the information interaction of small-sized group, and flexibility is strong.Further, when this server is less than setting threshold by the user in monitoring this interim channel, delete this interim channel, can reclaim the resource that this interim channel takies, avoided the wasting of resources.
It should be noted that: the frequency channel processor that above-described embodiment provides is when processing 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 internal structure that is about to server is divided into different functional modules, to complete all or part of function described above.In addition, the frequency channel processor that above-described embodiment provides and channel processing method embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Fig. 4 is a kind of server architecture schematic diagram that the embodiment of the present invention provides, this server 400 can because of configuration or performance is different produces larger difference, can comprise one or more central processing units (central processing units, CPU) 422(for example, one or more processors) and memory 432, the storage medium 430(of one or more storage application programs 442 or data 444 one or more mass memory units for example).Wherein, memory 432 and storage medium 430 can be of short duration storage or storage lastingly.The program that is stored in storage medium 430 can comprise one or more modules (diagram does not mark), and each module can comprise a series of command operatings in server.Further, central processing unit 422 can be set to communicate by letter with storage medium 430, carries out a series of command operatings in storage medium 430 on server 400.
Server 400 can also comprise one or more power supplys 426, one or more wired or wireless network interfaces 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 shown in this Fig. 4 by the performed step of server server architecture.
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 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.