Summary of the invention
In view of this, technical problems to be solved in this application there is provided a kind of direct broadcasting room authority acquiring method and system, making user side obtain permissions list when logging in server, to obtain the authority that it has in each direct broadcasting room, avoiding a large number of users end to concentrate and obtaining authority to server.
In order to solve the problems of the technologies described above, the application has following technical scheme:
A kind of direct broadcasting room authority acquiring method, comprising:
User side signs in server;
User side obtains permissions list from server, and is saved to local storage; The Permission Levels of user side in each direct broadcasting room described in described permissions list record; The authority of described user side in direct broadcasting room is for obtain in advance;
User side selectes the direct broadcasting room that has record in described permissions list, and from described this locality stores, transfers and inquire about described permissions list, learns that user side is from the Permission Levels in chosen direct broadcasting room;
User side, according to from the Permission Levels in described chosen direct broadcasting room, obtain corresponding authority, and the authority of carrying acquisition enters chosen direct broadcasting room.
Described permissions list also comprises:
The time limit that the Permission Levels of user side in each direct broadcasting room are corresponding.
Described method also comprises:
User side, when the time limit that the described Permission Levels of arrival are corresponding, extends authority to server application; Or after the arrival time limit, again obtain permissions list to server.
A kind of direct broadcasting room authority processing method, comprising:
Server generates permissions list in advance; The Permission Levels of user side in each direct broadcasting room described in described permissions list record; The authority of described user side in direct broadcasting room is for obtain in advance;
Server, when user side logs in, to the list of user side sending permission, to make user side obtain described permissions list, and being saved to local storage, with when entering the direct broadcasting room having record in described permissions list, obtaining corresponding authority according to described permissions list.
Described permissions list also comprises:
The time limit that the Permission Levels of user side in each direct broadcasting room are corresponding.
Described method also comprises:
Before the time limit that described Permission Levels are corresponding arrives, server sends prompting message to user side.
A kind of direct broadcasting room authority acquiring system, comprising:
Acquisition module, for after signing in server, obtains permissions list from server and is saved to local storage; The Permission Levels of user side in each direct broadcasting room described in described permissions list record; The authority of described user side in direct broadcasting room is for obtain in advance;
Enquiry module, has the direct broadcasting room of record in described permissions list for selected one, and from described this locality stores, transfers and inquire about described permissions list, learns that user side is from the Permission Levels in chosen direct broadcasting room;
Authority module, for according to the Permission Levels of user side certainly in described chosen direct broadcasting room, obtain corresponding authority, and the authority of carrying acquisition enters chosen direct broadcasting room.
Described permissions list also comprises, the time limit that the Permission Levels of user side in each direct broadcasting room are corresponding; Then described system also comprises:
Update module, during for the time limit corresponding in the described Permission Levels of arrival, extends authority to server application; Or after the arrival time limit, again obtain permissions list to server.
A kind of direct broadcasting room authorization process system, comprising:
List block, for generating permissions list in advance; The Permission Levels of user side in each direct broadcasting room described in described permissions list record; The authority of described user side in direct broadcasting room is for obtain in advance;
Sending module, for when user side logs in, to the list of user side sending permission, described permissions list is obtained to make user side, and be saved to local storage, with when entering the direct broadcasting room having record in described permissions list, obtain corresponding authority according to described permissions list.
Described permissions list also comprises, the time limit that the Permission Levels of user side in each direct broadcasting room are corresponding; Then described system also comprises:
Prompting module, before arriving for the time limit corresponding in described Permission Levels, server sends prompting message to user side.
Compared with prior art, the method and system described in the application, reaches following effect:
(1) user side obtains authority corresponding to multiple direct broadcasting room, only needs to carry out with server once alternately, greatly reduces the interaction times of user side and server, alleviates the operating pressure of server.
(2) user side obtains permissions list when logging in server, and user side compares dispersion with the time of server interaction, further alleviates the operating pressure of server, avoids the delay of server response.
Certainly, the arbitrary product implementing the application must not necessarily need to reach above-described all technique effects simultaneously.
Embodiment
As employed some vocabulary to censure specific components in the middle of specification and claim.Those skilled in the art should understand, and hardware manufacturer may call same assembly with different noun.This specification and claims are not used as with the difference of title the mode distinguishing assembly, but are used as the criterion of differentiation with assembly difference functionally." comprising " as mentioned in the middle of specification and claim is in the whole text an open language, therefore should be construed to " comprise but be not limited to "." roughly " refer to that in receivable error range, those skilled in the art can solve the technical problem within the scope of certain error, reach described technique effect substantially.
The live platform of embodiment of the present invention comprises at least one server, and the multiple clients be connected with server.The one or more direct broadcasting room of server admin.Any client can create direct broadcasting room to the server application be connected with this client, server can create application allocation space according to direct broadcasting room and create to complete direct broadcasting room, and can be the distribution of this direct broadcasting room such as: the attribute information of title, ID, access pin etc.At least one client can access in the direct broadcasting room created, therefore, direct broadcasting room can be described as again be made up of at least one client, for providing the group of space resources for the live process of programme televised live.After the client application in certain access channel obtains main broadcaster authority, the client obtaining main broadcaster's authority can be described as this main broadcaster's client, and other access in this channel and the client not obtaining main broadcaster's authority then can be described as this spectator client.Main broadcaster's client possess programme televised live recording, the operating right such as to upload, spectator client possesses the browse right of programme televised live.Main broadcaster's client can be such as PC (PersonalComputer, personal computer), any one client of the band such as notebook computer, mobile phone, PAD (panel computer), intelligent wearable device, car-mounted terminal network function, main broadcaster's client can record the data message of programme televised live, and by the data message of programme televised live according to such as H.264 (a kind of compression of digital video form) or H.265 the stream data form such as (a kind of compression of digital video form) carry out compression process, obtain the source traffic of programme televised live and be pushed to server.
Usually, spectator client, by sending subscribe request to server, is subscribed to its main broadcaster paid close attention to and is carried out live situation about starting broadcasting online.When a certain main broadcaster's client starts broadcasting, server sends notice, so that spectator client logins this direct broadcasting room in time to the spectator client subscribing to this main broadcaster.When after user's Successful login direct broadcasting room, client all to server request privilege list information, so just will causing multi-user to concentrate on this timing node and enters channel, by producing a large amount of request amount, causing the concurrent of information.But the data list of the direct broadcasting room request that user enters in client is nearly all identical at every turn, in fact just please to service end transmission without the need to entering direct broadcasting room at every turn.The present invention will realize, when expiring to the privilege that certain main broadcaster entered in client opens across sky user, service end only need service end clean culture privilege list information again to upgrade privilege list that user opens can solve.Content described here is the whole reciprocal process between client and server.
Shown in Figure 1, be the specific embodiment of direct broadcasting room authority acquiring method described in the application.In the present embodiment, time user side enters direct broadcasting room no longer at every turn, all obtain corresponding authority to server; But allow user side obtain permissions list when logging in server.In the present embodiment, describe the idiographic flow of authority acquiring from user side side.Said method comprising the steps of:
Step 101, user side sign in server.
Step 102, user side obtain permissions list from server, and are saved to local storage.
Step 103, user side select the direct broadcasting room that has record in described permissions list, and from described this locality stores, transfer and inquire about described permissions list, learn that user side is from the Permission Levels in chosen direct broadcasting room.
Step 104, user side, according to from the Permission Levels in described chosen direct broadcasting room, obtain corresponding authority, and the authority of carrying acquisition enter chosen direct broadcasting room.
When user side is signing in the described JICQ of support operation, after the server of studio's function is provided, just obtain permissions list to server.The Permission Levels of user side in each direct broadcasting room described in described permissions list record.The authority of described user side in direct broadcasting room is for obtain in advance.
Such as, whether described authority can refer to that user side is in certain direct broadcasting room specific, have " X privilege "." X privilege " described in having then user can use the additional functionality of part in this direct broadcasting room.If had, namely Permission Levels are 1 grade, do not have, and Permission Levels are 2 grades.Further, whether this authority has, for concrete direct broadcasting room, that is user side often in a part of direct broadcasting room Permission Levels be 1 grade, in other direct broadcasting rooms, Permission Levels are 2 grades.And described permissions list, just have recorded the Permission Levels situation of a user side for each direct broadcasting room.
Record multiple different direct broadcasting room in visible described permissions list, it is fashionable that user side has the direct broadcasting room of record to go forward side by side at selected one in described permissions list, needs to obtain the authority from this direct broadcasting room.In prior art, when user side enters certain direct broadcasting room at every turn, all specially will obtain the authority for this direct broadcasting room to server, often obtaining an authority must carry out once mutual with server.
And in the present embodiment difference therewith, user side just obtains described permissions list in advance when logging in.Described permissions list is saved in local storage by user side, equals centralized and unified specify that from the authority situation in each direct broadcasting room.
After user side have selected its direct broadcasting room wanting to enter, only need inquire about the permissions list preserved in local storage, the Permission Levels from obtaining in this direct broadcasting room can being learned, obtain corresponding authority according to Permission Levels, and the authority of carrying acquisition entering this direct broadcasting room.And then user side just can utilize the authority self obtained to use corresponding business in direct broadcasting room.User side is actual when obtaining corresponding authority, without the need to carrying out with server alternately, can directly be obtained by described permissions list again.
Suppose that user side have selected direct broadcasting room A and request enters.The then local permissions list preserved of inquiry.Learn that user side is 1 grade in the Permission Levels of direct broadcasting room A.Just illustrate that user side has in direct broadcasting room A " X privilege ".So user directly while entering direct broadcasting room A, can obtain " X privilege ", and without the need to again to this authority of server request.Bandwagon effect normally userspersonal information's position display on this userspersonal information's page or screen interface of so-called privilege.
In the present embodiment visible, user side obtains authority corresponding to multiple direct broadcasting room, only needs to carry out with server once alternately, greatly reduces the interaction times of user side and server.And owing to comparing the time entering direct broadcasting room, the time that user side logs in compares dispersion, so user side when logging in and server mutual, there will not be the situation of central access server.
Preferably, permissions list described in the present embodiment can also comprise, the time limit that the Permission Levels of user side in each direct broadcasting room are corresponding.Then the present embodiment can also comprise the following steps:
Step 105 (not shown), user side, when the time limit that the described Permission Levels of arrival are corresponding, extend authority to server application; Or after the arrival time limit, again obtain permissions list to server.
In a lot of situation, the permissions list of user side is also revocable, but has real-time change.The authority of each direct broadcasting room has the corresponding time limit.After this time limit expires, if user side is not applied for extending, namely authority can disappear.
So user side can the time limit arrive before extend request authority, to ensure that the permissions list obtained remains valid.If non-extend request, then the authority situation of user side changes, and needs again to obtain permissions list to server, to upgrade self authority situation for each direct broadcasting room.
Shown in Figure 2, be the specific embodiment of direct broadcasting room authority processing method described in the embodiment of the present application.The present embodiment, relative to middle flow process embodiment illustrated in fig. 1, describes the processing procedure of server side.Described in the present embodiment, method comprises the following steps:
Step 201, server generate permissions list in advance.
In the present embodiment, described server provides direct broadcasting room function; The Permission Levels of user side in each direct broadcasting room described in described permissions list record; The authority of described user side in direct broadcasting room is for obtain in advance.
Step 202, server when user side logs in, to the list of user side sending permission.
Permissions list is sent to user side by server, to make user side obtain described permissions list, and being saved to local storage, with when entering the direct broadcasting room having record in described permissions list, obtaining corresponding authority according to described permissions list.
Preferably, permissions list described in the present embodiment can also comprise, the time limit that the Permission Levels of user side in each direct broadcasting room are corresponding.Then the present embodiment can also comprise the following steps:
Step 203 (not shown), before time limit corresponding to described Permission Levels arrives, server sends prompting message to user side.
If user side is about to arrive the time limit in the authority of certain direct broadcasting room, then server can send prompting message to user side, extends this time limit with the application of reminding user end.If user does not apply for the extended period when expiring, then return step 201 and restart handling process.Namely the authority situation that server is new according to user side regenerates permissions list, and is sent to user side, to ensure the real-time of permissions list.
Fig. 3 is the sequential chart of direct broadcasting room authority acquiring method described in the present embodiment.Shown in composition graphs 1 ~ 2 two specific embodiment is known, and server and user side interactive relation therebetween can be as shown in Figure 3.Described visible by Fig. 3, user side is disposable obtain permissions list after (as shown in thick line in figure), just can when entering direct broadcasting room, the permissions list preserved in the local storage of inquiry, knows the Permission Levels from obtaining in this direct broadcasting room.
Visible by describing above, the beneficial effect that Fig. 1 ~ 2 illustrated embodiment exists is: user side obtains authority corresponding to multiple direct broadcasting room, only need to carry out once alternately with server, greatly reduce the interaction times of user side and server, alleviate the operating pressure of server; And user side obtains permissions list when logging in server, and user side compares dispersion with the time of server interaction, further alleviates the operating pressure of server, avoid the delay of server response.
Shown in Figure 3, be the specific embodiment of direct broadcasting room authority acquiring system described in the embodiment of the present application.System described in the present embodiment for realize embodiment illustrated in fig. 1 described in method, its technical scheme is consistent with embodiment illustrated in fig. 1 in essence.In embodiment illustrated in fig. 1, corresponding description, is equally applicable in the middle of the present embodiment.In the present embodiment, described system comprises:
Acquisition module 301, for after signing in server, obtains permissions list from server and is saved to local storage.
The Permission Levels of user side in each direct broadcasting room described in described permissions list record; The authority of described user side in direct broadcasting room is for obtain in advance.Preferred described permissions list also comprises, the time limit that the Permission Levels of user side in each direct broadcasting room are corresponding.
Enquiry module 302, has the direct broadcasting room of record in described permissions list for selected one, and from described this locality stores, transfers and inquire about described permissions list, learns that user side is from the Permission Levels in chosen direct broadcasting room.
Authority module 303, for according to the Permission Levels of user side certainly in described chosen direct broadcasting room, obtain corresponding authority, and the authority of carrying acquisition enters chosen direct broadcasting room.
Update module 304 (not shown), during for the time limit corresponding in the described Permission Levels of arrival, extends authority to server application; Or after the arrival time limit, again obtain permissions list to server.
Shown in Figure 4, be the specific embodiment of direct broadcasting room authorization process system described in the embodiment of the present application.System described in the present embodiment for realize embodiment illustrated in fig. 2 described in method, its technical scheme is consistent with embodiment illustrated in fig. 2 in essence.In embodiment illustrated in fig. 2, corresponding description, is equally applicable in the middle of the present embodiment.In the present embodiment, described system comprises:
List block 401, for generating permissions list in advance.
The Permission Levels of user side in each direct broadcasting room described in described permissions list record; The authority of described user side in direct broadcasting room is for obtain in advance.Preferred described permissions list also comprises, the time limit that the Permission Levels of user side in each direct broadcasting room are corresponding.
Sending module 402, for when user side logs in, to the list of user side sending permission, described permissions list is obtained to make user side, and be saved to local storage, with when entering the direct broadcasting room having record in described permissions list, obtain corresponding authority according to described permissions list.
Prompting module 403 (not shown), before arriving for the time limit corresponding in described Permission Levels, server sends prompting message to user side.
Visible by describing above, the beneficial effect that Fig. 3 ~ 4 illustrated embodiment exists is: user side obtains authority corresponding to multiple direct broadcasting room, only need to carry out once alternately with server, greatly reduce the interaction times of user side and server, alleviate the operating pressure of server; And user side obtains permissions list when logging in server, and user side compares dispersion with the time of server interaction, further alleviates the operating pressure of server, avoid the delay of server response.
Known by each embodiment above, the beneficial effect that the application exists is:
(1) user side obtains authority corresponding to multiple direct broadcasting room, only needs to carry out with server once alternately, greatly reduces the interaction times of user side and server, alleviates the operating pressure of server.
(2) user side obtains permissions list when logging in server, and user side compares dispersion with the time of server interaction, further alleviates the operating pressure of server, avoids the delay of server response.
Those skilled in the art should understand, the embodiment of the application can be provided as method, device or computer program.Therefore, the application can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the application can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
Above-mentioned explanation illustrate and describes some preferred embodiments of the application, but as previously mentioned, be to be understood that the application is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in invention contemplated scope described herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the application, then all should in the protection range of the application's claims.