The content of the invention
It is an object of the invention to propose the method and apparatus that a kind of broadcasting to multimedia file is encrypted, can adopt
Video is downloaded with specific form, and when playing, the authority of broadcaster is verified again, it is right so as to improve
In the encipherment protection of video file.
The method can be applied to the multimedia file of specific copyright, or for many matchmakers for only being opened to paying customer
Body file.
It is that, up to this purpose, the present invention uses following technical scheme:
A kind of method that broadcasting to multimedia file is encrypted, comprises the following steps:
When being downloaded to multimedia file, checking downloads whether user has download permission, if cannot without if
Download, if then allowing to download;
Multimedia file is downloaded, and is packaged in its encrypted form;
Multimedia file to encrypting is decrypted broadcasting;
Checking plays whether user has play right when being decrypted broadcasting, cannot be broadcast if without play right
Put, allow to play if with play right.
Optionally, judge whether whether user has download permission or have play right, refer to and judge that user is
It is no to have purchased the copyright of destination multimedia file, or judge whether user is the member with specified permission.
Optionally, when verifying whether play user has play right when decrypting and playing, with video website or backstage
Server carries out networking checking.
Optionally, download is being encrypted to multimedia file, the associated rights letter of user is being write in local cookie
Breath;
When whether checking plays user with play right when decryption is played, whether there is phase in the local cookie of searching
Close authority information, and if be proved to be successful, then play this video, do not allow otherwise play.
Optionally, the concerned right information includes franchise membership information, and the franchise membership information includes the account of member
Number, member log in deadline of IP and member account.
The invention also discloses the device that a kind of broadcasting to multimedia file is encrypted, including such as lower unit:
First authentication unit, for when being downloaded to multimedia file, checking to download whether user has the power of download
Limit, if cannot be downloaded without if, if then allowing to download;
Encapsulation unit is downloaded in encryption, for being downloaded to multimedia file, and is packaged in its encrypted form;
Decryption broadcast unit, for being decrypted broadcasting to the multimedia file encrypted;
Second authentication unit, plays whether user has play right, if do not had for being verified when decrypting and playing
Play right cannot then be played, and allow to play if with play right.
Optionally, first authentication unit, is judging whether whether user has download permission or with right of broadcasting
Limit, refers to and judges whether user have purchased the copyright of destination multimedia file, or judge whether user is with specific weights
The member of limit.
Second authentication unit, judges whether user purchases whether checking broadcasting user refers to play right
The copyright of destination multimedia file is bought, or has judged whether user is the member with specified permission.
Optionally, the second authentication unit, including online verification subelement, for playing whether user has broadcasting in checking
During authority, networking checking is carried out with video website or background server.
Optionally, encapsulation unit is downloaded in the encryption, also including write-in subelement, for being added to multimedia file
Close download, writes the concerned right information of user in local cookie;
Second authentication unit, also including off-line verification subelement, for playing whether user has broadcasting in checking
Whether during authority, finding in local cookie has concerned right information, and if be proved to be successful, then play this video,
Do not allow otherwise to play.
Optionally, the concerned right information includes franchise membership information, and the franchise membership information includes the account of member
Number, member log in deadline of IP and member account.
The invention has the advantages that:
1. pay and solely broadcast after the completion of video or audio download, system encapsulation is encrypted to the multimedia downloaded, it is necessary to
The decipherment algorithm of matching can just be watched
2. local cipher package file play out, it is necessary to again verify broadcaster authority, for example log in member account
Judged, could normal play.
3. member account is logged in, and local cookies records the useful life of member account, sentences according to record under off-line state
It is fixed to can play video without logging in judgement.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just
Part rather than entire infrastructure related to the present invention is illustrate only in description, accompanying drawing.
Referring to Fig. 1, the side being encrypted to the broadcasting of multimedia file according to a particular embodiment of the invention is shown
Method, comprises the following steps:
First verification step S110:When being downloaded to multimedia file, checking downloads whether user has the power of download
Limit, if cannot be downloaded without if, if then allowing to download.
Therefore, in download step, that is, start to judge whether user has corresponding authority.
Exemplary, the judgement includes judging whether user logs in, also, further, if logged on further sentencing
Whether the disconnected user belongs to member.So-called member is to represent the user with specified permission, such as VIP member, paying member etc..
Exemplary, the judgement also includes judging whether user have purchased the copyright of destination multimedia file, i.e., many to this
Media file is downloaded and right of broadcasting.
In such manner, it is possible to avoid the abuse of copyright and the malice with intellectual property video file from spreading.
Encapsulation step S120 is downloaded in encryption:Multimedia file is downloaded, and is packaged in its encrypted form.
For example, specific form can be packaged into, such as kux forms, the video file of the form is merely capable of with specific
Decipherment algorithm can carry out opening and play out, i.e., using specific decryption player opening corresponding multimedia text
Part.
Play step S130:Multimedia file to encrypting is decrypted broadcasting.
It is for instance possible to use decipherment algorithm, i.e., played out using the method for specific decryption player to this document, its
Its player can point out playback error when playing, so as to cannot open.
Second verification step S140:Verified when broadcasting is decrypted and play whether user has play right, if not
Cannot then be played with play right, allow to play if with play right.
Played out after being copied in another manner in order to avoid the multimedia file after download, to regarding for being downloaded
, it is necessary to carry out the checking of user again when playing out frequently.
Whether the checking can include whether checking user belongs to VIP member, paying member, or have purchased the multimedia
The copyright of file.Allow to be played out using decipherment algorithm if with right of broadcasting, otherwise, then do not allow to use decipherment algorithm
Play out.
Exemplary, the step can accordingly be carried out when user opens multimedia file by decrypting player.
It is further alternative, play when checking play user whether have play right when, with video website or after
Platform server carries out networking checking.
For example, prompting user is logged in, and determine whether whether logged in user belongs to franchise member, so that certainly
It is fixed whether to run the ciphering multimedia file that decipherment algorithm plays the download.
Again for example, judging whether the user have purchased the copyright of the multimedia file to backstage by the ID of user.
For example, Fig. 2, broadcasting is encrypted to multimedia file shows according to a particular embodiment of the invention is shown
Example, the present embodiment by member pay solely broadcast video as a example by, but it will be appreciated by those skilled in the art that, the present invention is not limited,
It is any to play scope with specific, i.e., the multimedia file with copyright or jurisdictions mandate can the embodiment,
Or apply to the present invention.
1st, user enters video website client, and selection member's paying solely broadcasts video and clicks on [download] button, and ejection is logged in
Frame, need to first be logged in, and is logged in account number and needed to be member account.
2nd, after member account is logined successfully, video can enter to be downloaded, and system can carry out the first to video after the completion of download
It is anti-to share cipher mode:Kux files exclusive on video file encryption transcoding, for example, video encapsulation, the kux files can only make
Played out with specific decryption video player, the equal None- identified of other playout softwares this formatted file, video is downloaded successfully
After can be automatically saved in local folders,
3rd, after user again taps on video enters viewing, watched using specific decryption video player, now
Local video is had added in the local video list of player, now needs second anti-cipher mode shared:Need
Log in account number and account number is member account, after logining successfully, the local video after download can just be watched.If non-member's account
Number, then illustrating do not possess corresponding authority, then the video of this download cannot be watched, and system can report an error.
For example certain VIP user A has been downloaded and just issue film M, film M only have VIP member can play or under
Carry.After film M is downloaded, kux files are encapsulated as.When the kux files are played again, only specific decipherment algorithm ability
Presents is enough played, such as specific decryption player, if other player plays this documents, point out mistake.Further
, run the decipherment algorithm play this document when, verify user whether have play right, if still VIP user A, lead to
The account for crossing login A judges to learn that the user A has play right, then continues to play this file.If VIP user A is by this article
Part has been copied and has given user B, and user B belongs to domestic consumer, does not possess play right, is judged whether user B has and is played
Authority, if do not possessed, cannot play this movie file.
Therefore, even if user A has carried out copying and propagating to file, its broadcasting is also restricted, only with corresponding
The user of authority can play.
But, foradownloaded video when user is often in networking state, and video is played in off-line state, now, if
When playing by the way of networking checking member's state, point out to be logged in often realize so that many under off-line state
Media file just cannot be played out.
Therefore, the present invention can further carry out off-line verification, i.e., when user downloads, authority information write-in is local
Cookies files in, for example the deadline of member account and account is write in local cookies files, offline
Member's deadline of account in local cookies files can not be judged only to be detected during membership under state, expired prompting
Log in, the multimedia file downloaded in the limited period of member account can be played offline.
Specifically include:
In encapsulation step S120 is downloaded in encryption, when downloading encapsulation video file, published papers under being write in local cookie
The authority information of part user;
In the second verification step S140, play whether user has play right in checking, in the local cookie of searching
Whether there is related play right information, and if be proved to be successful, then play this video, do not allow otherwise to play.
Further, the play right information be membership information, including member account and member log in IP, preferably
Deadline including member account.
For example, with reference to Fig. 3, show that the offline verification that carried out to play right according to a particular embodiment of the invention is shown
Example.
User has login record in foradownloaded video in local cookie, have recorded member account, the member of login
The deadline of account, and this user ip and id accounts, when user uses be in off-line state, it is impossible to networking carry out
The judgement of membership, when user logs on player and verified, can match local cookie, if in cookie
With login record, including IP address, the deadline of member account, and member also within the term of validity, then member verification
Pass through, play this video, such as determine that member account is out of date, this franchise video cannot be watched, do not allow to play.
Referring to Fig. 4, the device being encrypted to the broadcasting to multimedia file according to the specific embodiment of the invention is shown
Module map.
The device that a kind of broadcasting to multimedia file is encrypted, including such as lower unit:
First authentication unit 210, for when being downloaded to multimedia file, checking to download whether user has download
Authority, if cannot be downloaded without if, if then allowing to download;
Exemplary, the judgement includes judging whether user logs in, also, further, if logged on further sentencing
Whether the disconnected user belongs to franchise member.So-called franchise member is to represent the user with specified permission, and such as VIP member pays
Take member etc..
Exemplary, the judgement also includes judging whether user have purchased the copyright of destination multimedia file, i.e., many to this
Media file is downloaded and right of broadcasting.
Therefore, optionally, the first authentication unit, judges that user is judging whether user refers to download permission
It is no to have purchased the copyright of destination multimedia file, or judge whether user is the member with specified permission.
In such manner, it is possible to avoid the abuse of copyright and the malice with intellectual property video file from spreading.
Encapsulation unit 220 is downloaded in encryption, for being downloaded to multimedia file, and is packaged in its encrypted form;
For example, specific form can be packaged into, such as kux forms, the video file of the form is merely capable of with specific
Decryption player can carry out opening and play out, that is, decrypting player has corresponding decipherment algorithm corresponding to open
Multimedia file.
Decryption broadcast unit 230, for being decrypted broadcasting to the multimedia file encrypted;
Second authentication unit 240, plays whether user has play right, if do not had for being verified when decrypting and playing
Having play right cannot then play, and allow to play if with play right.
Played out after being copied in another manner in order to avoid the multimedia file after download, to regarding for being downloaded
, it is necessary to carry out the checking of user again when playing out frequently.
Whether the checking can include whether checking user belongs to VIP member, paying member, or have purchased the multimedia
The copyright of file.Allow to be played out using decryption player if with right of broadcasting, otherwise, then do not allow to use solution heavy seeding
Device is put to play out.
Second authentication unit, judges whether user have purchased whether checking broadcasting user refers to play right
The copyright of destination multimedia file, or judge whether user is the member with specified permission.
Optionally, the second authentication unit, including online verification subelement, for playing whether user has broadcasting in checking
During authority, networking checking is carried out with video website or background server.
But, foradownloaded video when user is often in networking state, and video is played in off-line state, now, if
When playing by the way of networking checking member's state, point out to be logged in often realize so that many under off-line state
Media file just cannot be played out.Therefore, the present invention can further carry out off-line verification.
I.e. optional, encapsulation unit is downloaded in encryption, also including write-in subelement, for being encrypted to multimedia file
Download, the concerned right information of user is write in local cookie;
Second authentication unit, including off-line verification subelement, for checking play user whether have play right when,
Whether find in local cookie has concerned right information, and if be proved to be successful, then play this video, do not permit otherwise
Perhaps play.
Optionally, the concerned right information includes membership information, and the membership information includes account, the Hui Yuandeng of member
The deadline of record IP and member account.
For example certain VIP user A has been downloaded and just issue film M, film M only have VIP member can play or under
Carry.After film M is downloaded, kux files are encapsulated as.When the kux files are played again, only specific decipherment algorithm, i.e.,
Decryption broadcast unit can play presents, if other broadcast units play this document, point out mistake.Further,
Run the decipherment algorithm play this document when, verify user whether have play right, if still VIP user A, by stepping on
The account for recording A judges to learn that the user A has play right, then continues to play this file.If VIP user A by this document
User is given B through copy, and user B belongs to domestic consumer, does not possess play right, judges whether user B has play right,
If do not possessed, this movie file cannot be played.
Therefore, even if user A has carried out copying and propagating to file, its broadcasting is also restricted, only with corresponding
The user of authority can play.
Therefore, the present invention has the advantage that:
1. after the completion of video download is solely broadcast in paying, system is encrypted encapsulation to the video downloaded, it is necessary to the broadcasting for matching
Device, i.e., can just be watched using specific decipherment algorithm
2. local cipher package file is played out and judged, it is necessary to log on member account, could normal play.
3. member account is logged in, and local cookies records the useful life of member account, sentences according to record under off-line state
It is fixed to can play video without logging in judgement.
Obviously, it will be understood by those skilled in the art that above-mentioned each unit of the invention or each step can be with general
Computing device realizes that they can be concentrated on single computing device, and alternatively, they can be executable with computer installation
Program code realize, such that it is able to being stored in being performed by computing device in storage device, or by they point
Each integrated circuit modules is not fabricated to, or the multiple modules or step in them are fabricated to single integrated circuit module
Realize.So, the present invention is not restricted to the combination of any specific hardware and software.
Above content is to combine specific preferred embodiment further description made for the present invention, it is impossible to assert
Specific embodiment of the invention is only limitted to this, for general technical staff of the technical field of the invention, is not taking off
On the premise of present inventive concept, some simple deduction or replace can also be made, should all be considered as belonging to the present invention by institute
Claims of submission determine protection domain.