The content 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 are
System makes user terminal obtain permissions list to server when logging in, to obtain the permission that it has in each direct broadcasting room, avoids
It concentrates to server and obtains permission in a large number of users end.
In order to solve the above-mentioned technical problem, the application has following technical solution:
A kind of direct broadcasting room authority acquiring method, including:
User terminal logs on to server;
User terminal obtains permissions list from server, and preserves to being locally stored;The permissions list records the user
Hold the Permission Levels in each direct broadcasting room;Permission of the user terminal in direct broadcasting room is acquirement in advance;
User terminal selectes a direct broadcasting room for having record in the permissions list, and from described be locally stored, transfers
And the permissions list is inquired about, learn user terminal from the Permission Levels in chosen direct broadcasting room;
User terminal obtains corresponding permission, and carries according to from the Permission Levels in the chosen direct broadcasting room
The permission of acquisition enters chosen direct broadcasting room.
The permissions list further includes:
Permission Levels of the user terminal in each direct broadcasting room corresponding time limit.
The method further includes:
User terminal extends permission at the arrival Permission Levels corresponding time limit to server application;Or it reaches
After time limit, permissions list is obtained to server again.
A kind of direct broadcasting room permission processing method, including:
Server previously generates permissions list;The permissions list records permission of the user terminal in each direct broadcasting room
Grade;Permission of the user terminal in direct broadcasting room is acquirement in advance;
Server is when user terminal logs in, to user terminal sending permission list, so that user terminal obtains the permissions list,
And it preserves to being locally stored, when into the direct broadcasting room for having record in the permissions list, to be obtained according to the permissions list
Obtain corresponding permission.
The permissions list further includes:
Permission Levels of the user terminal in each direct broadcasting room corresponding time limit.
The method further includes:
Before the Permission Levels corresponding time limit reaches, server sends prompting message to user terminal.
A kind of direct broadcasting room authority acquiring system, including:
Acquisition module for after server is logged on to, obtains permissions list from server and preserves to being locally stored;Institute
It states permissions list and records Permission Levels of the user terminal in each direct broadcasting room;Permission of the user terminal in direct broadcasting room be
It obtains in advance;
Enquiry module has the direct broadcasting room of record for selecting one in the permissions list, and is locally stored from described
In, it transfers and inquires about the permissions list, learn user terminal from the Permission Levels in chosen direct broadcasting room;
Authority module, for, from the Permission Levels in the chosen direct broadcasting room, being obtained corresponding according to user terminal
Permission, and carry the permission of acquisition into chosen direct broadcasting room.
The permissions list further includes, Permission Levels of the user terminal in each direct broadcasting room corresponding time limit;The then system
System further includes:
Update module, for when reaching the Permission Levels corresponding time limit, extending permission to server application;Or
After the time limit is reached, permissions list is obtained to server again.
A kind of direct broadcasting room authorization process system, including:
List block, for previously generating permissions list;The permissions list records the user terminal in each direct broadcasting room
In Permission Levels;Permission of the user terminal in direct broadcasting room is acquirement in advance;
Sending module, for when user terminal logs in, to user terminal sending permission list, so that user terminal obtains the power
List is limited, and is preserved to being locally stored, with when into the direct broadcasting room for having record in the permissions list, according to the permission
List obtains corresponding permission.
The permissions list further includes, Permission Levels of the user terminal in each direct broadcasting room corresponding time limit;The then system
System further includes:
Reminding module, for before the Permission Levels corresponding time limit reaches, server to send to user terminal and prompts
Message.
Compared with prior art, method and system described herein has reached following effect:
(1) user terminal obtains the corresponding permission of multiple direct broadcasting rooms, it is only necessary to once be interacted, greatly reduced with server
The interaction times of user terminal and server alleviate the operating pressure of server.
(2) user terminal obtains permissions list when logging in server, and user terminal divides compared with the time that server interacts
It dissipates, further alleviates the operating pressure of server, avoid the delay of server response.
Certainly, implementing any product of the application must be not necessarily required to reach all the above technique effect simultaneously.
Specific embodiment
Some vocabulary has such as been used to censure specific components among specification and claim.Those skilled in the art should
It is understood that hardware manufacturer may call same component with different nouns.This specification and claims are not with name
The difference of title is used as the mode for distinguishing component, but is used as the criterion of differentiation with the difference of component functionally.Such as logical
The "comprising" of piece specification and claim mentioned in is an open language, therefore should be construed to " include but do not limit
In "." substantially " refer in receivable error range, those skilled in the art can be described within a certain error range solution
Technical problem basically reaches the technique effect.
The live streaming platform of embodiment of the present invention includes at least one server and the multiple clients being connected with server
End.Server admin one or more direct broadcasting room.Any client can be created to the server application being connected with the client
Direct broadcasting room is built, server can create application allocation space to complete direct broadcasting room establishment according to direct broadcasting room, and can be the direct broadcasting room point
With such as:The attribute information of title, ID, access pin etc..At least one client can be accessed in the direct broadcasting room created,
Therefore, direct broadcasting room can be described as again it is being made of at least one client, for providing space money for the live streaming process of programme televised live
The group in source.After the client application in some access channel obtains main broadcaster's permission, obtaining the client of main broadcaster's permission can claim
For main broadcaster's client, other, which access in the channel and do not obtain the client of main broadcaster's permission, then can be described as the spectator client.
Main broadcaster's client possesses the operating rights such as the recording of programme televised live, upload, and spectator client possesses the browse right of programme televised live.
Main broadcaster's client can be such as PC (Personal Computer, personal computer), laptop, mobile phone, PAD (tablets
Computer), intelligent wearable device, any client with network function, main broadcaster's client such as car-mounted terminal can record live streaming
The data message of program, 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 datas form such as (a kind of compression of digital video form) is compressed processing, obtains the source traffic of programme televised live
And it is pushed to server.
In general, spectator client subscribes to request by being sent to server, it is online straight to subscribe to the main broadcaster of its concern progress
Broadcast situation about starting broadcasting.When a certain main broadcaster's client starts broadcasting, server sends notice to the spectator client for subscribing to the main broadcaster, with
Just spectator client logins the direct broadcasting room in time.After user's Successful login direct broadcasting room, client will ask one to server
Secondary privilege list information so results in multi-user and is concentrated on this timing node into channel, will generate substantial amounts of request
Amount, causes the concurrent of information.However, user is nearly all every time identical into the data list of the direct broadcasting room request in client
, it is asked in fact without just being sent every time into direct broadcasting room to server-side.The present invention is to realize, when across day user is to entering client
The privilege that certain main broadcaster in end is opened expires, and server-side only needs one privilege list information of server-side unicast to update use again
The privilege list that family is opened can solve.Content described here is the entire interaction between client and server.
It is shown in Figure 1, it is the specific embodiment of herein described direct broadcasting room authority acquiring method.In the present embodiment, use
When family end no longer enters direct broadcasting room every time, all corresponding authority is obtained to server;But allow user terminal when logging in clothes
Business device obtains permissions list.In the present embodiment, the idiographic flow of authority acquiring is described from user terminal one side.The described method includes
Following steps:
Step 101, user terminal log on to server.
Step 102, user terminal obtain permissions list from server, and preserve to being locally stored.
Step 103, user terminal select a direct broadcasting room for having record in the permissions list, and are locally stored from described
In, it transfers and inquires about the permissions list, learn user terminal from the Permission Levels in chosen direct broadcasting room.
Step 104, user terminal obtain corresponding power according to from the Permission Levels in the chosen direct broadcasting room
Limit, and the permission for carrying acquisition enters chosen direct broadcasting room.
When user terminal supports to run the instant messaging tools logging on to, after the server that studio's function is provided,
Just permissions list is obtained to server.The permissions list records Permission Levels of the user terminal in each direct broadcasting room.Institute
Permission of the user terminal in direct broadcasting room is stated to obtain in advance.
For example, the permission can refer to user terminal in some specific direct broadcasting room, if having " X privileges ".With institute
Stating " X privileges ", then user can use the additional functionality of part in the direct broadcasting room.If it has, i.e. Permission Levels are 1 grade, no
It it is 2 grades with then Permission Levels.Also, it is for specific direct broadcasting room, that is to say, that a use whether permission has
Family end is often Permission Levels are 1 grade in a part of direct broadcasting room, and Permission Levels are 2 grades in other direct broadcasting rooms.And the power
List is limited, just has recorded the Permission Levels situation that a user terminal is directed to each direct broadcasting room.
It can be seen that record has multiple and different direct broadcasting rooms in the permissions list, user terminal is arranged at selected one in the permission
Have in table record direct broadcasting room go forward side by side it is fashionable, it is necessary to obtained from the permission in the direct broadcasting room.In the prior art, user terminal is every
During secondary some direct broadcasting room of entrance, the permission for being directed to the direct broadcasting room will be specially obtained to server, it is necessary often to obtain a permission
It is once interacted with server.
And it is different in the present embodiment and this, user terminal just obtains the permissions list in advance when logging in.User terminal is by institute
It states permissions list to preserve into being locally stored, be specified equal to centralized and unified from the permission situation in each direct broadcasting room.
After the direct broadcasting room for having selected that it is wanted to enter into user terminal, the permission row that middle preservation is locally stored need to be only inquired about
Table, you can learn from the Permission Levels obtained in the direct broadcasting room, obtain corresponding authority according to Permission Levels, and carry and obtain
The permission taken enters the direct broadcasting room.And then user terminal can utilize the permission itself obtained to use corresponding industry in direct broadcasting room
Business.User terminal it is actual obtain corresponding authority when, without being interacted again with server, can directly be taken by the permissions list
.
Assuming that user terminal has selected direct broadcasting room A and asks to enter.Then inquire about the permissions list locally preserved.Learn user terminal
It it is 1 grade in the Permission Levels of direct broadcasting room A.Just illustrate that user terminal has " X privileges " in direct broadcasting room A.So user can be direct
While into direct broadcasting room A, " X privileges " is obtained, without asking this permission to server again.The bandwagon effect of so-called privilege
Userspersonal information's position display typically on the user's personal information page or screen interface.
It can be seen that in the present embodiment, user terminal obtains the corresponding permission of multiple direct broadcasting rooms, it is only necessary to carry out one with server
Secondary interaction greatly reduces the interaction times of user terminal and server.And it due to comparing into for the time of direct broadcasting room, uses
Family end log in time it is more dispersed, so user terminal log in when and server interaction, be not in central access service
The situation of device.
Preferably, permissions list described in the present embodiment can also include, the permission of user terminal in each direct broadcasting room etc.
The grade corresponding time limit.Then the present embodiment can also comprise the following steps:
Step 105 (not shown), user terminal are at the arrival Permission Levels corresponding time limit, to server application
Extend permission;Or after the time limit is reached, permissions list is obtained to server again.
In many cases, the permissions list of user terminal and revocable, but have real-time change.The power of each direct broadcasting room
Limit has the corresponding time limit.After the time limit expires, if user terminal is not applied extending, permission can disappear.
So user terminal request can extend permission before the time limit reaches, to ensure that the permissions list obtained continues to have
Effect.If not asking to extend, the permission of user terminal happens variation, it is necessary to obtain permissions list to server again, with
Update itself permission situation for each direct broadcasting room.
It is shown in Figure 2, it is the specific embodiment of direct broadcasting room permission processing method described in the embodiment of the present application.The present embodiment
Compared with flow in embodiment illustrated in fig. 1, the processing procedure of server-side is described.Method described in the present embodiment include with
Lower step:
Step 201, server previously generate permissions list.
In the present embodiment, the server provides direct broadcasting room function;The permissions list records the user terminal each
Permission Levels in direct broadcasting room;Permission of the user terminal in direct broadcasting room is acquirement in advance.
Step 202, server are when user terminal logs in, to user terminal sending permission list.
Permissions list is sent to user terminal by server, so that user terminal obtains the permissions list, and is preserved to local
Storage, when into the direct broadcasting room for having record in the permissions list, corresponding permission is obtained according to the permissions list.
Preferably, permissions list described in the present embodiment can also include, the permission of user terminal in each direct broadcasting room etc.
The grade corresponding time limit.Then the present embodiment can also comprise the following steps:
Step 203 (not shown), before the Permission Levels corresponding time limit reaches, server is sent out to user terminal
Send prompting message.
If user terminal will reach the time limit in the permission of some direct broadcasting room, server can send prompting to user terminal
Message, user terminal application to be reminded to extend the time limit.If user does not apply the extended period when expiring, return to step 201
Start the process over flow.I.e. server regenerates permissions list according to the new permission situation of user terminal, and is sent to user
End, to ensure the real-time of permissions list.
Fig. 3 is the sequence diagram of direct broadcasting room authority acquiring method described in the present embodiment.Two with reference to shown in Fig. 1~2 are specific
Embodiment understands that interactive relation of the server with user terminal therebetween can be as shown in Figure 3.It is described by Fig. 3 as it can be seen that user terminal
It is disposable to obtain after permissions list (as shown in thick line in figure), can be when into direct broadcasting room, inquiry is local to deposit
The permissions list preserved in storage is known from the Permission Levels obtained in the direct broadcasting room.
By above description as it can be seen that Fig. 1~2 advantageous effect existing for illustrated embodiment be:User terminal obtains multiple live streamings
Between corresponding permission, it is only necessary to once interacted with server, greatly reduce the interaction times of user terminal and server, delay
The operating pressure of server is solved;And user terminal obtains permissions list when logging in server, and user terminal is handed over server
The mutual time is more dispersed, further alleviates the operating pressure of server, avoids the delay of server response.
It is shown in Figure 3, it is the specific embodiment of direct broadcasting room authority acquiring system described in the embodiment of the present application.The present embodiment
Described in system be used to implement method described in embodiment illustrated in fig. 1, technical solution substantially with embodiment illustrated in fig. 1 one
It causes.It accordingly describes, is equally applicable among the present embodiment in embodiment illustrated in fig. 1.In the present embodiment, the system comprises:
Acquisition module 301 is deposited for after server is logged on to, obtaining permissions list from server and preserving to local
Storage.
The permissions list records Permission Levels of the user terminal in each direct broadcasting room;The user terminal is in direct broadcasting room
In permission in advance obtain.The preferred permissions list further includes, Permission Levels pair of the user terminal in each direct broadcasting room
The time limit answered.
Enquiry module 302 has the direct broadcasting room of record for selecting one in the permissions list, and is deposited from the local
Chu Zhong is transferred and is inquired about the permissions list, learns user terminal from the Permission Levels in chosen direct broadcasting room.
Authority module 303, for, from the Permission Levels in the chosen direct broadcasting room, obtaining phase according to user terminal
The permission answered, and the permission for carrying acquisition enters chosen direct broadcasting room.
304 (not shown) of update module, for when reaching the Permission Levels corresponding time limit, to server Shen
It please extend permission;Or after the time limit is reached, permissions list is obtained to server again.
It is shown in Figure 4, it is the specific embodiment of direct broadcasting room authorization process system described in the embodiment of the present application.The present embodiment
Described in system be used to implement method described in embodiment illustrated in fig. 2, technical solution substantially with embodiment illustrated in fig. 2 one
It causes.It accordingly describes, is equally applicable among the present embodiment in embodiment illustrated in fig. 2.In the present embodiment, the system comprises:
List block 401, for previously generating permissions list.
The permissions list records Permission Levels of the user terminal in each direct broadcasting room;The user terminal is in direct broadcasting room
In permission in advance obtain.The preferred permissions list further includes, Permission Levels pair of the user terminal in each direct broadcasting room
The time limit answered.
Sending module 402, for when user terminal logs in, to user terminal sending permission list, so that user terminal obtains institute
It states permissions list, and preserves to being locally stored, with when into the direct broadcasting room for having record in the permissions list, according to described
Permissions list obtains corresponding permission.
403 (not shown) of reminding module, for before the Permission Levels corresponding time limit reaches, server to
User terminal sends prompting message.
By above description as it can be seen that Fig. 3~4 advantageous effect existing for illustrated embodiment be:User terminal obtains multiple live streamings
Between corresponding permission, it is only necessary to once interacted with server, greatly reduce the interaction times of user terminal and server, delay
The operating pressure of server is solved;And user terminal obtains permissions list when logging in server, and user terminal is handed over server
The mutual time is more dispersed, further alleviates the operating pressure of server, avoids the delay of server response.
By above each embodiment, advantageous effect existing for the application is:
(1) user terminal obtains the corresponding permission of multiple direct broadcasting rooms, it is only necessary to once be interacted, greatly reduced with server
The interaction times of user terminal and server alleviate the operating pressure of server.
(2) user terminal obtains permissions list when logging in server, and user terminal divides compared with the time that server interacts
It dissipates, further alleviates the operating pressure of server, avoid the delay of server response.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, apparatus or computer program
Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the application
Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the application
The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
Several preferred embodiments of the application have shown and described in above description, but as previously described, it should be understood that the application
Be not limited to form disclosed herein, be not to be taken as the exclusion to other embodiment, and available for various other combinations,
Modification and environment, and above-mentioned introduction or the technology or knowledge of association area can be passed through in the scope of the invention is set forth herein
It is modified.And changes and modifications made by those skilled in the art do not depart from spirit and scope, then it all should be in this Shen
It please be in the protection domain of appended claims.