Invention content
The present invention provides a kind of video broadcasting method and device, perhaps to be downloaded in the Online Video bought to userLocal video content plays out permission control, realizes the copyright protection to video content.
The present invention provides a kind of video broadcasting method, including:
Step A:The first play instruction of the first user is received, and obtains described first according to first play instruction and usesFirst user identifier at family;
Step B:First user identifier is compared with pre-stored second user mark, according to comparison resultObtain the play right of the first user identifier;
Step C:Judge whether to have received the instruction identical with the first play instruction content, according to judging result andThe play right of first user identifier handles first play instruction.
Some advantageous effects of the embodiment of the present invention can include:
The method that the embodiment provides, when the locally downloading preparation of video is opened and played by user, in video data packetBuilt-in function module can extract user identifier, and mark with user pre-stored in function module according to play instruction is receivedKnowledge is compared.In comparison process, if the first user is identical with the user identifier of second user, illustrate at this timeOne user and second user are same users.By comparison result, the play right of user can be derived that.Then further sentenceIt is disconnected whether once to receive the instruction identical with this play instruction content, to judge whether the video is to be played for the first time,Finally judge whether the user's play right obtained and video are judging result played for the first time, and play instruction is carried outCorresponding processing.The method that the embodiment provides can not only identify the corresponding play right of user, additionally it is possible to reference to videoItself whether it is that the judging result played for the first time carries out instruction processing, has both ensure that user can be in time according to the right of broadcasting of oneselfLimit plays out, and also avoids video and is played by the mistake of unauthorized user.
In one embodiment, it is further included before the step A:
Step D:The video purchase solicited message of second user is received, solicited message is bought as described the according to the videoThe corresponding play right of two user settings;
Step E:The second user mark of the second user is obtained, by second user mark and corresponding right of broadcastingLimit is bound and is stored, and the user identifier includes MAC Address, IP address.
For the embodiment mainly after user buys corresponding video, the function module built in data packet can be according to userPurchase information during video is bought, corresponding play right is distributed for user:Such as can it is how many from being bought day in a few days play,Whether can only be played on same MAC and/or IP etc..System will also buy the user identifier of the user of video playing permission automaticallyCorresponding play right is bound, and is stored in local, in order to user or other people ask play when be identifiedComparison and authority distribution.The method of the embodiment provides judgement basis, and grasp for the play right of accurate, quick identification userWork is simple, is easily achieved.
In one embodiment, the step B includes:
When the MAC Address of first user identifier and second user mark, IP address are consistent, then described the is transferredThe play right of two user identifiers distributes to first user;
Then it is institute when consistent and IP address is inconsistent with the MAC Address that second user identifies for first user identifierIt states the first user and distributes the permission for playing and trying segment;
Then it is institute when consistent and MAC Address is inconsistent with the IP address that second user identifies for first user identifierIt states the first user and distributes the permission for playing and trying segment;
When the MAC Address of first user identifier and second user mark, IP address are inconsistent, then described firstThe play right of user identifier is sky.
In the method that the embodiment provides, after the user identifier that request plays the user identifier of video and prestores compares,Different play rights is distributed for user according to different comparison results.Such as:The MAC mono- of user identifier and preset user identifierIt causes and when IP address is consistent, complete play right is distributed for it;And as the MAC or IP of user identifier and preset user identifierWhen one is inconsistent in address, only user plays the permission for trying segment;And when MAC Address and inconsistent IP address, it saysThe bright user is unauthorized user, it is not allowed to play video.What the method for the embodiment in different situations, obtains for userKind play right is defined, for the play right of legal purchase user and the safety of video content is protected to provide guarantorBarrier.
In one embodiment, it is described according to judging result and the play right of first user identifier is to described firstPlay instruction carries out processing and includes:
When not receiving the instruction identical with first play instruction, then judge first user identifier with prestoringSecond user identify whether it is identical;
If first user identifier is identical with the second user mark to prestore, according to the play right of distributionFirst play instruction is performed, does not perform first play instruction if not exactly the same;
When receiving the instruction identical with first play instruction, then obtain and the first play instruction content phaseThe same corresponding third user identifier of instruction, and judge the MAC Address of first user identifier and the third user identifierIt is whether identical;
If first user identifier is identical with the MAC Address of the third user identifier, according to the permission of distributionFirst play instruction is performed, first play instruction is not performed if different.
In the embodiment, it is first determined whether the instruction identical with this play instruction content was received, if do not receivedIt crosses, then illustrates the playing request for the first time that this playing request is the user, that is, the user identifier for needing to judge the user is with prestoringUser identifier it is whether completely the same, if completely the same, according to distribution permission perform play instruction;If incomplete oneCause, then do not perform play instruction, as MAC Address and IP address only have one it is identical when, at this time also no longer allow user can broadcastIt puts and tries segment.If receiving the play instruction identical with this play instruction before, judge that user marks in this instructionKnow it is whether identical with the MAC Address of the user identifier in the instruction that receives before, if identical, during such as MAC, IP all same, thenVideo is played according to the complete play right of distribution, as when MAC is identical, IP is different, then can play video tries segment;AndWhen MAC Address difference at this time, no matter whether IP is identical, does not allow to play out.The method of the embodiment is user moreUnder kind situation, such as:Play, play again for the first time, being played in the equipment in non-purchase etc., corresponding broadcasting side is provided respectivelyMethod.
In one embodiment, the play right includes broadcasting time threshold value, and this method further includes:
Step F:Before first play instruction is performed, judge whether the broadcasting time threshold value is zero, if it isZero, then first play instruction is not performed;
Step G:If the broadcasting time threshold value is not zero, first play instruction is performed, and by the broadcastingFrequency threshold value subtracts 1.
The method that the embodiment provides also is able to limit the broadcasting time of user, such as buys video playing in userDuring permission, the number that user can play has been pre-set.After user obtains corresponding play right, it is also necessary to videoPlayed number judged, if video playing number is not up to preset broadcasting time threshold value, allow to perform broadcastingInstruction;If video playing number has reached broadcasting time threshold value, do not allow to perform play instruction.What the embodiment providedMethod also is able to play out the video data for having broadcasting time to limit, and is realized to a greater extent to user's play rightMonitoring and protection.
A kind of video play device, including:
Command reception module for receiving the first play instruction of the first user, and is obtained according to first play instructionTake the first user identifier of first user;
Matching module is identified, for first user identifier to be compared with pre-stored second user mark,The play right of the first user identifier is obtained according to comparison result;
Command process module, for judging whether to have received the instruction identical with the first play instruction content, rootIt is judged that the play right of result and first user identifier handles first play instruction.
In one embodiment, it further includes:
Priority assignation module for receiving the video of second user purchase solicited message, is bought according to the video and is askedInformation sets corresponding play right for the second user;
Identify memory module, for obtain the second user of the second user mark, by the second user mark withCorresponding play right is bound and is stored, and the user identifier includes MAC Address, IP address.
In one embodiment, the mark matching module includes:
First distribution sub module, it is equal for working as MAC Address, IP address that first user identifier identifies with second userWhen consistent, then the play right for transferring the second user mark distributes to first user;
Second distribution sub module, for work as first user identifier with the MAC Address that second user identifies consistent and IPWhen address is inconsistent, is then distributed for first user and play the permission for trying segment;
Third distribution sub module, for work as first user identifier with the IP address that second user identifies consistent and MACWhen address is inconsistent, is then distributed for first user and play the permission for trying segment;
4th distribution sub module, it is equal for working as MAC Address, IP address that first user identifier identifies with second userWhen inconsistent, then the play right of first user identifier is sky.
In one embodiment, described instruction processing module includes:
First processing submodule, for when not receiving the instruction identical with first play instruction, then judging instituteState the first user identifier identified whether with the second user to prestore it is identical;
Second processing submodule, if identical with the second user mark to prestore for first user identifier,First play instruction is then performed according to the play right of distribution, first broadcasting is not performed if not exactly the same and refers toIt enables;
Third handles submodule, for when receiving the instruction identical with first play instruction, then obtains and instituteThe corresponding third user identifier of the identical instruction of the first play instruction content is stated, and judges first user identifier and described theWhether the MAC Address of three user identifiers is identical;
Fourth process submodule, if the MAC Address phase for first user identifier and the third user identifierTogether, then first play instruction is performed according to the permission of distribution, first play instruction is not performed if different.
In one embodiment, the play right includes broadcasting time threshold value, which further includes:
Number judgment module, for before first play instruction is performed, whether judging the broadcasting time threshold valueIt is zero, if it is zero, does not perform first play instruction;
Number processing module if be not zero for the broadcasting time threshold value, performs first play instruction, andThe broadcasting time threshold value is subtracted 1.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specificationIt obtains it is clear that being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations writeSpecifically noted structure is realized and is obtained in book, claims and attached drawing.
Below by drawings and examples, technical scheme of the present invention is described in further detail.
Specific embodiment
The preferred embodiment of the present invention is illustrated below in conjunction with attached drawing, it should be understood that preferred reality described hereinIt applies 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 of video broadcasting method of the embodiment of the present invention, as shown in Figure 1, including the following stepsS101-S103:
Step S101:It receives the first play instruction of the first user, and described the is obtained according to first play instructionThe first user identifier of one user;
Step is 102:First user identifier is compared with pre-stored second user mark, according to comparisonAs a result the play right of the first user identifier is obtained;
Step S103:Judge whether to have received the instruction identical with the first play instruction content, be tied according to judgementThe play right of fruit and first user identifier handles first play instruction.
The method that the embodiment provides, when the locally downloading preparation of video is opened and played by user, in video data packetBuilt-in function module can extract user identifier, and mark with user pre-stored in function module according to play instruction is receivedKnowledge is compared.In comparison process, if the first user is identical with the user identifier of second user, illustrate at this timeOne user and second user are same users.By comparison result, the play right of user can be derived that.Then further sentenceIt is disconnected whether once to receive the instruction identical with this play instruction content, to judge whether the video is to be played for the first time,Finally judge whether the user's play right obtained and video are judging result played for the first time, and play instruction is carried outCorresponding processing.The method that the embodiment provides can not only identify the corresponding play right of user, additionally it is possible to reference to videoItself whether it is that the judging result played for the first time carries out instruction processing, has both ensure that user can be in time according to the right of broadcasting of oneselfLimit plays out, and also avoids video and is played by the mistake of unauthorized user.
In one embodiment, as shown in Fig. 2, before the step S101 further comprising the steps of S201-S202:
Step S201:The video purchase solicited message of second user is received, it is institute to buy solicited message according to the videoIt states second user and corresponding play right is set;
Step S202:The second user mark of the second user is obtained, the second user is identified and is broadcast with correspondingLimit of delegating power is bound and is stored, and the user identifier includes MAC Address, IP address.
For the embodiment mainly after user buys corresponding video, the function module built in data packet can be according to userPurchase information during video is bought, corresponding play right is distributed for user:Such as can it is how many from being bought day in a few days play,Whether can only be played on same MAC and/or IP etc..System will also buy the user identifier of the user of video playing permission automaticallyCorresponding play right is bound, and is stored in local, in order to user or other people ask play when be identifiedComparison and authority distribution.The method of the embodiment provides judgement basis, and grasp for the play right of accurate, quick identification userWork is simple, is easily achieved.
In one embodiment, as shown in figure 3, the step S102 can be embodied as following steps S301-S304:
Step S301:When the MAC Address of first user identifier and second user mark, IP address are consistent, thenThe play right for transferring the second user mark distributes to first user;
Step S302:When first user identifier, consistent and IP address is inconsistent with the MAC Address that second user identifiesWhen, then it is distributed for first user and plays the permission for trying segment;
Step S303:When first user identifier, consistent and MAC Address is inconsistent with the IP address that second user identifiesWhen, then it is distributed for first user and plays the permission for trying segment;
Step S304:When the MAC Address of first user identifier and second user mark, IP address are inconsistent,Then the play right of first user identifier is sky.
In the method that the embodiment provides, after the user identifier that request plays the user identifier of video and prestores compares,Different play rights is distributed for user according to different comparison results.Such as:The MAC mono- of user identifier and preset user identifierIt causes and when IP address is consistent, complete play right is distributed for it;And as the MAC or IP of user identifier and preset user identifierWhen one is inconsistent in address, only user plays the permission for trying segment;And when MAC Address and inconsistent IP address, it saysThe bright user is unauthorized user, it is not allowed to play video.What the method for the embodiment in different situations, obtains for userKind play right is defined, for the play right of legal purchase user and the safety of video content is protected to provide guarantorBarrier.
In one embodiment, as shown in figure 4, according to judging result and first user identifier in the step S103Play right to first play instruction carry out processing include:
Step S401:When not receiving the instruction identical with first play instruction, then first user is judgedIdentify identified whether with the second user to prestore it is identical;
Step S402:If first user identifier is identical with the second user mark to prestore, according to distributionPlay right perform first play instruction, do not perform first play instruction if not exactly the same;
Step S403:When receiving the instruction identical with first play instruction, then obtain and played with described firstThe corresponding third user identifier of the identical instruction of command content, and judge first user identifier and the third user identifierMAC Address it is whether identical;
Step S404:If first user identifier is identical with the MAC Address of the third user identifier, basis pointThe permission matched performs first play instruction, and first play instruction is not performed if different.
In the embodiment, it is first determined whether the instruction identical with this play instruction content was received, if do not receivedIt crosses, then illustrates the playing request for the first time that this playing request is the user, that is, the user identifier for needing to judge the user is with prestoringUser identifier it is whether completely the same, if completely the same, according to distribution permission perform play instruction;If incomplete oneCause, then do not perform play instruction, as MAC Address and IP address only have one it is identical when, at this time also no longer allow user can broadcastIt puts and tries segment.If receiving the play instruction identical with this play instruction before, judge that user marks in this instructionKnow it is whether identical with the MAC Address of the user identifier in the instruction that receives before, if identical, during such as MAC, IP all same, thenVideo is played according to the complete play right of distribution, as when MAC is identical, IP is different, then can play video tries segment;AndWhen MAC Address difference at this time, no matter whether IP is identical, does not allow to play out.The method of the embodiment is user moreUnder kind situation, such as:Play, play again for the first time, being played in the equipment in non-purchase etc., corresponding broadcasting side is provided respectivelyMethod.
In one embodiment, the play right include broadcasting time threshold value, as shown in figure 5, this method further include withLower step S501-S502:
Step S501:Before first play instruction is performed, judge whether the broadcasting time threshold value is zero, ifIt is zero, then does not perform first play instruction;
Step S502:If the broadcasting time threshold value is not zero, first play instruction is performed, and broadcast describedIt puts frequency threshold value and subtracts 1.
The method that the embodiment provides also is able to limit the broadcasting time of user, such as buys video playing in userDuring permission, the number that user can play has been pre-set.After user obtains corresponding play right, it is also necessary to videoPlayed number judged, if video playing number is not up to preset broadcasting time threshold value, allow to perform broadcastingInstruction;If video playing number has reached broadcasting time threshold value, do not allow to perform play instruction.What the embodiment providedMethod also is able to play out the video data for having broadcasting time to limit, and is realized to a greater extent to user's play rightMonitoring and protection.
Illustrate the method for video playing provided in an embodiment of the present invention below by specific embodiment, as shown in fig. 6, packetInclude following steps S601-S15:
Step S601:The video purchase solicited message of second user is received, it is institute to buy solicited message according to the videoIt states second user and corresponding play right is set;
Step S602:The second user mark of the second user is obtained, the second user is identified and is broadcast with correspondingLimit of delegating power is bound and is stored, and the user identifier includes MAC Address, IP address.
Step S603:It receives the first play instruction of the first user, and described the is obtained according to first play instructionThe first user identifier of one user;
Step S604:First user identifier is compared with pre-stored second user mark, according to comparisonAs a result the play right of the first user identifier is obtained;
Step S605:When the MAC Address of first user identifier and second user mark, IP address are consistent, thenThe play right for transferring the second user mark distributes to first user;
Step S606:When first user identifier, consistent and IP address is inconsistent with the MAC Address that second user identifiesWhen, then it is distributed for first user and plays the permission for trying segment;
Step S607:When first user identifier, consistent and MAC Address is inconsistent with the IP address that second user identifiesWhen, then it is distributed for first user and plays the permission for trying segment;
Step S608:When the MAC Address of first user identifier and second user mark, IP address are inconsistent,Then the play right of first user identifier is sky.
Step S609:Judge whether to have received the instruction identical with the first play instruction content, be tied according to judgementThe play right of fruit and first user identifier handles first play instruction.
Step S610:When not receiving the instruction identical with first play instruction, then first user is judgedIdentify identified whether with the second user to prestore it is identical;
Step S611:If first user identifier is identical with the second user mark to prestore, according to distributionPlay right perform first play instruction, do not perform first play instruction if not exactly the same;
Step S612:When receiving the instruction identical with first play instruction, then obtain and played with described firstThe corresponding third user identifier of the identical instruction of command content, and judge first user identifier and the third user identifierMAC Address it is whether identical;
Step S613:If first user identifier is identical with the MAC Address of the third user identifier, basis pointThe permission matched performs first play instruction, and first play instruction is not performed if different.
When the play right includes broadcasting time threshold value, further include:
Step S614:Before first play instruction is performed, judge whether the broadcasting time threshold value is zero, ifIt is zero, then does not perform first play instruction;
Step S615:If the broadcasting time threshold value is not zero, first play instruction is performed, and broadcast describedIt puts frequency threshold value and subtracts 1.
Corresponding to a kind of video broadcasting method that above-described embodiment provides, the embodiment of the present invention also provides a kind of video playingDevice, as shown in fig. 7, comprises:
Command reception module 71, for receiving the first play instruction of the first user, and according to first play instructionObtain the first user identifier of first user;
Matching module 72 is identified, for first user identifier and pre-stored second user mark to be comparedIt is right, the play right of the first user identifier is obtained according to comparison result;
Command process module 73, for judging whether to have received the instruction identical with the first play instruction content,First play instruction is handled according to the play right of judging result and first user identifier.
Priority assignation module 74, please according to video purchase for receiving the video of second user purchase solicited messageAsk information that corresponding play right is set for the second user;
Memory module 75 is identified, for obtaining the second user of second user mark, the second user is identifiedIt is bound and is stored with corresponding play right, the user identifier includes MAC Address, IP address.
In one embodiment, as shown in figure 8, the mark matching module 72 includes:
First distribution sub module 721, for working as the MAC Address of first user identifier and second user mark, IPWhen location is consistent, then the play right for transferring the second user mark distributes to first user;
Second distribution sub module 722, for work as first user identifier it is consistent with the MAC Address that second user identifies andWhen IP address is inconsistent, is then distributed for first user and play the permission for trying segment;
Third distribution sub module 723, for work as first user identifier it is consistent with the IP address that second user identifies andWhen MAC Address is inconsistent, is then distributed for first user and play the permission for trying segment;
4th distribution sub module 724, for working as the MAC Address of first user identifier and second user mark, IPWhen location is inconsistent, then the play right of first user identifier is sky.
In one embodiment, as shown in figure 9, described instruction processing module 73 includes:
First processing submodule 731, for when not receiving the instruction identical with first play instruction, then judgingFirst user identifier identifies whether identical with the second user to prestore;
Second processing submodule 732, if identifying complete phase with the second user to prestore for first user identifierTogether, then first play instruction is performed according to the play right of distribution, does not perform described first if not exactly the same and broadcastPut instruction;
Third handles submodule 733, for when receiving the instruction identical with first play instruction, then obtain withThe corresponding third user identifier of the identical instruction of the first play instruction content, and judge first user identifier with it is describedWhether the MAC Address of third user identifier is identical;
Fourth process submodule 734, if the MAC Address for first user identifier and the third user identifierIt is identical, then first play instruction is performed according to the permission of distribution, first play instruction is not performed if different.
In one embodiment, the play right includes broadcasting time threshold value, as shown in fig. 7, the device further includes:
Number judgment module 76, for before first play instruction is performed, judging that the broadcasting time threshold value isNo is zero, if it is zero, does not perform first play instruction;
Number processing module 77 if be not zero for the broadcasting time threshold value, performs first play instruction,And the broadcasting time threshold value is subtracted 1.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer programProduct.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the present inventionApply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the present inventionThe shape of computer program product that usable storage medium is implemented on (including but not limited to magnetic disk storage and optical memory etc.)Formula.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program productFigure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagramThe combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be providedThe processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produceA raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for realThe device of function specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spyDetermine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring toEnable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram orThe function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that countedSeries of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer orThe instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram oneThe step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the artGod and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologiesWithin, then the present invention is also intended to include these modifications and variations.