The content of the invention
It is a primary object of the present invention to provide a kind of robber's chain detection method and device for video player, to solve
Prior art, which can not detect, steals the problem of complicated video of chain mode steals chain phenomenon.
To achieve these goals, according to an aspect of the invention, there is provided a kind of robber's chain for video player
Detection method.
The robber's chain detection method for being used for video player includes:Determine video player to be detected;In video to be detected
Player insertion detection file;The mark of the page where obtaining detection file;Judge to detect video to be detected by detecting file
Identifying whether for the page where the mark and detection file of the page where player is consistent;If it is judged that examined by detecting file
The mark of the page where measuring video player to be detected and the mark of the page where detection file are inconsistent, determine to be detected regard
Frequency player is stolen chain.
Further, if it is judged that mark by the page where detecting file to detect video player to be detected
It is inconsistent with the mark of the page where detection file, determine that video player to be detected is stolen after chain, this is used for video playback
Robber's chain detection method of device also includes:Server address corresponding to the page where obtaining detection file;To page where detection file
Server address sends a notification message corresponding to face, wherein, notification message is corresponding to the page where being used to notify detection file
Server video player to be detected is stolen the message of chain.
Further, after the server address corresponding to the page to where detection file sends a notification message, this is used for
Robber's chain detection method of video player also includes:Judge whether to receive server hair corresponding to the page as where detection file
That send forbids broadcasting message, wherein, it is forbidding for server transmission corresponding to the page as where detection file to forbid playing message
Video player to be detected plays the message of video;If it is judged that receive server corresponding to the page as where detection file
What is sent forbids broadcasting message, terminates to play video by detecting document control video player to be detected.
Further, the mark of the page includes where obtaining detection file:Obtain the video to be detected of embedded detection file
The network address of the page where player;The network address of the page where the video player to be detected of embedded detection file is true
The mark of the page where being set to detection file, after obtaining the mark for detecting the page where file and including, this is used for video and broadcast
Putting robber's chain detection method of device also includes:The mark of the page is stored in detection file where file being detected.
Further, judge to detect the mark of the video player place to be detected page with detecting file by detecting file
The place page identifies whether unanimously to include:The mark of the page where obtaining video player to be detected, wherein, video to be detected
The network address for being identified as the video player place to be detected page of the page where player;Judge video player to be detected
Whether the network address of the place page is consistent with the network address of the page where the video player to be detected of embedded detection file,
Wherein, if it is judged that the network address of the page where video player to be detected and the video to be detected of embedded detection file are broadcast
The network address of the page is consistent where putting device, it is determined that the mark of the page where video player to be detected and detection file place
The mark of the page is consistent, if it is judged that the network address of the page where video player to be detected detects treating for file with embedded
The network address of the page is inconsistent where detecting video player, it is determined that the mark of the page where video player to be detected with
The mark of the page is inconsistent where detecting file.
To achieve these goals, according to another aspect of the present invention, there is provided a kind of robber's chain for video player
Detection means.
The robber's chain detection means for being used for video player includes:First determining module, for determining that video to be detected is broadcast
Put device;Embedded module, for being embedded in detection file in video player to be detected;First acquisition module, for obtaining detection text
The mark of the page where part;First judge module, for judging to detect video player place to be detected page by detecting file
The mark in face identifies whether unanimously with the page where detection file;Second determining module, for literary by detecting when judging
When the mark of the page where part detects video player to be detected and the inconsistent mark of the page where detection file, it is determined that treating
Detect video player and be stolen chain.
Further, the robber's chain detection means for being used for video player also includes:Second acquisition module, examined for obtaining
Server address corresponding to the page where surveying file;Sending module, for server corresponding to the page where detection file
Location sends a notification message, wherein, notification message is server video to be detected corresponding to the page where being used to notify detection file
Player is stolen the message of chain.
Further, the robber's chain detection means for being used for video player also includes:Second judge module, it is for judgement
It is no receive that the server as corresponding to the page where detection file sends forbid play message, wherein, forbid playing message be
What server was sent corresponding to the page as where detection file forbids the message of video player broadcasting video to be detected;Detect mould
Block, for when judging to receive when forbidding playing message of server transmission corresponding to the page as where detection file, passing through
Detection document control video player to be detected terminates to play video.
Further, the first acquisition module includes:First acquisition submodule, for obtaining the to be detected of embedded detection file
The network address of the page where video player;First determination sub-module, for the embedded video to be detected for detecting file to be broadcast
The network address of the page where putting device is defined as the mark of the page where detecting file, and this is used for robber's chain detection of video player
Device also includes:Memory module, the mark for the page where detecting file are stored in detection file.
Further, the first judge module includes:Second acquisition submodule, for obtaining video player place to be detected
The mark of the page, wherein, the net for being identified as the video player place to be detected page of the page where video player to be detected
Network address;First judging submodule, network address and embedded detection text for the page where judging video player to be detected
Whether the network address of the page is consistent where the video player to be detected of part, wherein, if the first judging submodule is judged
The network address of the page where video player to be detected and the page where the video player to be detected of embedded detection file
Network address is consistent, it is determined that the mark of the page where video player to be detected and the mark one of the page where detection file
Cause, if if the first judging submodule judges the network address of the video player place to be detected page and embedded detection text
The network address of the page is inconsistent where the video player to be detected of part, it is determined that the page where video player to be detected
Identify inconsistent with the mark of the page where detection file.
By the present invention, using determination video player to be detected;Detection file is embedded in video player to be detected;Obtain
The mark of the page where taking detection file;Judge the mark of the page where detecting video player to be detected by detecting file with
Identifying whether for the page where detection file is consistent;If it is judged that detect video player institute to be detected by detecting file
It is inconsistent in the mark and the mark of the page where detection file of the page, determine that video player to be detected is stolen chain, solve
Prior art, which can not detect, steals the problem of complicated video of chain mode steals chain phenomenon.The invention passes through embedded in video player
File is detected, the page where the detection file for judging to detect by detecting file identifies whether and page where video player
The mark in face is consistent, if it is judged that mark is inconsistent, it is determined that the video that video player plays is stolen chain, has reached accurate
Ground detection video occurs to steal the effect of chain.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application
Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application part, rather than whole embodiments.Based on the embodiment in the application, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model of the application protection
Enclose.
It should be noted that term " first " in the description and claims of this application and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use
Data can exchange in the appropriate case, so as to embodiments herein described herein.In addition, term " comprising " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing series of steps or unit
Process, method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include without clear
It is listing to Chu or for the intrinsic other steps of these processes, method, product or equipment or unit.
The present invention is intended to provide a kind of robber's chain detection method and device for video player.
Fig. 1 is the flow chart of the robber's chain detection method for being used for video player according to embodiments of the present invention.Such as Fig. 1 institutes
Show, the robber's chain detection method for being used for video player includes steps S101 to step S105:
Step S101, determine video player to be detected.
Video player to be detected in robber's chain detection method for video player of the embodiment is preferably network
Video player, such as Tengxun's video player, Sohu's video player etc..Video player to be detected can be any one
Or multiple network video players.
Step S102, detection file is embedded in video player to be detected.
Embedded detection file is to detect whether video player occurs to steal chain phenomenon in video player to be detected.
Robber's chain detection method for video player of the embodiment is preferably Software tool kit (Software by file is detected
Development Kit, referred to as SDK), wherein, the SDK is preferably the Software tool exploitation of Beijing Gridsum Technology Co., Ltd.
Bag.The embedded detection file in video player, the mark of the page where can obtaining video player by the detection file,
The mark of the page where detecting file.The mark of the page where obtaining detection file can be by setting or automatically obtaining
Mode obtains, and after the mark of the page where obtaining detection file, the mark is changed into constant mark, it is impossible to modifies.
In video player embedded detection file can also utilize the embedded video player of detection file detection whether there occurs
Chain is stolen, specific detection process is mainly to judge that the mark of the detection file place page and video to be detected are broadcast by detecting file
The page identifies whether what is unanimously judged where putting device.
Step S103, the mark of the page where obtaining detection file.
The embodiment be used for the detection file stolen in chain detection method of video player where the mark of the page can be with
It is the window domain name of the page where detecting file or the network address of the detection file place page.Preferably, the implementation
The mark of the page includes where detection file is obtained in robber's chain detection method for video player of example:Obtain embedded detection
The network address of the page where the video player to be detected of file;By where the video player to be detected of embedded detection file
The network address of the page is defined as the mark of the page where detecting file.The mark of the page includes it where detection file is obtained
Afterwards, robber's chain detection method for video player of the embodiment can also include:The mark of the page where file being detected
It is stored in detection file.The mark of the page is fixed where detection file, i.e., the video player institute of embedded detection file
It is fixed in the mark of the page.The mark of the page and detection file where the video player of embedded detection file is detected
When the mark of middle storage is inconsistent, illustrate the insertion detection file video player there occurs steal chain.
Step S104, judge to detect the mark and detection file of the video player place to be detected page by detecting file
Identifying whether for the place page is consistent.
The detection file stolen in chain detection method for being used for video player of the embodiment is mainly for detection of to be detected
Whether video player occurs to steal chain, wherein, detection file detect video player to be detected whether occur to steal chain specifically can be with
By judging mark and the mark of the detection file place page by the page where detecting file detection video player to be detected
Whether unanimously realize.Preferably, the mark by the page where detecting file detection video player to be detected and detection are judged
The page identifies whether unanimously to include where file:The mark of the page where obtaining video player to be detected, wherein, it is to be detected
The network address for being identified as the video player place to be detected page of the page where video player;Judge that video to be detected is broadcast
Whether the network address of the page where the network address of the page detects the video player to be detected of file with insertion where putting device
Unanimously, wherein, if it is judged that the network address of the page where video player to be detected detects the to be detected of file with embedded
The network address of the page is consistent where video player, it is determined that the mark of the page where video player to be detected and detection text
The mark of the page is consistent where part, if it is judged that the network address of the page where video player to be detected and embedded detection text
The network address of the page is inconsistent where the video player to be detected of part, it is determined that the page where video player to be detected
Identify inconsistent with the mark of the page where detection file.
Step S105, if it is judged that the mark of the page where detecting video player to be detected by detecting file with
The mark of the page is inconsistent where detecting file, determines that video player to be detected is stolen chain.
The network address of the page and the video to be detected of embedded detection file where video player to be detected is judged
When the network address of the page is inconsistent where player, it is determined that detecting video player place to be detected page by detecting file
The mark in face and the mark of the page where detection file are inconsistent, then can determine that video player to be detected is stolen chain.
Preferably, if it is judged that by the mark of the page where detecting file to detect video player to be detected with
The mark of the page is inconsistent where detecting file, determines that video player to be detected is stolen after chain, and the embodiment is used to regard
Robber's chain detection method of frequency player can also include:Server address corresponding to the page where obtaining detection file;To detection
Server address corresponding to the page where file sends a notification message, wherein, notification message is to be used to notify detection file place
The video player to be detected of server corresponding to the page is stolen the message of chain.
Preferably, after the server address corresponding to the page to where detection file sends a notification message, the embodiment
Robber's chain detection method for video player can also include:It is corresponding to judge whether to receive the page where detection file
Forbidding of sending of server play message, wherein, it is the server as corresponding to the page where detection file to forbid playing message
The message for forbidding video player to be detected to play video sent;If it is judged that receive the page pair where detection file
What the server answered was sent forbids playing message, terminates to play video by detecting document control video player to be detected.
Robber's chain detection method for video player of the embodiment is using determination video player to be detected;To be checked
Survey video player insertion detection file;The mark of the page where obtaining detection file;Judge to be checked by detecting file detection
Identifying whether for the page where the mark and detection file of the page where surveying video player is consistent;If it is judged that pass through detection
The mark of the page where file detects video player to be detected and the mark of the page where detection file are inconsistent, it is determined that treating
Detect video player and be stolen chain, solve the problems, such as that prior art can not detect and steal the complicated video robber's chain phenomenon of chain mode,
The effect that accurate detection video steals chain phenomenon is reached.
As can be seen from the above description, robber's chain detection method for video player of the embodiment of the present invention is led to
Video player insertion detection file to be detected is crossed, judges to detect the video player place to be detected page by detecting file
The whether stolen chain of the video for identifying whether consistent analysis video player broadcasting of the page where mark and detection file, if sentenced
Break and to detect the mark and the mark of the page where detection file of the video player place to be detected page by detecting file
It is inconsistent, determine that video player to be detected is stolen chain.The embodiment of the invention, which solves prior art, can not detect robber chain side
The problem of complicated video of formula steals chain phenomenon, the effect that accurate detection video steals chain phenomenon is reached.
It should be noted that can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of
Performed in computer system, although also, show logical order in flow charts, in some cases, can be with not
The order being same as herein performs shown or described step.
The embodiment of the present invention additionally provides a kind of robber's chain detection means for video player.It should be noted that should
Robber's chain for video player that robber's chain detection means for video player can be used for performing the embodiment of the present invention is examined
Survey method.
Fig. 2 is the schematic diagram of the robber's chain detection means for being used for video player according to embodiments of the present invention.Such as Fig. 2 institutes
Show, the robber's chain detection means for being used for video player includes:First determining module 10, embedded module 20, the first acquisition module
30, the first judge module 40 and the second determining module 50.
First determining module 10, for determining video player to be detected.
Embedded module 20, for being embedded in detection file in video player to be detected.
First acquisition module 30, the mark for the page where obtaining detection file.
Preferably, the first acquisition module 30 includes:First acquisition submodule, for obtaining the to be detected of embedded detection file
The network address of the page where video player;First determination sub-module, for the embedded video to be detected for detecting file to be broadcast
The network address of the page where putting device is defined as the mark of the page where detecting file.
Preferably, robber's chain detection means for video player of the embodiment also includes:Memory module, for that will examine
The mark of the page where surveying file is stored in detection file
First judge module 40, for judging the mark by the page where detecting file detection video player to be detected
With identifying whether unanimously for the page where detection file.
Preferably, the first judge module 40 includes:Second acquisition submodule, for obtaining video player place to be detected
The mark of the page, wherein, the net for being identified as the video player place to be detected page of the page where video player to be detected
Network address;First judging submodule, network address and embedded detection text for the page where judging video player to be detected
Whether the network address of the page is consistent where the video player to be detected of part, wherein, if the first judging submodule is judged
The network address of the page where video player to be detected and the page where the video player to be detected of embedded detection file
Network address is consistent, it is determined that the mark of the page where video player to be detected and the mark one of the page where detection file
Cause, if the first judging submodule judges the network address of the video player place to be detected page and embedded detection file
The network address of the page is inconsistent where video player to be detected, it is determined that the mark of the page where video player to be detected
It is inconsistent with the mark of the page where detection file.
Second determining module 50, judge to detect the video player place to be detected page by detecting file for working as
Mark with detection file where the page mark it is inconsistent when, determine that video player to be detected is stolen chain.
Preferably, robber's chain detection means for video player of the embodiment also includes:Second acquisition module, is used for
Server address corresponding to the page where obtaining detection file;Sending module, for being taken to corresponding to the page where detection file
Business device address sends a notification message, wherein, notification message is that server corresponding to the page where being used to notify detection file is to be checked
Survey the message that video player is stolen chain.
Preferably, robber's chain detection means for video player of the embodiment also includes:Second judge module, is used for
Judge whether to receive server transmission corresponding to the page as where detection file forbids broadcasting message, wherein, forbid playing
Message is the message for forbidding video player to be detected to play video that server corresponding to the page as where detection file is sent;
Detection module, for server corresponding to the page as where detection file to send forbids playing message when judge to receive
When, terminate to play video by detecting document control video player to be detected.
Robber's chain detection means for video player of the embodiment includes the first determining module 10, is embedded in module 20,
First acquisition module 30, the first judge module 40 and the second determining module 50.Video player is used for by the embodiment
Steal chain detection means and solve the problems, such as that prior art can not detect the video robber's chain phenomenon for stealing chain mode complexity.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored
Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific
Hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.