Specific embodiment
With reference to the accompanying drawings and examples, specific embodiments of the present invention will be described in further detail.Implement below
Example is not intended to limit the scope of the invention for illustrating the present invention.
Referring to Fig. 1, it is the antitheft stream method of net cast of one embodiment of the invention, is suitable in net cast, prevent
Only video steals the case where stream, and this method specifically includes that S1, obtain watching video live broadcast after user enters between net cast when
It is long;S2 prompts user to carry out input operation when the duration of user's watching video live broadcast is greater than preset duration;S3, when receiving
When the input operation of user, S1 is returned;When the input for not receiving user operates, current video plug-flow is closed.
The present embodiment net cast is entered between user after the duration of watching video live broadcast record, regarded when user watches
The duration of frequency live streaming is more than after a certain period of time, to remind user to carry out input operation, by judging whether user carries out input operation
Whether judge user really in watching video live broadcast, if user does not carry out input operation, which has the suspicion for stealing stream,
The user video stream is then closed, by the duration progress timing for user's watching video live broadcast, and input behaviour is carried out to user
It is controlled, increases user and steal stream difficulty, the robber for alleviating live streaming platform flows situation.
In another embodiment of the present invention, after obtaining user and entering between net cast watching video live broadcast duration
Before further include: after user enters between net cast, judge that the video stream of current video direct broadcasting room whether there is, if depositing
, then current video direct broadcasting room plug-flow is normal, execute step S1, if it does not exist, then current video direct broadcasting room plug-flow is abnormal, close
Close video player.Specifically, after user enters between net cast, for example platform is broadcast live by logging in bucket fish in user, enters
Between the net cast of bucket fish, it is necessary first to which judging current video direct broadcasting room, whether plug-flow is normal.The present embodiment is serviced by flash
Whether there is also show that current video is straight if video stream exists to the video stream of device acquisition current video direct broadcasting room
It is normal to broadcast a video stream pushing, thens follow the steps S1;If video stream is not present, show current video direct broadcasting room video stream pushing
Failure prompts user " video playing fails between current live ", and close user's players if video stream pushing fails.
In one embodiment of the invention, it after the video stream pushing for judging current video direct broadcasting room is normal, obtains and uses
Viewing duration of the family to net cast.Specifically, after user enters between net cast, after acquisition user enters between net cast
The last time input operating time, and obtain current server system time;By current server system time and user into
Rear last time inputs duration of the time difference of operating time as user's watching video live broadcast between entering net cast.
After calculating viewing duration of the user to net cast, judge user's watching video live broadcast duration whether be more than
Preset time, such as, if more than 30 minutes, if the duration of user's watching video live broadcast less than 30 minutes, without processing;
If the duration of user's watching video live broadcast is more than 30 minutes, the prompt of input operation is carried out to user, in the present embodiment, is passed through
Pop-up window shows that user carries out the prompt information of input operation on net cast interface, and user is allowed to carry out input operation.
Embodiment adds this dimensions of time, record user to the viewing duration of net cast, for a long time to user
The video of viewing is recorded, when the duration of user's watching video live broadcast is more than not carry out any operation in 30 minutes, then just fixed
Judge that the user has the suspicion for stealing stream.
In another embodiment of the present invention, after having carried out the prompt of input operation to user, when in preset time
When inside receiving the input operation of user, showing the user, there is no steal stream.Specifically, user ought be received within a preset time
Primary input operation when, the last time input after the input operation of the secondary user is entered between net cast as user is grasped
Make;Or when the multiple input for receiving user within a preset time operates, the last time in the preset time is inputted
Operation enter between net cast as user after last time input operation, and S1 obtains user's sight through the above steps again
See the duration of net cast.If not receiving any input operation of user within a preset time, current video live streaming is closed
Between video stream pushing.For example, above-mentioned preset time can be set to 2s.
Wherein, judge whether that the input for receiving user operates in the following way: monitor being set in the server, is led to
It crosses monitor and obtains the input operating parameter of user, for example, receiving the mouse moving operation or logical of user by monitor
The code of keyboard input is crossed, and operating parameter is judged, when the input operating parameter of user is empty, then user does not carry out
Input operation, closes the video stream pushing of current video direct broadcasting room;When the input operating parameter of user is not sky, then user carries out
Input operation, again records the duration of user's watching video live broadcast.
Embodiment adds to user input operation judge, due to steal stream be all it is batches of carry out robber's stream,
Some direct broadcasting room for stealing stream can not be operated, therefore, by being simply input the judgement of operation, that is, robber can be effectively controlled
The probability of stream.
In one embodiment of the invention, while finally closing the video stream pushing of current video direct broadcasting room, video
Player pops up the prompt information of mask countdown, carries out input operation indicating again to user;When receiving within a preset time
To user the operation of input at least once when, by the last time input operation in the preset time, as user, to enter video straight
Last time after between broadcasting inputs operation, re-starts video stream pushing, and continue to judge;When not receiving use within a preset time
When any input operation at family, directly closed between current live.It, will be between user's current live according to ID between current live
ID is transferred to room method for closing, and room method for closing is obtaining direct broadcasting room ID, directly closing the corresponding video of direct broadcasting room ID
Information flow, user can not watch video at this time.The present embodiment prompts user twice, when viewing video is straight for the first time by user
The duration broadcast be more than preset time and do not make any operation, then determine for the first time the user exist steal stream suspicion, but in order to
Ensure the safety of judging result, then give chance of the user, i.e., prompt user carries out input operation again, if ought mention for the second time
User does not carry out input operation still when showing, then can substantially determine that the user is robber stream user, then close video stream pushing,
Solve the antitheft flow problem in net cast field.
Whole description is carried out to the method for the antitheft stream of net cast below, referring to fig. 2, between user enters net cast
When, first determine whether the video stream pushing of current video direct broadcasting room is normal, then directly closes user's players if abnormal,;If
Video stream pushing is normal, then obtains user and enter the duration of rear watching video live broadcast between net cast, and judge that user watches video
Whether the duration of live streaming is more than preset duration, if not exceeded, not dealing with then, if being more than, then it is assumed that the user, which exists, steals stream
Suspicion, therefore the user is prompted to carry out input operation.When receiving the input operation that user carries out according to input operation indicating,
Show that the user does not steal stream, reacquires the duration of user's watching video live broadcast again, loop to determine process again;If not connecing
The input operation for receiving user, then conclude the user substantially to steal stream, close the video stream pushing between net cast.In order to avoid
The mistake that the judging result of stream whether is stolen to user, video player pops up while the video stream pushing closed between net cast
The prompt information of mask countdown, and prompt user carries out input operation again, if this time user has carried out input operation, recognizes
It is not to steal stream user for the user, then video stream pushing is carried out to user again, and when this user is again without carrying out input behaviour
Make, it is determined that the user is to steal stream user, directly closing video stream pushing.
It is the antitheft stream device of net cast of another embodiment of the present invention referring to Fig. 3, when being suitable for net cast, prevents
Only video is stolen the case where stream, which includes obtaining module 31, the first cue module 32 and processing module 33.
Module 31 is obtained, the duration of rear watching video live broadcast between net cast is entered for obtaining user;
First cue module 32, for when the duration of user's watching video live broadcast be greater than preset duration when, prompt user into
Row input operation;
Processing module 33, for calling the acquisition module 31 when the input for receiving user operates;When not receiving
When the input operation of user, current video plug-flow is closed.
Wherein, module 31 is obtained to be specifically used for:
When obtaining user and enter the rear last time input operating time between net cast, and obtaining current server system
Between;
Current server system time and user are entered to the time of rear last time input operating time between net cast
Duration of the difference as user's watching video live broadcast.
First cue module 32 is specifically used for:
User is prompted to carry out input operation by pop-up window on net cast interface.
The processing module 33 is also used to:
It, then will be defeated for the last time in the preset time when the operation of input at least once for receiving user within a preset time
Enter the last time input operation after operation enters between net cast as user, and calls acquisition module 31.
Referring to fig. 4, the antitheft stream device of net cast further includes judgment module 34, monitor 35 and the second cue module 36.
The judgment module 34, for after user enters between net cast, judging that the video of current video direct broadcasting room is believed
Breath stream whether there is, and if it exists, then current video direct broadcasting room plug-flow is normal, calls the acquisition module, if it does not exist, then currently
Plug-flow is abnormal between net cast, closes video player.
The monitor 35, is set in server, obtains the input operating parameter of user.
Second cue module 36, for when do not receive user input operate when, close current video plug-flow while
The prompt information that mask countdown is popped up on video playing interface, carries out input operation indicating to user again.
Based on the antitheft stream device of net cast provided by above-mentioned Fig. 3 and Fig. 4 corresponding embodiment, another reality of the invention
It applies example and additionally provides a kind of test equipment of antitheft stream device of net cast.Referring to Fig. 5, the survey of the antitheft stream device of the video playing
Trying equipment includes: processor (processor) 501, memory (memory) 502, communication interface (Communications
Interface) 503 and bus 504;
Wherein, processor 501, memory 502 and communication interface 503 complete mutual communication by bus 504 respectively;
Information of the communication interface 503 between the communication equipment of the antitheft stream device of the test equipment and net cast passes
It is defeated;
Processor 501 is used to call the program instruction in memory 502, to execute above-mentioned Fig. 1-Fig. 2 corresponding embodiment institute
The antitheft stream method of the net cast of offer, for example, obtain the duration that user enters rear watching video live broadcast between net cast;
When the duration of user's watching video live broadcast is greater than preset duration, user is prompted to carry out input operation;When receiving the defeated of user
When entering to operate, the duration of user's watching video live broadcast is reacquired;When the input for not receiving user operates, forward sight is worked as in closing
Frequency plug-flow.
Invention additionally discloses a kind of computer program product, which includes being stored in non-transient computer
Computer program on readable storage medium storing program for executing, the computer program include program instruction, when program instruction is computer-executed,
Computer is able to carry out the antitheft stream method of net cast provided by above-mentioned Fig. 1-Fig. 2 corresponding embodiment, for example, obtains and uses
Family enters the duration of rear watching video live broadcast between net cast;When the duration of user's watching video live broadcast is greater than preset duration,
Prompt user carries out input operation;When the input for receiving user operates, the duration of user's watching video live broadcast is reacquired;
When the input for not receiving user operates, current video plug-flow is closed.
The present invention provides a kind of non-transient computer readable storage medium, non-transient computer readable storage medium storage
Computer instruction, it is antitheft which makes computer execute net cast provided by above-mentioned Fig. 1-Fig. 2 corresponding embodiment
Stream method, for example, obtain the duration that user enters rear watching video live broadcast between net cast;When user's watching video live broadcast
Duration be greater than preset duration when, prompt user carry out input operation;When the input for receiving user operates, reacquires and use
The duration of family watching video live broadcast;When the input for not receiving user operates, current video plug-flow is closed.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light
The various media that can store program code such as disk.
The embodiments such as the test equipment of barrage rendering device described above are only schematical, wherein as separation
The unit of part description may or may not be physically separated, component shown as a unit can be or
It can not be physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to reality
Border needs to select some or all of the modules therein to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art
Without paying creative labor, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should
Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers
It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation
Certain Part Methods of example or embodiment.
The antitheft stream method and device of a kind of net cast provided by the invention, rear viewing view entering net cast to user
The duration of frequency live streaming is recorded, when the duration of user's watching video live broadcast is more than after a certain period of time, user to be reminded to input
Operation, by judge user whether carry out input operate judge user whether really in watching video live broadcast, if user not into
Row input operation, then there is the suspicion for stealing stream in the user, then gives chance of user again, prompt user to carry out input behaviour again
Make, if user again without input operation is carried out, substantially can be determined that the user to steal stream user, then closes the user at this time
Video flowing carries out timing by the duration for user's watching video live broadcast, and carries out input operation to user and control, and increases
User is added to steal stream difficulty, the robber for alleviating live streaming platform flows situation.
Finally, the present processes are only preferable embodiment, it is not intended to limit the scope of the present invention.It is all
Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on should be included in protection of the invention
Within the scope of.