CN104735484B - A kind of method and device for playing video - Google Patents

A kind of method and device for playing video Download PDF

Info

Publication number
CN104735484B
CN104735484B CN201510098233.4A CN201510098233A CN104735484B CN 104735484 B CN104735484 B CN 104735484B CN 201510098233 A CN201510098233 A CN 201510098233A CN 104735484 B CN104735484 B CN 104735484B
Authority
CN
China
Prior art keywords
encryption string
client
video
mark
encryption
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.)
Expired - Fee Related
Application number
CN201510098233.4A
Other languages
Chinese (zh)
Other versions
CN104735484A (en
Inventor
张新亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TVM Beijing Technology Co Ltd
Original Assignee
TVM Beijing Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by TVM Beijing Technology Co Ltd filed Critical TVM Beijing Technology Co Ltd
Priority to CN201510098233.4A priority Critical patent/CN104735484B/en
Publication of CN104735484A publication Critical patent/CN104735484A/en
Application granted granted Critical
Publication of CN104735484B publication Critical patent/CN104735484B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/26606Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel for generating or managing entitlement messages, e.g. Entitlement Control Message [ECM] or Entitlement Management Message [EMM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2405Monitoring of the internal components or processes of the server, e.g. server load
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • H04N21/4623Processing of entitlement messages, e.g. ECM [Entitlement Control Message] or EMM [Entitlement Management Message]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a kind of method and device for playing video, and the threshold of video is obtained to increase client from server, realizes the purpose of door chain.Methods described includes:Client is received to the playing request of video, playing request includes the first encryption string, and the first encryption string is generated after the transmission time of the mark of itself and transmission playing request is encrypted by client;The reception time of mark and reception playing request to legitimate client is encrypted, the encryption string of generation second;Mark to the legitimate client and initial time of preset time period is encrypted before receiving the time, the encryption string of generation the 3rd;Judge whether the first encryption string matches with the second encryption string and the 3rd encryption string;When the first encryption string is with the second encryption string and the 3rd encryption String matching, video is sent to client, client is used to play video.The security of video is this method increase, reduces the pressure that abnormal access is brought to server.

Description

A kind of method and device for playing video
Technical field
The present invention relates to Internet technical field, more particularly to a kind of method and device for playing video.
Background technology
By the development of Internet technology in recent years.Internet has been deep into daily life, such as user Done shopping by internet, watch live telecast, viewing Internet video.User, not only can be with when watching video or television The video is watched by way of the foradownloaded video from server, server and direct viewing can also be accessed by video address The video.Wherein, video address includes:The store path of the web page address and video of server in the server.
It can be seen that video address in itself and does not have very high security, user need to only know video address, then any User can easily pass through video address and video is obtained from server.But some videos in internet are not now User's viewing is provided freely to, but needs user just to be watched after paying some expenses.And some users are to keep away Exempt from payment viewing video, then watch video by way of stealing the video address of video and directly playing or download the video.
When user asks to obtain video by video address, server can not judge whether the user has and obtain video Authority, now server directly can send the video to user.Therefore, safety when server can not ensure to store video Property.
The content of the invention
The present invention provides a kind of method and device for playing video, and the door of video is obtained to increase client from server Sill, realize the purpose of door chain.
The present invention provides a kind of method for playing video, for server, including:
Playing request of the client to video is received, the playing request includes the first encryption string, first encryption String is generated after the transmission time of the mark of itself and the transmission playing request is encrypted by the client;
The reception time of mark and the reception playing request to legitimate client is encrypted, the encryption of generation second String;The initial time of the mark and preset time period before the reception time of the legitimate client is encrypted, generated 3rd encryption string;
Judge whether the first encryption string matches with the described second encryption string and the 3rd encryption string;
When the described first encryption string is with the described second encryption string and the 3rd encryption String matching, sent out to the client The video is sent, the client is used to play the video.
Some beneficial effects of the embodiment of the present invention can include:
Judge whether client passes through to the playing request of video by the way of encryption is gone here and there so that client is from server It is higher to obtain the threshold of video, is not only to get video address just can directly obtain video, therefore pole from server The earth adds the security of video, realizes the purpose of door chain, while reduces the pressure that abnormal access is brought to server, So as to increase access efficiency when client normally accesses server.
In one embodiment, it is described to judge that the first encryption string is gone here and there with the described second encryption string and the 3rd encryption Whether match, including:
Described first encryption string is decrypted, obtains the mark of the client itself and the transmission time;
Described second encryption string and the described 3rd encryption string are decrypted, obtain mark, the institute of the legitimate client State the preset time segment information before receiving the time;
Judge the client itself mark with the legitimate client identify whether it is identical;
When the mark for judging the client itself is identical with the mark of the legitimate client, when judging the transmission Between whether in it is described reception the time before the preset time period in;
When in the preset time period before the transmission time is in the reception time, then described first is judged Encryption string and the described second encryption string and the 3rd encryption String matching.
In the embodiment, when user end to server asks to play video, it is necessary to verify the mark of client and broadcast Put the transmission time of request so that the threshold that client obtains video from server is higher, is not with only getting video Location just can directly obtain video from server, therefore substantially increase the security of video, realize the purpose of door chain, together When reduce the pressure brought to server of abnormal access, so as to increase access efficiency when client normally accesses server.
In one embodiment, it is described that described first encryption string is decrypted, including:
The described first encryption string is decrypted using the decryption method of the legitimate client and the server commitment, If successful decryption, the mark of the client itself and the transmission time are obtained;If decryption failure, described in judgement First encryption string mismatches with the described second encryption string and the 3rd encryption string.
, it is necessary to which encryption string is decrypted first in the embodiment, then directly refuse the access of client when decryption fails, So that client from server obtain video threshold it is higher, be not only get video address just can be direct from server Obtain video, therefore substantially increase the security of video, realize the purpose of door chain, at the same reduce abnormal access to The pressure that server is brought, so as to increase access efficiency when client normally accesses server.
The present invention provides a kind of method for playing video, for client, including:
When receiving the instruction for playing video, the hair of mark and the transmission playing request to the client itself The time is sent to be encrypted, the encryption string of generation first is described to send the time equal to the time for generating the playing request;
The playing request for the paired video of concatenating is encrypted according to described first;
The playing request is sent to server;
The video that the server returns is received, and plays the video.
Some beneficial effects of the embodiment of the present invention can include:
The playing request of video is sent to server by the way of encryption is gone here and there so that client obtains video from server Threshold it is higher, be not only to get video address just can directly obtain video from server, therefore greatly increase The security of video, realizes the purpose of door chain, while reduces the pressure that abnormal access is brought to server, so as to increasing Client normally accesses access efficiency during server.
In one embodiment, it is described when receiving the instruction for playing video, to the client mark of itself and The transmission time for sending the playing request is encrypted, the encryption string of generation first, including:
When receiving the instruction for playing video, using the encryption method of the client and server commitment to the visitor The mark of itself and the transmission time of the transmission playing request are encrypted at family end, the encryption string of generation first.
A kind of device for playing video, for server, including:
First receiving module, for receiving playing request of the client to video, the playing request includes first and added Close string, the first encryption string are that the transmission time of the mark of itself and the transmission playing request is carried out by the client Generated after encryption;
First generation module, add for the mark to legitimate client and the reception time for receiving the playing request It is close, the encryption string of generation second;To identifying and before the reception time during starting of preset time period for the legitimate client Between be encrypted, generation the 3rd encryption string;
Judge module, for judge it is described first encryption string with described second encryption string and it is described 3rd encryption go here and there whether Match somebody with somebody;
First sending module, for when the described first encryption string and the described second encryption string and the 3rd encryption String matching When, the video is sent to the client, the client is used to play the video.
In one embodiment, the judge module includes:
First decryption submodule, for the described first encryption string to be decrypted, obtain the client mark of itself With the transmission time;
Second decryption submodule, for the described second encryption string and the described 3rd encryption string to be decrypted, described in acquisition The identifying of legitimate client, the preset time segment information received before the time;
First judging submodule, for judging the mark of the client itself and identifying whether for the legitimate client It is identical;
Second judging submodule, for when the mark phase for the mark and the legitimate client for judging the client itself Meanwhile judge the transmission time whether in the preset time period before the reception time;
3rd judging submodule, for the preset time period before the transmission time is in the reception time When interior, then the first encryption string and the described second encryption string and the 3rd encryption String matching are judged.
In one embodiment, the first decryption submodule includes:
Decryption unit, for being added using the decryption method of the legitimate client and the server commitment to described first Close string is decrypted, if successful decryption, obtains the mark of the client itself and the transmission time;If decryption is lost Lose, then judge that the first encryption string mismatches with the described second encryption string and the 3rd encryption string.
A kind of device for playing video, for client, including:
Second generation module, for when receive play video instruction when, to the mark and hair of the client itself The transmission time of the playing request is sent to be encrypted, the encryption string of generation first, the transmission time is equal to described in generation The time of playing request;
3rd generation module, the playing request for the paired video of being concatenated according to the described first encryption;
Second sending module, for the playing request to be sent to server;
Receiving module, the video returned for receiving the server, and play the video.
In one embodiment, second generation module includes:
Submodule is generated, for when receiving the instruction for playing video, using the client and server commitment The transmission time of the mark of itself and the transmission playing request is encrypted the client encryption method, generates First encryption string.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write Specifically noted structure is realized and obtained in book, claims and accompanying drawing.
Below by drawings and examples, technical scheme is described in further detail.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and a part for constitution instruction, the reality with the present invention Apply example to be used to explain the present invention together, be not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart for the method for playing video in the embodiment of the present invention;
The flow chart that Fig. 2 is step S103 in a kind of method for playing video in the embodiment of the present invention;
Fig. 3 is the flow chart of another method for playing video in the embodiment of the present invention;
Fig. 4 is a kind of flow chart for the method for playing video in the embodiment of the present invention one;
Fig. 5 is a kind of block diagram for the device for playing video in the embodiment of the present invention;
Fig. 6 is a kind of block diagram of judge module in device for playing video in the embodiment of the present invention;
Fig. 7 is the block diagram of another device for playing video in the embodiment of the present invention.
Embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that described herein preferred real Apply example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Fig. 1 is a kind of flow chart for the method for playing video in the embodiment of the present invention.As shown in figure 1, this method is used for position In the server of network-side, comprise the following steps S101-S104:
Step S101, receives playing request of the client to video, and playing request includes the first encryption string, the first encryption String is generated after the transmission time of the mark of itself and transmission playing request is encrypted by client.
Wherein, client is the encryption method made an appointment using client and server when generating the first encryption string Generated after the mark of itself and the transmission time of transmission playing request are encrypted.
Step S102, the reception time of mark and reception playing request to legitimate client are encrypted, generation second Encryption string;Mark to the legitimate client and initial time of preset time period is encrypted before receiving the time, generation the 3rd Encryption string.
The mark of legitimate client is pre-stored in server, server receive reception time of playing request with The transmission time that client sends playing request is not necessarily identical, after usual client sends playing request, server Playing request can be just received after several seconds.Preset time period before receiving the time can be entered according to the service behaviour of server Row setting, such as set 5 seconds, then initial time is corresponding to first 5 seconds of the time that server receives playing request Time.
Step S103, judges whether the first encryption string matches with the second encryption string and the 3rd encryption string.
Step S104, when the described first encryption string is with the second encryption string and the 3rd encryption String matching, sent to client Video, client are used to play video.
Technical scheme provided in an embodiment of the present invention, the broadcasting for sending video to server by the way of encryption is gone here and there please Ask so that client from server obtain video threshold it is higher, be not only get video address just can be from server Video is directly obtained, therefore substantially increases the security of video, realizes the purpose of door chain, while reduce anon-normal frequentation The pressure brought to server is asked, so as to increase access efficiency when client normally accesses server.
In one embodiment, as shown in Fig. 2 step S103 can be embodied as following steps S201-S205:
Step S201, the first encryption string is decrypted, obtains the mark of client itself and send the time.
Wherein, when the first encryption string is decrypted server, made an appointment using legitimate client and server First encryption string is decrypted decryption method.
In one embodiment, if server continues implementation steps S202 to the first encryption string successful decryption.If Server fails to the first encryption string decryption, then directly judges that the first encryption string encrypts string and the 3rd encryption String matching with second, Now, server sends the information of video request failure to client.
Step S202, the second encryption string and the 3rd encryption string are decrypted, when obtaining the mark of legitimate client, receiving Between before preset time segment information.
Step S203, judge client itself mark and legitimate client identify whether it is identical.
Step S204, when the mark for judging client itself is identical with the mark of legitimate client, judge to send the time Whether in the preset time period before the reception time.
Step S205, when sending between in receive the time before preset time period in when, then judge first encryption string With the second encryption string and the 3rd encryption String matching.
Fig. 3 is the flow chart of another method for playing video in the embodiment of the present invention.As shown in figure 3, this method is used for In client, comprise the following steps S301-S304:
Step S301, when receiving the instruction for playing video, mark to client itself and send playing request The transmission time is encrypted, and the encryption string of generation first, sends time of the time equal to generation playing request.
Wherein, during the first encryption of client generation string, given birth to using the encryption method of client itself and server commitment Into.
Step S302, the playing request for paired video of being concatenated according to the first encryption.
Step S303, playing request is sent to server.
Step S304, the video that the reception server returns, and play video.
When server is verified to the first encryption string, client receives the video of server return, works as server During to the first encryption string authentication failed, client receives the refusal playing request of server return or the letter of request failure Breath.
Technical scheme provided in an embodiment of the present invention, the broadcasting for sending video to server by the way of encryption is gone here and there please Ask so that client from server obtain video threshold it is higher, be not only get video address just can be from server Video is directly obtained, therefore substantially increases the security of video, realizes the purpose of door chain, while reduce anon-normal frequentation The pressure brought to server is asked, so as to increase access efficiency when client normally accesses server.
Illustrate the method for broadcasting video provided in an embodiment of the present invention below by specific embodiment.
Embodiment one
Fig. 4 is a kind of flow chart for the method for playing video in the embodiment of the present invention one.As shown in figure 4, including following step Rapid S401-S413:
Step S401, the mark of its own and the transmission time of transmission playing request are encrypted client, raw Into the first encryption string.Wherein, the time that sends for sending playing request is equal to the time for generating the playing request.For example, client The transmission time for sending playing request is 10:25:35.
Step S402, client is according to the first playing request for encrypting paired video of concatenating.
Step S403, client will be sent to server to the playing request of video.
Step S404, server is to the mark of legitimate client and receives reception time of playing request and is encrypted, The encryption string of generation second, and mark to the legitimate client and initial time of preset time period adds before receiving the time It is close, the encryption string of generation the 3rd.For example, the reception time that server receives playing request is 10:25:37, preset time period is set It is set to 5 seconds, then the initial time of preset time period is 10 before receiving the time:25:32.
The first encryption string is decrypted for step S405, server, obtains the mark of client itself and sends the time.
Step S406, server to second encryption string and the 3rd encryption string be decrypted, obtain legitimate client mark, Receive the preset time segment information before the time.Encryption string is decrypted for example, server passes through, obtained before receiving the time Preset time segment information be 10:25:32——10:25:37.
Step S407, server judge client itself mark and legitimate client identify whether it is identical;It is if objective The family end mark of itself is identical with the mark of legitimate client, then continues executing with step S408;If the mark of client itself Differed with the mark of legitimate client, then perform step S412.
Step S408, server judge to send the time whether in the preset time period before the reception time;If hair Send the time to be in the preset time period before receiving the time, then continue executing with step S409;If send the time to be not at connecing In preset time period before between time receiving, then step S412 is performed.
Step S409, server judge the first encryption string and the second encryption string and the 3rd encryption String matching.
Step S410, server send video to client.
Step S411, client receive video and play video.
Step S412, server judge that the first encryption string mismatches with the second encryption string and the 3rd encryption string.
Step S413, server refuse the playing request of client, or the information of request failure is sent to client.
The technical scheme that the present embodiment provides, judge by the way of encryption is gone here and there client to the playing request of video whether Pass through so that client from server obtain video threshold it is higher, be not only get video address just can be from service Device directly obtains video, therefore substantially increases the security of video, realizes the purpose of door chain, while reduces improper The pressure brought to server is accessed, so as to increase access efficiency when client normally accesses server.
A kind of method of the broadcasting video for server provided corresponding to above-described embodiment, the embodiment of the present invention also carry For a kind of device for playing video, the device is used in server, as shown in figure 5, including:
First receiving module 51, for receiving playing request of the client to video, playing request includes the first encryption String, the first encryption string are generated after the transmission time of the mark of itself and transmission playing request is encrypted by client 's;
First generation module 52, add for the mark to legitimate client and the reception time for receiving playing request It is close, the encryption string of generation second;Mark to the legitimate client and initial time of preset time period adds before receiving the time It is close, the encryption string of generation the 3rd;
Judge module 53, for judging whether the first encryption string matches with the second encryption string and the 3rd encryption string;
First sending module 54, for when first encryption string with second encryption string and the 3rd encrypt String matching when, to client End sends the video, and client is used to play video.
In one embodiment, as shown in fig. 6, judge module 53 includes:
First decryption submodule 531, for the first encryption string to be decrypted, obtain mark and the transmission of client itself Time;
Second decryption submodule 532, for the second encryption string and the 3rd encryption string to be decrypted, obtain legitimate client Mark, receive the time before preset time segment information;
First judging submodule 533, for judge client itself mark and legitimate client identify whether it is identical;
Second judging submodule 534, for when judge client itself mark it is identical with the mark of legitimate client when, Judge to send the time whether in the preset time period before the reception time;
3rd judging submodule 535, during between when sending in the preset time period received before the time, then sentence Fixed first encryption string and the second encryption string and the 3rd encryption String matching.
In one embodiment, the first decryption submodule 531 includes:Decryption unit, for using legitimate client and clothes Business device agreement decryption method to first encryption string be decrypted, if successful decryption, obtain client itself mark and Send the time;If decryption failure, judge that the first encryption string mismatches with the second encryption string and the 3rd encryption string.
The device provided in an embodiment of the present invention for playing video judges that client is broadcast to video by the way of encryption is gone here and there Put whether request passes through so that the threshold that client obtains video from server is higher, is not only to get video address With regard to can directly obtain video from server, therefore the security of video is substantially increased, realize the purpose of door chain, simultaneously The pressure that abnormal access is brought to server is reduced, so as to increase access efficiency when client normally accesses server.
A kind of method of the broadcasting video for client provided corresponding to above-described embodiment, the embodiment of the present invention also carry For a kind of device for playing video, the device is used for client, as shown in fig. 7, comprises:
Second generation module 71, for when receive play video instruction when, mark and transmission to client itself The transmission time of playing request is encrypted, and the encryption string of generation first, sends time of the time equal to generation playing request;
3rd generation module 72, the playing request for paired video of being concatenated according to the first encryption;
Second sending module 73, for playing request to be sent to server;
Receiving module 74, the video returned for the reception server, and play video.
In one embodiment, the second generation module 71 includes:Submodule is generated, for when the finger for receiving broadcasting video When showing, using the encryption method of client and server commitment to the mark of client itself and send playing request transmission when Between be encrypted, generation first encryption string.
The device provided in an embodiment of the present invention for playing video sends broadcasting for video by the way of encryption is gone here and there to server Put request so that client from server obtain video threshold it is higher, be not only get video address just can be from clothes Business device directly obtains video, therefore substantially increases the security of video, realizes the purpose of door chain, while reduce anon-normal The pressure brought to server is asked in frequentation, so as to increase access efficiency when client normally accesses server.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more The shape for the computer program product that usable storage medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (4)

  1. A kind of 1. method for playing video, it is characterised in that for server, including:
    Playing request of the client to video is received, the playing request includes the first encryption string, and the first encryption string is Generated after the transmission time of the mark of itself and the transmission playing request is encrypted by the client;
    The reception time of mark and the reception playing request to legitimate client is encrypted, the encryption string of generation second;It is right The initial time of the mark of the legitimate client and preset time period before the reception time is encrypted, and generation the 3rd adds Close string;
    Judge whether the first encryption string matches with the described second encryption string and the 3rd encryption string;
    When the described first encryption string is with the described second encryption string and the 3rd encryption String matching, institute is sent to the client Video is stated, the client is used to play the video;
    It is described to judge whether the first encryption string matches with the described second encryption string and the 3rd encryption string, including:
    Described first encryption string is decrypted, obtains the mark of the client itself and the transmission time;
    Described second encryption string and the described 3rd encryption string are decrypted, the identifying of the legitimate client is obtained, described connects The preset time segment information before between time receiving;
    Judge the client itself mark with the legitimate client identify whether it is identical;
    When the mark for judging the client itself is identical with the mark of the legitimate client, judge that the transmission time is In the no preset time period before the reception time;
    When in the preset time period before the transmission time is in the reception time, then first encryption is judged String and the described second encryption string and the 3rd encryption String matching.
  2. 2. the method as described in claim 1, it is characterised in that
    It is described that described first encryption string is decrypted, including:
    The described first encryption string is decrypted using the decryption method of the legitimate client and the server commitment, if Successful decryption, then obtain the mark of the client itself and the transmission time;If decryption failure, judges described first Encryption string mismatches with the described second encryption string and the 3rd encryption string.
  3. A kind of 3. device for playing video, it is characterised in that for server, including:
    First receiving module, for receiving playing request of the client to video, the playing request includes the first encryption string, The first encryption string is that the transmission time of the mark of itself and the transmission playing request is encrypted by the client Generated after processing;
    First generation module, it is encrypted for the mark to legitimate client and the reception time for receiving the playing request, The encryption string of generation second;The initial time of the mark and preset time period before the reception time of the legitimate client is entered Row encryption, the encryption string of generation the 3rd;
    Judge module, for judging whether the first encryption string matches with the described second encryption string and the 3rd encryption string;
    First sending module, for when described first encryption string with described second encryption string and it is described 3rd encrypt String matching when, The video is sent to the client, the client is used to play the video;
    The judge module includes:
    First decryption submodule, for the described first encryption string to be decrypted, obtain mark and the institute of the client itself State and send the time;
    Second decryption submodule, for the described second encryption string and the described 3rd encryption string to be decrypted, it is described legal to obtain The identifying of client, the preset time segment information received before the time;
    First judging submodule, for judging that the mark of the client itself identifies whether phase with the legitimate client Together;
    Second judging submodule, judge that the mark of the client itself is identical with the mark of the legitimate client for working as When, judge the transmission time whether in the preset time period before the reception time;
    3rd judging submodule, in the preset time period before the transmission time is in the reception time When, then judge the first encryption string and the described second encryption string and the 3rd encryption String matching.
  4. 4. device as claimed in claim 3, it is characterised in that
    The first decryption submodule includes:
    Decryption unit, for being gone here and there using the decryption method of the legitimate client and the server commitment to the described first encryption It is decrypted, if successful decryption, obtains the mark of the client itself and the transmission time;If decryption failure, Then judge that the first encryption string mismatches with the described second encryption string and the 3rd encryption string.
CN201510098233.4A 2015-03-05 2015-03-05 A kind of method and device for playing video Expired - Fee Related CN104735484B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510098233.4A CN104735484B (en) 2015-03-05 2015-03-05 A kind of method and device for playing video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510098233.4A CN104735484B (en) 2015-03-05 2015-03-05 A kind of method and device for playing video

Publications (2)

Publication Number Publication Date
CN104735484A CN104735484A (en) 2015-06-24
CN104735484B true CN104735484B (en) 2017-12-15

Family

ID=53458847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510098233.4A Expired - Fee Related CN104735484B (en) 2015-03-05 2015-03-05 A kind of method and device for playing video

Country Status (1)

Country Link
CN (1) CN104735484B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105307052B (en) * 2015-10-27 2018-09-25 无锡天脉聚源传媒科技有限公司 A kind of video request processing method and processing device
CN105392051B (en) * 2015-10-27 2019-03-19 无锡天脉聚源传媒科技有限公司 A kind of video request processing method and processing device
CN105871805A (en) * 2015-12-11 2016-08-17 乐视云计算有限公司 Anti-stealing-link method and device
CN105847881B (en) * 2016-03-31 2019-07-09 武汉斗鱼网络科技有限公司 A kind of illegal-broadcast preventing video player and server and system
CN105847869B (en) * 2016-05-24 2019-06-18 武汉斗鱼网络科技有限公司 A kind of encryption playback method and device
CN106230860B (en) * 2016-09-06 2020-09-25 腾讯科技(深圳)有限公司 Method and device for transmitting streaming media
CN107172461B (en) * 2017-06-19 2019-12-03 武汉斗鱼网络科技有限公司 A kind of video flowing method for authenticating and device
CN107483407B (en) * 2017-07-18 2020-09-08 成都视达科信息技术有限公司 Method and system for preventing hotlinking
CN113905258B (en) * 2021-09-08 2023-11-03 鹏城实验室 Video playing method, network device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624692A (en) * 2011-11-28 2012-08-01 苏州奇可思信息科技有限公司 User identity authentication avoiding method based on hypertext transport protocol (HTTP)
CN103997681A (en) * 2014-06-02 2014-08-20 合一网络技术(北京)有限公司 Method for conducting link theft protection processing on live video and system thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4518058B2 (en) * 2006-01-11 2010-08-04 ソニー株式会社 Content transmission system, content transmission device, content transmission method, and computer program
CN103188084B (en) * 2013-03-27 2016-12-07 腾讯科技(深圳)有限公司 Method, system and the broadcasting server of a kind of broadcasting user picture
CN103957436B (en) * 2014-05-13 2016-09-07 北京清源新创科技有限公司 A kind of video anti-stealing link method based on OTT business
CN104378379B (en) * 2014-11-26 2018-10-16 北京奇艺世纪科技有限公司 A kind of digital content encrypted transmission method, equipment and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624692A (en) * 2011-11-28 2012-08-01 苏州奇可思信息科技有限公司 User identity authentication avoiding method based on hypertext transport protocol (HTTP)
CN103997681A (en) * 2014-06-02 2014-08-20 合一网络技术(北京)有限公司 Method for conducting link theft protection processing on live video and system thereof

Also Published As

Publication number Publication date
CN104735484A (en) 2015-06-24

Similar Documents

Publication Publication Date Title
CN104735484B (en) A kind of method and device for playing video
US11055429B2 (en) Key providing method, video playing method, server and client
CN107659829B (en) Video encryption method and system
EP2595082B1 (en) Method and authentication server for verifying access identity of set-top box
US9998440B2 (en) System and processing method for electronic authentication client, and system and method for electronic authentication
CN106878245B (en) Graphic code information providing and obtaining method, device and terminal
CN103997681B (en) Net cast is carried out to method and the system thereof of door chain process
CN105721903B (en) The online method and system for playing video
CN110011950B (en) Authentication method and device for video stream address
CN105447715A (en) Method and apparatus for anti-theft electronic coupon sweeping by cooperating with third party
CN106470103B (en) Method and system for sending encrypted URL request by client
WO2014074127A1 (en) An improved implementation of robust and secure content protection in a system-on-a-chip apparatus
CN113395406B (en) Encryption authentication method and system based on power equipment fingerprint
CN116662941B (en) Information encryption method, device, computer equipment and storage medium
CN102404337A (en) Data encryption method and device
CN113365097B (en) Live broadcast information stream processing method, device and system, electronic equipment and storage medium
CN108235067B (en) Authentication method and device for video stream address
CN108055356A (en) A kind of information processing method, server, client and readable storage medium storing program for executing
ES2956117T3 (en) User terminal identification procedure and system for receiving protected and continuously supplied multimedia content
CN113141333A (en) Communication method, device, server, system and storage medium for network access device
CN110290097B (en) Data processing method and device, storage medium and electronic device
CN107241341B (en) Access control method and device
CN111182010A (en) Local service providing method and device
CN112769783B (en) Data transmission method, cloud server, receiving end and sending end
CN111586066B (en) Method and device for encrypting multimedia data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Video playing method and device

Effective date of registration: 20180509

Granted publication date: 20171215

Pledgee: Zhongguancun Beijing technology financing Company limited by guarantee

Pledgor: Yimin source (Beijing) Technology Co., Ltd.|TVMining (Beijing) Media Technology Co., Ltd.

Registration number: 2018990000351

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171215

Termination date: 20210305