CN109657429A - Video resource management method, equipment, system and computer readable storage medium - Google Patents
Video resource management method, equipment, system and computer readable storage medium Download PDFInfo
- Publication number
- CN109657429A CN109657429A CN201811135143.8A CN201811135143A CN109657429A CN 109657429 A CN109657429 A CN 109657429A CN 201811135143 A CN201811135143 A CN 201811135143A CN 109657429 A CN109657429 A CN 109657429A
- Authority
- CN
- China
- Prior art keywords
- video
- client
- permission
- information
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/858—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
- H04N21/8586—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a kind of video resource management methods, this method comprises: receiving the video playing request that client is sent, wherein video playing request carries target video information and subscriber identity information;Authentication is carried out to subscriber identity information, and after being proved to be successful, searches local video library to obtain the static resource to match with target video information;According to the open requirement of the permission of static resource and subscriber identity information, judge whether client has permission to access static resource;When client has permission to access static resource, creates the address URL of static resource and be issued to client, the video content in static resource is accessed and played for client.The invention also discloses a kind of equipment, system and computer readable storage mediums.The present invention solves the problems, such as the legal power safety of static resource, and then to being managed in the way of the video acquisition of static resource technology on network.
Description
Technical field
The present invention relates to multimedia technology field more particularly to a kind of video resource management method, equipment, system and calculating
Machine readable storage medium storing program for executing.
Background technique
With the continuous development of computer and information network technique, the terminal devices such as mobile phone, computer, TV have become must
Indispensable uses tool.Miscellaneous application program is loaded by terminal device, realizes various different function applications.Terminal
Equipment needs to download corresponding static resource from background server when starting application program load video file.
In the prior art, static resource is not managed, and obtaining static resource is typically all client first to background service
Device sends request, background server respond request, and from memory extracts corresponding file and be directly returned to client and solved
Analysis and rendering display.Thus in practical applications, it when video file is required there are some speical plays, needs that dynamic is taken to provide
The mode in source realizes supervision, but the configuration of dynamic resource undoubtedly aggravates the load of server, the especially big service of amount of access
Device, and then influence the use of user.
Summary of the invention
The main purpose of the present invention is to provide a kind of video resource management method, equipment, system and computer-readable deposit
Storage media, it is intended to solve the legal power safety of static resource in the prior art, and then to the view for utilizing static resource technology on network
The technical issues of frequency acquisition modes are effectively managed.
To achieve the above object, a kind of video resource management method provided by the invention, the video resource management method
The following steps are included:
Receive the video playing request that client is sent, wherein the video playing request carries target video information
And subscriber identity information;
Authentication is carried out to the subscriber identity information, and after being proved to be successful, search local video library with obtain with
The static resource that the target video information matches;
According to the open requirement of the permission of the static resource and the subscriber identity information, judge whether the client has
Permission accesses the static resource;
When the client has permission to access the static resource, creates the address URL of the static resource and issue
To the client, so that the client accesses and plays the video content in the static resource.
Preferably, described to include: to subscriber identity information progress authentication
Judge whether the subscriber identity information is token token, or whether is personal account and password;
When the subscriber identity information is token token, the token token is decrypted using preset algorithm and
Decoding process obtains JWT string data, wherein the JWT string data includes at least label originator, the account of recipient
ID, expired time, Role Information;
Judge whether the token token is effective according to the expired time and current time;
When the token token is effective, respectively to the label originator, the recipient, the authority information, the angle
Color information is verified, to be verified successfully or the verification result of authentication failed;
When the subscriber identity information is personal account and password, call user message table to the personal account and close
Code is verified, to be verified successfully or the verification result of authentication failed, wherein the user message table records all users
Account and its corresponding password, Role Information, authority information, essential attribute.
Preferably, call user message table to institute when the subscriber identity information is personal account and password described
It states personal account and password is verified, to be verified successfully or after the verification result of authentication failed, the video resource
Management method further include:
When the personal account and password authentification success after, using preset algorithm to recorded in the user message table with
The corresponding relevant information of the personal account carries out coding and encryption, to generate token token, and by the token of generation
Token is handed down to the client, so that the client is used when sending request next time.
Preferably, described to be required and the subscriber identity information according to the permission of the static resource is open, described in judgement
Whether client has permission to access the static resource
Read the open requirement of permission of the static resource, wherein the permission is open to be required to include at least to common use
Family is open, open to VIP user, open to specific user, only any one of open for uploader;
When the permission of reading is open to be required to open to ordinary user's opening or to VIP user, according to the use
Family identity information obtains Role Information, and the open requirement of the permission is compared with the Role Information, wherein described
Role Information includes at least ordinary user or VIP user;
When the permission is open to be required to match with the Role Information, determine described in the client permission to access
Static resource;
When the permission is open to be required to mismatch with the Role Information, determine described in the client lack of competence access
Static resource.
Preferably, described to be required and the subscriber identity information according to the permission of the static resource is open, described in judgement
Whether client has permission to access the static resource further include:
When the permission of reading is open to be required to open to specific user's opening or only for uploader, according to the use
Family identity information obtains account ID, and the open requirement of the permission is compared with the account ID;
When the permission is open to be required to match with the account ID, it is described quiet to determine that the client has permission to access
State resource;
When the permission is open to be required to mismatch with the account ID, determine that the client lack of competence access is described quiet
State resource.
Preferably, described when the client has permission to access the static resource, create the URL of the static resource
Address is simultaneously issued to the client and includes:
When the client has permission to access the static resource, URL interface is called, and exist based on the static resource
Store path in local video library creates the interim address URL;
The interim address URL of creation is issued to the client.
In addition, to achieve the above object, the present invention also provides a kind of video resource management equipment, the video resource management
Equipment includes: memory, processor and is stored in the video resource pipe that can be run on the memory and on the processor
Program is managed, the video resource as described in any one of above-mentioned is realized when the video resource management program is executed by the processor
The step of management method.
In addition, to achieve the above object, the present invention also provides a kind of system for managing video, the system for managing video packet
It includes: several clients and video resource management equipment as described above;The video resource management equipment and the client
Establish communication connection;
The client is used for: being shown video information, and the operational order based on user on a user interface, is determined wait broadcast
The target video information put;
Searching local data base whether there is token token;
When local data base is there are when token token, the target video information and the token token are compiled
Volume, obtain video playing request;
When token token is not present in local data base, the personal account and password of user's input are obtained;The institute that will acquire
It states personal account and password, the target video information is edited, obtain video playing request;
Video playing request that editor obtains is uploaded to the video resource management equipment, for from the video resource
Management equipment obtains video resource.
Preferably, the client is also used to: when receiving the address URL that the video resource management equipment returns,
The address URL is accessed, static resource is obtained;
Parsing obtains the video data of the static resource, and rendering display on a user interface, to play video.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
It is stored with video resource management program on storage medium, realizes when the video resource management program is executed by processor as above-mentioned
Any one of described in video resource management method the step of.
Present invention firstly receives the video playing requests that client is sent, wherein video playing request carries target view
Then frequency information and subscriber identity information carry out authentication to subscriber identity information, and after being proved to be successful, and search local view
Frequency library opens requirement and user according to the permission of static resource to obtain the static resource to match with target video information
Identity information, judges whether client has permission to access static resource, finally when client has permission to access static resource, wound
It builds the address URL of static resource and is issued to client, so that client accesses and plays the video content in static resource, from
And solve the problems, such as the legal power safety of static resource, and then to having in the way of the video acquisition of static resource technology on network
Solenoid control.
Detailed description of the invention
Fig. 1 is the structural schematic diagram for the video resource management equipment running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of one embodiment of video resource management method of the present invention;
Fig. 3 is the refinement flow diagram of mono- embodiment of Fig. 2 step S40;
Fig. 4 is the functional block diagram of one embodiment of system for managing video of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that described herein, specific examples are only used to explain the present invention, is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is the structural representation for the video resource management equipment running environment that the embodiment of the present invention is related to
Figure.
Video resource management equipment of the embodiment of the present invention can be local server or Cloud Server or service platform etc., be
Equipment with the functions such as request, access network, read-write video static resource are received.
As shown in Figure 1, the video resource management equipment may include: processor 1001, such as CPU, communication bus 1002,
User interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing between these components
Connection communication.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), network
Interface 1004 optionally may include standard wireline interface and wireless interface (such as WI-FI interface).Memory 1005 can be height
Fast RAM memory is also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory
1005 optionally can also be the storage device independently of aforementioned processor 1001.
It will be understood by those skilled in the art that the hardware configuration of video resource management equipment shown in Fig. 1 is not constituted
Restriction to video resource management equipment, may include than illustrating more or fewer components, perhaps combine certain components or
Different component layouts.
As shown in Figure 1, as may include operating system, net in a kind of memory 1005 of computer readable storage medium
Network communication module, Subscriber Interface Module SIM and computer program.Wherein, operating system is to manage and control video resource management to set
Standby and software resource program, supports the operation of video resource management program and other softwares and/or program.
In the hardware configuration of video resource management equipment shown in Fig. 1, network interface 1004 is mainly used for accessing network;
User interface 1003 is mainly used for detecting confirmation Command And Edit instruction etc..And processor 1001 can be used for calling memory
The video resource management program stored in 1005, and execute following operation:
Receive the video playing request that client is sent, wherein the video playing request carries target video information
And subscriber identity information;
Authentication is carried out to the subscriber identity information, and after being proved to be successful, search local video library with obtain with
The static resource that the target video information matches;
According to the open requirement of the permission of the static resource and the subscriber identity information, judge whether the client has
Permission accesses the static resource;
When the client has permission to access the static resource, creates the address URL of the static resource and issue
To the client, so that the client accesses and plays the video content in the static resource.
Further, the video resource management equipment calls the video stored in memory 1005 by processor 1001
Resource manager, to execute operations described below:
Judge whether the subscriber identity information is token token, or whether is personal account and password;
When the subscriber identity information is token token, the token token is decrypted using preset algorithm and
Decoding process obtains JWT string data, wherein the JWT string data includes at least label originator, the account of recipient
ID, expired time, Role Information;
Judge whether the token token is effective according to the expired time and current time;
When the token token is effective, respectively to the label originator, the recipient, the authority information, the angle
Color information is verified, to be verified successfully or the verification result of authentication failed;
When the subscriber identity information is personal account and password, call user message table to the personal account and close
Code is verified, to be verified successfully or the verification result of authentication failed, wherein the user message table records all users
Account and its corresponding password, Role Information, authority information, essential attribute.
Further, the video resource management equipment calls the video stored in memory 1005 by processor 1001
Resource manager, to execute operations described below:
When the personal account and password authentification success after, using preset algorithm to recorded in the user message table with
The corresponding relevant information of the personal account carries out coding and encryption, to generate token token, and by the token of generation
Token is handed down to the client, so that the client is used when sending request next time.
Further, the video resource management equipment calls the video stored in memory 1005 by processor 1001
Resource manager, to execute operations described below:
Read the open requirement of permission of the static resource, wherein the permission is open to be required to include at least to common use
Family is open, open to VIP user, open to specific user, only any one of open for uploader;
When the permission of reading is open to be required to open to ordinary user's opening or to VIP user, according to the use
Family identity information obtains Role Information, and the open requirement of the permission is compared with the Role Information, wherein described
Role Information includes at least ordinary user or VIP user;
When the permission is open to be required to match with the Role Information, determine described in the client permission to access
Static resource;
When the permission is open to be required to mismatch with the Role Information, determine described in the client lack of competence access
Static resource.
Further, the video resource management equipment calls the video stored in memory 1005 by processor 1001
Resource manager, to execute operations described below:
When the permission of reading is open to be required to open to specific user's opening or only for uploader, according to the use
Family identity information obtains account ID, and the open requirement of the permission is compared with the account ID;
When the permission is open to be required to match with the account ID, it is described quiet to determine that the client has permission to access
State resource;
When the permission is open to be required to mismatch with the account ID, determine that the client lack of competence access is described quiet
State resource.
Further, the video resource management equipment calls the video stored in memory 1005 by processor 1001
Resource manager, to execute operations described below:
When the client has permission to access the static resource, URL interface is called, and exist based on the static resource
Store path in local video library creates the interim address URL;
The interim address URL of creation is issued to the client.
Based on above-mentioned video resource management equipment hardware configuration, each implementation of video resource management method of the present invention is proposed
Example.
It is the flow diagram of one embodiment of video resource management method of the present invention referring to Fig. 2, Fig. 2.
In the present embodiment, video resource management method includes:
Step S10 receives the video playing request that client is sent, wherein video playing request carries target video
Information and subscriber identity information;
In the present embodiment, video playing request is a kind of information to server request video resource, including user identity
Information, client-side information, to contents such as the requesting method of resource, the identifier of resource and the agreements that uses.Server is stored with
Multitude of video resource, and target video information as the term suggests be exactly user want play video information, such as video name,
Video code flow etc..
Step S20 carries out authentication to subscriber identity information, and after being proved to be successful, searches local video library to obtain
Take the static resource to match with target video information;
In the present embodiment, what is usually requested is a kind of agreement of not state using agreement, not can know that whom is on earth
Carry out data access, it is this statelessly be intended to verifying request each time, to distinguish the identity of client.User's body
Part information is the identification information for showing user's unique identities, is the unique identification for distinguishing different user, generallys use individual
Account, and the foundation of personal account is firstly the need of the register account number ID on platform, and password is arranged, this personal account is user
Virtual identity card, the pass on platform, by personal account, platform can distinguish different use according to corresponding identity information
Family, thus there are also passwords to pass through authentication using personal account for client.Further, if same client next time again
When sending request, it must verify again, thus subscriber identity information can also be token token, a string generated by server-side
Character string, the mark made requests as client.By carrying out authentication, server energy to subscriber identity information
Enough learn that client corresponds to whether user is registration user or unregistered visitor, additionally it is possible to distinguish each user, as A, B, C,
D, E user etc..
In the present embodiment, authentication also known as " verifying ", " authentication " refer to through certain means, complete to user's body
The confirmation of part.Specific verification process is described in detail in embodiments below.There are two types of the verification results of authentication, one is verifying at
Function passes through, another kind is authentication failed.After authentication success, video playing request can be responded, specifically, is searched
Local video library is to obtain the static resource to match with target video information.Static resource is the designed html page, should
The page is loaded with fixed video data, and content is fixed, and the content no matter when and where seen is the same, and specifically includes
The video file of JavaScript file or the html format such as Cascading Style Sheet CSS file or Ajax file.It needs to add explanation
, local video library is stored with multitude of video resource, i.e., thousands of are packaged with the independent static resources of video data.
According to target video information (video name), matched static resource is obtained.Further, when authentication fails
When, prompt information is issued to client, to inform that user's lack of competence plays video.
Step S30 judges whether client has permission according to the open requirement of the permission of static resource and subscriber identity information
Access static resource;
In the present embodiment, since static resource is that client transmit a request to web server, web server is from interior presence
Corresponding file is got, and is directly returned to client;And dynamic resource is the dynamic resource of client request, first hands over request
In web container, web container connects database, after database processing data, gives content to web server, web server
Return to client parsing rendering processing.Known to both it is distinct, i.e., static resource do not need to participate in database program into
Row processing, and dynamic resource needs the participation operation of multiple databases.Thus in practical applications, when there are some for video file
When speical play requires, need to take the mode of dynamic resource to realize supervision, but the configuration of dynamic resource undoubtedly aggravates to service
The big server of the load of device, especially amount of access, and then influence the use of user.
In the present embodiment, the setting of each static resource has permission open requirement, than if any can open and used to common
Family, to VIP user, some openings can be specifically configured according to actual needs to specific user etc. for some openings.Meanwhile it is quiet
The open requirement of the permission of state resource can be arranged by platform, can also be by the user setting of upload static resource, and then meet not
The particular/special requirement that static resource is propagated on network with uploader.
It in the present embodiment, since subscriber identity information has already passed through authentication, and is proved to be successful, it is thus possible to determine and use
The identity at family than such as whether be party A-subscriber or be party B-subscriber, for example determines that user gradation is ordinary user or VIP user, Jin Erjie
The open requirement of permission for closing static resource, judges whether client has permission to access static resource, that is, whether judge user
There are enough permissions to play the video in static resource.
Step S40 creates the address URL of static resource and is issued to visitor when client has permission to access static resource
Family end accesses and plays the video content in static resource for client.
In the present embodiment, the address URL is resource address, server address and resource specific address is described, such as catalogue, specific item
The information such as record and filename.Static resource can be directly accessed by address client, and then parses and obtains being encapsulated in static money
Video file in source, and then play video content and watched for user.
In the present embodiment, the video playing that reception client is sent first is requested, wherein video playing request carries mesh
Video information and subscriber identity information are marked, authentication then is carried out to subscriber identity information, and after being proved to be successful, searches this
Ground video library to obtain the static resource to match with target video information, and then according to the permission of static resource it is open require and
Subscriber identity information, judges whether client has permission to access static resource, finally when client has permission to access static resource
When, it creates the address URL of static resource and is issued to client, so that client accesses and plays in the video in static resource
Hold, to solve the problems, such as the legal power safety of static resource, and then on network in the way of the video acquisition of static resource technology
Effectively managed.
Based on the above embodiment, in an alternative embodiment of the invention, identity is carried out to subscriber identity information in step S20 to test
Card, comprising:
Step a, judge whether subscriber identity information is token token, or whether be personal account and password;
In the present embodiment, user access server, which is typically necessary, is visited using personal account and password to log in platform
It asks, to prevent the repetition of personal account and password from submitting, reduces the input operation of user, server can be according to personal account and close
The user information of code confirmation generates a unique value, this value is exactly token token.
Step b, when subscriber identity information is token token, reconciliation is decrypted to token token using preset algorithm
Code processing, obtains JWT string data, wherein JWT string data includes at least the account ID, expired of label originator, recipient
Time, Role Information;
Step c, judge whether token token is effective according to expired time and current time;
When token token is effective, label originator, recipient, authority information, Role Information are verified respectively, with
To being proved to be successful or the verification result of authentication failed;
In the present embodiment, when client, which sends request, carries token token, illustrate to have logged on into before client
Function, and then authentication is carried out to token token, user identity and logging state are judged with this.Specifically, using pre- imputation
Token token is decrypted method and decoding process, and preset algorithm includes decipherment algorithm and decoding algorithm, and decipherment algorithm is preferably
HS256 algorithm, decoding algorithm are preferably BASE64 algorithm, and then token token are reduced to a string of character datas.This character
String data not only describes to be to be signed and issued by whom, (server), be signed and issued to which user (the account ID of recipient), also describes user's
Essential information (Role Information) can also include the contents such as registion time, the authority information, the Sex, Age that correspond to role.For into
It is safe that one step ensures that user uses, and token token is effective, thus JWT string data further includes expired time.Pass through
Expired time and current time judge whether token token is effective.You need to add is that server does not need to save token order
Board, the information in token token that need to only send to client are verified, and the memory of server is saved.When token is enabled
When board is effective, side the information in JWT string data is verified, i.e., the label originator, account ID, Role Information whether with this
The label originator of ground record, account ID, Role Information are consistent, are proved to be successful if consistent, if there is one inconsistent to verify
Failure.It, can decision verification failure without doing further verifying when token token valid.
Step d, when subscriber identity information is personal account and password, call user message table to personal account and password
It is verified, to be verified successfully or the verification result of authentication failed, wherein user message table records the account of all users
And its corresponding password, Role Information, authority information, essential attribute.
In the present embodiment, in practical applications, if first logging into, user is needed to input account and password login then hair
Send request;If token token fails, user is needed to re-enter account and password, logs in again and then send request again.
Whether server after the account and password for receiving user's submission, protect with server end by the account and password that inspection user is submitted
The account deposited is consistent with password, if unanimously, deciding that user is legitimate user, being proved to be successful.If there is one it is inconsistent, then
Determine authentication failure.Specifically, either label originator, recipient, authority information, Role Information are verified, still
Personal account and password are verified, require to call user message table, and then the account by recording in user message table
And its contents such as corresponding password, Role Information, authority information, essential attribute carry out contrast verification one by one, can also pass through use
Family information table searches user related information.
Further, after above-described embodiment step d, video resource management method further includes step e, when personal account
After password authentification success, the relevant information corresponding with personal account recorded in user message table is carried out using preset algorithm
Coding and encryption, to generate token token, and are handed down to client for the token token of generation, so that client is under
Secondary transmission uses when requesting.Operation is inputted to reduce user, using account and password login and after being proved to be successful, server is adopted
Coding and encryption are carried out to the relevant information corresponding with personal account recorded in user message table with preset algorithm, specifically
Ground carries out coding and encryption to token token using preset algorithm, and preset algorithm includes encryption algorithm and Encryption Algorithm,
Encryption algorithm is preferably BASE64 algorithm, and Encryption Algorithm is preferably HS256 algorithm, and then generates token token.Then it will generate
Token token be handed down to corresponding client and saved, and then the subsidiary token token when sending request next time, nothing
User is needed to input account and password again.
Based on the above embodiment, in an alternative embodiment of the invention, step S30, when existing in local video library and target
When the static resource that video information matches, according to the open requirement of the permission of static resource and subscriber identity information, client is judged
Whether end has permission to access static resource, comprising:
1, when there is the static resource to match with target video information in local video library, the power of static resource is read
Limit is open to be required, wherein permission is open require to include at least it is open to ordinary user, open to VIP user, specific user is opened
It puts, is only any one of open for uploader;
In the present embodiment, static resource is not required to that other parameters is called to carry out operation, but the user for receiving static resource
It needs to limit.The open requirement for requiring to access for the static resource for which user of permission, can be arranged according to platform,
It can be configured according to uploader, such as open to VIP user or ordinary user or specific certain user, to meet flat
The different use demands of platform or uploader.Each static resource has its corresponding permission is open to require in local video library.
2, when the permission of reading is open to be required to open to ordinary user's opening or to VIP user, according to user identity
Information obtains Role Information, and the open requirement of permission is compared with Role Information, wherein Role Information includes at least general
General family or VIP user;
3, when permission is open to be required to match with Role Information, determine that client has permission to access static resource;
4, when permission is open to be required to mismatch with Role Information, determine that client lack of competence accesses static resource.
In the present embodiment, platform assigns different identity, including visitor, common, VIP user etc. to the user of access, different
User's correspondence of identity possesses different rights.Notice subscriber identity information has been proved to be successful, and user is not just visitor, together
Shi Pingtai can also confirm the identity of user to get being the Role Information of ordinary user or VIP user to user.It will acquire
The permission of static resource is open to be required to be compared with Role Information, if the opening of user and the static resource that request plays are wanted
Matching is asked, illustrates to have the right to check;If the user played and the open of the static resource is requested to require to mismatch, illustrate to have no right to look into
It sees.For example the open requirement of permission for being packaged with the static resource of A video is if client corresponds to user to open to VIP user
VIP user, then client has permission to access the static resource;If it is ordinary user that client, which corresponds to user, client is had no right
Limit accesses the static resource.
Further, step S30, further includes:
5, when the permission of reading is open to be required to open to specific user's opening or only for uploader, according to user identity
Information obtains account ID, and the open requirement of permission is compared with account ID;
6, when permission is open to be required to match with account ID, determine that client has permission to access static resource;
7, when permission is open to be required to mismatch with account ID, determine that client lack of competence accesses static resource.
In the present embodiment, when the open requirement of permission is opens to specific user's opening or only for uploader, it cannot pass through
Role Information is compared.Specific user, uploader are more particularly open requirements, using ID account as mark.If
It requests the user played to require to match with the open of the static resource, illustrates to have the right to check;If requesting the user played quiet with this
The open of state resource requires to mismatch, and illustrates to have no right to check.For example the open requirement of permission is specific user, including uploader
A, user B and user C.And video playing request extracts user C, that is, has permission and check, or extracting user is Z, then haves no right
It checks.
It should be understood that obtaining video to client by the open requirement of permission of static resource and user identity
Mode is managed, and then meets speical play requirement, is improved legal power safety, and be not necessarily to dynamic configuration resource, will not also be aggravated
The load of server.
It is the refinement flow diagram of mono- embodiment of Fig. 2 step S40 referring to Fig. 3, Fig. 3.
Based on the above embodiment, in the present embodiment, step S40 is created quiet when client has permission to access static resource
The address URL of state resource is simultaneously issued to client, comprising:
Step S41 calls URL interface, and based on static resource in local when client has permission to access static resource
Store path in video library creates the interim address URL;
The interim address URL of creation is issued to client by step S42.
In the present embodiment, URL interface is the object comprising several static methods, for creating the address URL.Local view
Frequency inventory contains a large amount of static resources, and the store path of each static resource is different, and the client having permission for convenience is directly visited
Ask designated position, according to the store path where the determining client request video to be played, i.e., static resource is in local view
Store path in frequency library, one address URL of dynamic creation.It is to be appreciated that creation the address URL be it is interim, be not
It is permanent, further increase the permission access of static resource.It temporarily may be configured as the same day or a nearly week or one month nearly herein
Effectively, then invalid more than the time, need client to send request again to reacquire the new address URL.
It is the functional block diagram of one embodiment of system for managing video of the present invention referring to Fig. 4, Fig. 4.
In the present embodiment, system for managing video include: several clients 10 and on video resource management equipment 20.Visitor
Family end 10 and video resource management equipment 20 establish communication connection, realize data information interaction.Client can be mobile phone, notes
The mobile terminals such as this computer are also possible to the fixed terminals such as desktop computer.
Client 10 is used for: being shown video information, and the operational order based on user on a user interface, is determined to be played
Target video information;Searching local data base whether there is token token;It, will when local data base is there are when token token
Target video information and token token are edited, and video playing request is obtained;When token token is not present in local data base
When, obtain the personal account and password of user's input;Personal account and password, the target video information that will acquire are edited,
Obtain video playing request;Video playing request that editor obtains is uploaded to video resource management equipment 20, for from video
Asset management device 20 obtains video resource.
In the present embodiment, user interface (User Interface, abbreviation UI, also known as user interface [1]) be system and
The medium with information exchange is interacted between user, it realizes that the internal form of information and the mankind can receive between form
Conversion.All video informations that platform is shown can be viewed by user interface user, for example, video name, Time To Market,
Total playing duration, poster cover etc..Video has very much, thus user can need all videos in display according to itself selection
One of them is watched for middle selection, that is, determines target video information to be played, and then by target video information and use
Family identity information is edited, and after obtaining video playing request, is sent to video resource management equipment 20.Video resource management is set
Standby 20 respond requests upon receiving a request.
Client 10 is also used to: when receiving the address URL of the return of video resource management equipment 20, the address URL is accessed,
Obtain static resource;Parsing obtains the video data of static resource, and rendering display on a user interface, to play video.
In the present embodiment, the address URL is being received, is being accessed by the address URL, obtains static resource.Parsing is static
Resource acquisition is shown on a user interface to the video data being encapsulated in static resource, and then by video data rendering
Realize the broadcasting of video.
In addition, being stored on the computer readable storage medium the present invention also provides a kind of computer readable storage medium
There is video resource management program, is realized as described in any one of above-mentioned when the video resource management program is executed by processor
The step of video resource management method.
Each embodiment base of computer readable storage medium specific embodiment of the present invention and above-mentioned video resource management method
This is identical, and in this not go into detail.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a readable storage medium
In matter (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) method that executes each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, it is all using equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, directly or indirectly
Other related technical areas are used in, all of these belong to the protection of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of video resource management method, which is characterized in that the video resource management method the following steps are included:
Receive the video playing request that client is sent, wherein the video playing request carries target video information and use
Family identity information;
Authentication is carried out to the subscriber identity information, and after being proved to be successful, search local video library with obtain with it is described
The static resource that target video information matches;
According to the open requirement of the permission of the static resource and the subscriber identity information, judge whether the client has permission
Access the static resource;
When the client has permission to access the static resource, creates the address URL of the static resource and be issued to institute
Client is stated, so that the client accesses and plays the video content in the static resource.
2. video resource management method as described in claim 1, which is characterized in that described to be carried out to the subscriber identity information
Authentication includes:
Judge whether the subscriber identity information is token token, or whether is personal account and password;
When the subscriber identity information is token token, the token token is decrypted and is decoded using preset algorithm
Processing, obtains JWT string data, wherein the JWT string data includes at least label originator, the account ID of recipient, mistake
Time phase, Role Information;
Judge whether the token token is effective according to the expired time and current time;
When the token token is effective, the label originator, the recipient, the authority information, the role are believed respectively
Breath is verified, to be verified successfully or the verification result of authentication failed;
When the subscriber identity information is personal account and password, call user message table to the personal account and password into
Row verifying, to be verified successfully or the verification result of authentication failed, wherein the user message table records the account of all users
Family and its corresponding password, Role Information, authority information, essential attribute.
3. video resource management method as claimed in claim 2, which is characterized in that described when the subscriber identity information is
When personal account and password, user message table is called to verify the personal account and password, be verified successfully or
After the verification result of authentication failed, the video resource management method further include:
When the personal account and password authentification success after, using preset algorithm to recorded in the user message table with it is described
The corresponding relevant information of personal account carries out coding and encryption, to generate token token, and by the token token of generation
It is handed down to the client, so that the client is used when sending request next time.
4. video resource management method as described in claim 1, which is characterized in that the permission according to the static resource
Open requirement and the subscriber identity information, judge whether the client has permission to access the static resource and include:
Read the open requirement of permission of the static resource, wherein the open requirement of the permission, which includes at least, opens ordinary user
It puts, is open to VIP user, is open to specific user, is only any one of open for uploader;
When the permission of reading is open to be required to open to ordinary user's opening or to VIP user, according to user's body
Part information obtains Role Information, and the open requirement of the permission is compared with the Role Information, wherein the role
Information includes at least ordinary user or VIP user;
When the permission is open to be required to match with the Role Information, determine that the client has permission to access the static state
Resource;
When the permission is open to be required to mismatch with the Role Information, determine that the client lack of competence accesses the static state
Resource.
5. video resource management method as claimed in claim 4, which is characterized in that the permission according to the static resource
Open requirement and the subscriber identity information, judge whether the client has permission to access the static resource further include:
When the permission of reading is open to be required to open to specific user's opening or only for uploader, according to user's body
Part information obtains account ID, and the open requirement of the permission is compared with the account ID;
When the permission is open to be required to match with the account ID, determine that the client has permission to access the static money
Source;
When the permission is open to be required to mismatch with the account ID, the client lack of competence access static money is determined
Source.
6. video resource management method as described in claim 1, which is characterized in that described when the client has permission to access
When the static resource, creates the address URL of the static resource and be issued to the client and include:
When the client has permission to access the static resource, URL interface is called, and based on the static resource in local
Store path in video library creates the interim address URL;
The interim address URL of creation is issued to the client.
7. a kind of video resource management equipment, which is characterized in that the video resource management equipment includes: memory, processor
And it is stored in the video resource management program that can be run on the memory and on the processor, the video resource management
It realizes when program is executed by the processor such as the step of video resource management method described in any one of claims 1 to 6.
8. a kind of system for managing video, which is characterized in that the system for managing video includes: several clients and as right is wanted
Video resource management equipment described in asking 7;The video resource management equipment and the client, which are established, to be communicated to connect;
The client is used for: being shown video information, and the operational order based on user on a user interface, is determined to be played
Target video information;
Searching local data base whether there is token token;
When local data base is there are when token token, the target video information and the token token are edited, obtained
It is requested to video playing;
When token token is not present in local data base, the personal account and password of user's input are obtained;Described for will acquire
The number of acknowledging a debt and password, the target video information are edited, and video playing request is obtained;
Video playing request that editor obtains is uploaded to the video resource management equipment, for from the video resource management
Equipment obtains video resource.
9. system for managing video as claimed in claim 8, which is characterized in that
The client is also used to: when receiving the address URL that the video resource management equipment returns, accessing the URL
Address obtains static resource;
Parsing obtains the video data of the static resource, and rendering display on a user interface, to play video.
10. a kind of computer readable storage medium, which is characterized in that be stored with video money on the computer readable storage medium
Source control program is realized when the video resource management program is executed by processor as described in any one of claims 1 to 6
The step of video resource management method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811135143.8A CN109657429A (en) | 2018-09-27 | 2018-09-27 | Video resource management method, equipment, system and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811135143.8A CN109657429A (en) | 2018-09-27 | 2018-09-27 | Video resource management method, equipment, system and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109657429A true CN109657429A (en) | 2019-04-19 |
Family
ID=66110682
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811135143.8A Pending CN109657429A (en) | 2018-09-27 | 2018-09-27 | Video resource management method, equipment, system and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109657429A (en) |
Cited By (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110324678A (en) * | 2019-05-29 | 2019-10-11 | 视联动力信息技术股份有限公司 | Method, apparatus, electronic equipment and the readable storage medium storing program for executing of transmitting, monitoring resource |
CN110457932A (en) * | 2019-08-19 | 2019-11-15 | 赛尔网络有限公司 | Determine the method, apparatus, equipment and medium of resource access authority |
CN110839014A (en) * | 2019-10-12 | 2020-02-25 | 平安科技(深圳)有限公司 | Authentication method, device, computer system and readable storage medium |
CN111079104A (en) * | 2019-11-21 | 2020-04-28 | 腾讯科技(深圳)有限公司 | Authority control method, device, equipment and storage medium |
CN111131863A (en) * | 2019-11-21 | 2020-05-08 | 聚好看科技股份有限公司 | Token issuing method, device and system |
CN111225228A (en) * | 2020-01-15 | 2020-06-02 | 北京拙河科技有限公司 | Video live broadcast method, device, equipment and medium |
CN111274595A (en) * | 2020-01-20 | 2020-06-12 | 北京合信力科技有限公司 | Resource access control method and device |
CN111586014A (en) * | 2020-04-29 | 2020-08-25 | 杭州迪普科技股份有限公司 | Network connection management apparatus and method |
CN111581434A (en) * | 2020-04-29 | 2020-08-25 | 北京达佳互联信息技术有限公司 | Video service providing method, video service providing device, electronic equipment and storage medium |
CN111881397A (en) * | 2020-06-15 | 2020-11-03 | 明博教育科技股份有限公司 | Method and system for adding access control to static page |
CN112182522A (en) * | 2019-07-05 | 2021-01-05 | 北京地平线机器人技术研发有限公司 | Access control method and device |
CN112347274A (en) * | 2020-10-27 | 2021-02-09 | 四川长虹电器股份有限公司 | Recommendation method and system of network media assets, computer equipment and storage medium |
CN112699404A (en) * | 2020-12-29 | 2021-04-23 | 平安普惠企业管理有限公司 | Method, device and equipment for verifying authority and storage medium |
CN112770143A (en) * | 2019-11-01 | 2021-05-07 | 腾讯科技(深圳)有限公司 | Interactive video playing system and method |
CN112818371A (en) * | 2021-02-23 | 2021-05-18 | 建信金融科技有限责任公司 | Resource access control method, system, device, equipment and medium |
CN112911349A (en) * | 2021-01-27 | 2021-06-04 | 北京翔云颐康科技发展有限公司 | Video transmitting method and device, storage medium and electronic device |
CN113138739A (en) * | 2021-05-17 | 2021-07-20 | 北京字跳网络技术有限公司 | Screen projection method, system, device, electronic equipment and storage medium |
CN113239397A (en) * | 2021-05-11 | 2021-08-10 | 鸬鹚科技(深圳)有限公司 | Information access method, device, computer equipment and medium |
CN113326081A (en) * | 2021-06-30 | 2021-08-31 | 中国平安人寿保险股份有限公司 | Static resource processing method and device, computer equipment and storage medium |
CN113590913A (en) * | 2021-06-17 | 2021-11-02 | 青岛海尔科技有限公司 | Data resource display method and device, storage medium and electronic device |
CN113923482A (en) * | 2021-09-02 | 2022-01-11 | 北京奇艺世纪科技有限公司 | Video playing method, system, electronic equipment and storage medium |
CN113934997A (en) * | 2021-09-30 | 2022-01-14 | 湖北公众信息产业有限责任公司 | Intelligent data management method and system for ITV (integrated transaction television) service |
CN114139128A (en) * | 2021-11-05 | 2022-03-04 | 苏州浪潮智能科技有限公司 | System resource access method, device and medium |
CN114500025A (en) * | 2022-01-19 | 2022-05-13 | 北京达佳互联信息技术有限公司 | Account identifier acquisition method and device, server and storage medium |
CN116846684A (en) * | 2023-08-30 | 2023-10-03 | 北京东大金智科技股份有限公司 | Video security access management method and system |
WO2024032289A1 (en) * | 2022-08-12 | 2024-02-15 | 中国电信股份有限公司 | Video playback method and system, video security platform, and communication device |
-
2018
- 2018-09-27 CN CN201811135143.8A patent/CN109657429A/en active Pending
Cited By (33)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110324678A (en) * | 2019-05-29 | 2019-10-11 | 视联动力信息技术股份有限公司 | Method, apparatus, electronic equipment and the readable storage medium storing program for executing of transmitting, monitoring resource |
CN112182522A (en) * | 2019-07-05 | 2021-01-05 | 北京地平线机器人技术研发有限公司 | Access control method and device |
CN110457932A (en) * | 2019-08-19 | 2019-11-15 | 赛尔网络有限公司 | Determine the method, apparatus, equipment and medium of resource access authority |
CN110839014A (en) * | 2019-10-12 | 2020-02-25 | 平安科技(深圳)有限公司 | Authentication method, device, computer system and readable storage medium |
CN112770143A (en) * | 2019-11-01 | 2021-05-07 | 腾讯科技(深圳)有限公司 | Interactive video playing system and method |
CN111079104A (en) * | 2019-11-21 | 2020-04-28 | 腾讯科技(深圳)有限公司 | Authority control method, device, equipment and storage medium |
CN111131863A (en) * | 2019-11-21 | 2020-05-08 | 聚好看科技股份有限公司 | Token issuing method, device and system |
CN111225228A (en) * | 2020-01-15 | 2020-06-02 | 北京拙河科技有限公司 | Video live broadcast method, device, equipment and medium |
CN111225228B (en) * | 2020-01-15 | 2022-04-12 | 深圳拙河科技有限公司 | Video live broadcast method, device, equipment and medium |
CN111274595A (en) * | 2020-01-20 | 2020-06-12 | 北京合信力科技有限公司 | Resource access control method and device |
CN111581434A (en) * | 2020-04-29 | 2020-08-25 | 北京达佳互联信息技术有限公司 | Video service providing method, video service providing device, electronic equipment and storage medium |
CN111586014A (en) * | 2020-04-29 | 2020-08-25 | 杭州迪普科技股份有限公司 | Network connection management apparatus and method |
CN111881397A (en) * | 2020-06-15 | 2020-11-03 | 明博教育科技股份有限公司 | Method and system for adding access control to static page |
CN111881397B (en) * | 2020-06-15 | 2023-11-21 | 明博教育科技股份有限公司 | Method and system for adding access control to static page |
CN112347274A (en) * | 2020-10-27 | 2021-02-09 | 四川长虹电器股份有限公司 | Recommendation method and system of network media assets, computer equipment and storage medium |
CN112347274B (en) * | 2020-10-27 | 2022-06-03 | 四川长虹电器股份有限公司 | Recommendation method and system of network media assets, computer equipment and storage medium |
CN112699404A (en) * | 2020-12-29 | 2021-04-23 | 平安普惠企业管理有限公司 | Method, device and equipment for verifying authority and storage medium |
CN112911349A (en) * | 2021-01-27 | 2021-06-04 | 北京翔云颐康科技发展有限公司 | Video transmitting method and device, storage medium and electronic device |
CN112818371A (en) * | 2021-02-23 | 2021-05-18 | 建信金融科技有限责任公司 | Resource access control method, system, device, equipment and medium |
CN113239397A (en) * | 2021-05-11 | 2021-08-10 | 鸬鹚科技(深圳)有限公司 | Information access method, device, computer equipment and medium |
CN113138739A (en) * | 2021-05-17 | 2021-07-20 | 北京字跳网络技术有限公司 | Screen projection method, system, device, electronic equipment and storage medium |
CN113590913A (en) * | 2021-06-17 | 2021-11-02 | 青岛海尔科技有限公司 | Data resource display method and device, storage medium and electronic device |
CN113590913B (en) * | 2021-06-17 | 2023-06-16 | 青岛海尔科技有限公司 | Data resource display method and device, storage medium and electronic device |
CN113326081A (en) * | 2021-06-30 | 2021-08-31 | 中国平安人寿保险股份有限公司 | Static resource processing method and device, computer equipment and storage medium |
CN113923482A (en) * | 2021-09-02 | 2022-01-11 | 北京奇艺世纪科技有限公司 | Video playing method, system, electronic equipment and storage medium |
CN113934997A (en) * | 2021-09-30 | 2022-01-14 | 湖北公众信息产业有限责任公司 | Intelligent data management method and system for ITV (integrated transaction television) service |
CN114139128A (en) * | 2021-11-05 | 2022-03-04 | 苏州浪潮智能科技有限公司 | System resource access method, device and medium |
CN114139128B (en) * | 2021-11-05 | 2024-03-08 | 苏州浪潮智能科技有限公司 | System resource access method, device and medium |
CN114500025A (en) * | 2022-01-19 | 2022-05-13 | 北京达佳互联信息技术有限公司 | Account identifier acquisition method and device, server and storage medium |
CN114500025B (en) * | 2022-01-19 | 2023-10-27 | 北京达佳互联信息技术有限公司 | Account identifier acquisition method, device, server and storage medium |
WO2024032289A1 (en) * | 2022-08-12 | 2024-02-15 | 中国电信股份有限公司 | Video playback method and system, video security platform, and communication device |
CN116846684A (en) * | 2023-08-30 | 2023-10-03 | 北京东大金智科技股份有限公司 | Video security access management method and system |
CN116846684B (en) * | 2023-08-30 | 2023-11-07 | 北京东大金智科技股份有限公司 | Video security access management method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109657429A (en) | Video resource management method, equipment, system and computer readable storage medium | |
US10009356B2 (en) | Redirection method for electronic content | |
US7428750B1 (en) | Managing multiple user identities in authentication environments | |
US9177294B2 (en) | Social network site including invitation functionality | |
CN1713106B (en) | Method for providing security to an application and authorizing application to access to the security object | |
CN105871838B (en) | A kind of log-in control method and customer center platform of third party's account | |
CN108111629A (en) | Application Programming Interface service unit and Application Programming Interface service system | |
CN103973642B (en) | Realize the method and apparatus of JS application programming interfaces safe access controls | |
US20090125991A1 (en) | Secure management of authentication information | |
US20030061515A1 (en) | Capability-enabled uniform resource locator for secure web exporting and method of using same | |
CN110401655A (en) | Access control right management system based on user and role | |
CN101771676B (en) | Setting and authentication method for cross-domain authorization and relevant device and system | |
US20080306951A1 (en) | Method and System of Retrieving Avatar Data Unique to a User | |
WO2021068518A1 (en) | Identity authentication method and system, electronic equipment and storage medium | |
CN109660828A (en) | Video resource management method, equipment and computer readable storage medium | |
CN104113572B (en) | Dissemination method, system and the fore device of user-generated content | |
CN105022939B (en) | Information Authentication method and device | |
CN109040024A (en) | A kind of resource access right control method and system | |
CN103607416A (en) | Method and application system for authenticating identity of network terminal machine | |
US20050229106A1 (en) | Method and system for automatically creating and storing shortcuts to web sites/pages | |
CN112804258A (en) | Authentication and authorization method, authorization server, API gateway, system and storage medium | |
CN109088812A (en) | Information processing method, device, computer equipment and storage medium | |
CN110266792A (en) | Address conversion method, device, equipment and computer readable storage medium | |
CN111277595B (en) | User and data management method suitable for multiple users and multiple terminals | |
CN115941782A (en) | Message pushing method and system based on RPA and chat robot |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |