Summary of the invention
In view of this, the application's technical problem to be solved has been to provide the method and system of the anti-shielding of a kind of video impression information, the problem that cannot avoid user terminal to shield the impression information in video display process to solve video server provider.
In order to solve the problems of the technologies described above, the application discloses the method for the anti-shielding of a kind of video impression information, comprising:
In player end, send after video playback request, the video stream data that intercepting video server feeds back, and obtain the impression information of throwing in server;
Described impression information is arranged to the time location of appointment in described video stream data;
Described impression information is carried out to Data Fusion, the transformat of this impression information is mated to described video data stream, generate data splitting stream;
Described data splitting stream is sent to player end to be play.
Preferably, wherein, described impression information is arranged to the time location of appointment in described video stream data, is further:
Obtain the header file of the described impression information in described input server, extract the first identifier in described header file, this first place identifier is inserted into the time location of appointment in described video stream data.
Preferably, wherein, also comprise: according to described the first identifier, from described input server, download the described impression information corresponding with this first place identifier, and the described impression information integral body of downloading is inserted into the time location place at described the first identifier place.
Preferably, wherein, this first place identifier is inserted into the time location of appointment in described video stream data, is further:
Described the first identifier is inserted between two picture frames of appointment in the flow queue that the picture frame by video forms, described picture frame is corresponding to the time location of described video stream data.
Preferably, wherein, the described impression information integral body of downloading is inserted into the time location place at described the first identifier place, is further:
The described impression information that the flow queue mode of download is transmitted, the described the first indications of usining is sequentially arranged in the time location place at described the first identifier place according to described flow queue mode as initial position.
In order to solve the problems of the technologies described above, disclosed herein as well is the system of the anti-shielding of a kind of video impression information, this system comprises: acquiring unit, time location unit, data splitting stream unit and transmission unit, wherein,
Described acquiring unit, for sending after video playback request in player end, the video stream data that intercepting video server feeds back, and obtain the impression information of throwing in server;
Described time location unit, for being arranged at described impression information the time location of described video stream data appointment;
Described data splitting stream unit, for described impression information is carried out to Data Fusion, mates described video data stream by the transformat of this impression information, generates data splitting stream;
Described transmission unit, plays for described data splitting stream is sent to player end.
Preferably, wherein, described time location unit, is further used for obtaining the header file of the described impression information in described input server, extract the first identifier in described header file, this first place identifier is inserted into the time location of appointment in described video stream data.
Preferably, wherein, described time location unit, also for:
According to described the first identifier, from described input server, download the described impression information corresponding with this first place identifier, and the described impression information integral body of downloading is inserted into the time location place at described the first identifier place.
Preferably, wherein, described time location unit, is further used for described the first identifier to be inserted between two picture frames of appointment in the flow queue that the picture frame by video forms, and described picture frame is corresponding to the time location of described video stream data.
Preferably, wherein, described time location unit, is further used for described impression information that the flow queue mode of download is transmitted, and the described the first indications of usining is sequentially arranged in the time location place at described the first identifier place according to described flow queue mode as initial position.
Compared with prior art, the method and system of the anti-shielding of a kind of video impression information described in the application, has reached following effect:
The application is blended in impression information in video stream data, form unified transfer of data to player end with this video stream data, thus, the URL of impression information will be no longer corresponding to corresponding impression information server, but consistent with the URL of video stream data, the instrument that runs on player end can not shield this impression information by the mode of shielding URL or DNS, thereby prevented the shielding to impression information, efficiently solved the problem that video server provider cannot avoid user terminal to shield the impression information in video display process.
Certainly, arbitrary product of enforcement the application must not necessarily need to reach above-described all technique effects simultaneously.
Embodiment
As used some vocabulary in the middle of specification and claim, censure specific components.Those skilled in the art should understand, and hardware manufacturer may be called same assembly with different nouns.This specification and claims are not used as distinguishing the mode of assembly with the difference of title, but the difference in function is used as the criterion of distinguishing with assembly.If " comprising " mentioned in the middle of specification and claim is in the whole text an open language, therefore should be construed to " comprise but be not limited to "." roughly " refer to that in receivable error range, those skilled in the art can solve the technical problem within the scope of certain error, reach described technique effect substantially.In addition, " couple " word and comprise directly any and electric property coupling means indirectly at this.Therefore, if describe a first device in literary composition, be coupled to one second device, represent that described first device can directly be electrically coupled to described the second device, or be indirectly electrically coupled to described the second device by other devices or the means that couple.Specification subsequent descriptions is for implementing the application's better embodiment, and right described description is to illustrate that the application's rule is object, not in order to limit the application's scope.The application's protection range is when being as the criterion depending on the claims person of defining.
Embodiment mono-
As shown in Figure 1, be the method for the anti-shielding of a kind of video impression information described in the embodiment of the present application one, the method comprises:
Step 101, sends after video playback request in player end, the video stream data that intercepting video server feeds back, and obtain the impression information of throwing in server.
Player end in the present embodiment is exactly the player operating in user terminal, as: webpage player, there is the video software of networking playing function etc., described user terminal can be: the mobile terminals such as terminal and mobile phone, panel computer, after user uses the server of video provider corresponding to terminal access (as: access is to certain video website), can select to play to video file wherein, user terminal can send video playback request to this video server.
At user terminal, to video server, send after video playback request, video server, by searching video file and transmit in the mode of flow data from its database, forms video stream data and feeds back to user terminal.In this video stream data, include video information and transmission information that should video file, wherein, video information comprises: the reproduction time of video, code stream, population size etc., transmission information comprises: URL, transmit port, ask the DNS information etc. of the user terminal of this video stream data.
And for impression information, by partner services, business provides, at user terminal, get after video stream data, video server sends a notification message to corresponding impression information server, thereby impression information server is sent to user terminal by corresponding impression information, shows.
Due to impression information from video stream data from different servers, so its URL or DNS are not identical yet, so, when player end receives after this video stream data, just can be from transmission information wherein URL, the DNS of this video stream data, run on the instrument of player end and then this URL or DNS are locked, causing the shielding to impression information.So in above-mentioned steps 101, intercepted this video stream data before video stream data transfers to player end, obtain the impression information that corresponding impression information server sends simultaneously.
Step 102, is arranged at described impression information the time location of appointment in described video stream data.
Impression information is conventionally before video playback, in broadcasting or after finishing, show, in the present embodiment, impression information can be play displaying by the random time point in video, here it should be noted that, video file sends from video server in the mode of flow data, the video stream data intercepting in its transmitting procedure can be realized by the equipment with memory function, as: server, Hub(is many, and service request is unified transponder) etc., the said equipment all carries out the setting of impression information after receiver, video flow data again, but when receiving video stream data, obtain the impression information of throwing in server, then in video stream data, searching corresponding time location arranges impression information.
In one case, video server can be after receiving the video playback request of player end transmission, directly from impression information server, obtain impression information, and in this video server, the impression information of obtaining is arranged on the random time position of the corresponding video file of this video playback request.In actual applications, impression information is arranged in video and is not limited on the said equipment or video server, also can after user terminal receives video stream data and impression information, arrange, then send to player to play, not form the restriction to the application.
Step 103, carries out Data Fusion to described impression information, and the transformat of this impression information is mated to described video data stream, generates data splitting stream.
Impression information adopts the mode of short-sighted frequency or image to show conventionally, even for image mode, in its displaying process, also will continue for some time, so, the transformat (for single image mode, it can regard the flow data consisting of a plurality of same picture frames as) that just impression information can be regarded as to a kind of flow data, so, in above-mentioned steps 103, impression information is carried out to Data Fusion, be that the flow data integral body of impression information is inserted in video stream data.Impression information and video stream data, by forming unified data, have generated data splitting stream.
Step 104, is sent to player end by described data splitting stream and plays.
In the data splitting stream generating, include impression information and video stream data, but, impression information in data splitting stream does not re-use URL or the relevant information of impression information server, but URL or the DNS of use video stream data, be that impression information " embedding " is to video stream data, become a part for this video data stream, player end is after receiving data splitting stream, to play data splitting stream, and impression information is as a part for video stream data, to follow this video stream data plays, because impression information now no longer contains URL or the relevant information of impression information server, so can not be run on the instrument of player end shields.
By the above-mentioned steps of the present embodiment, impression information is blended in video stream data, form unified transfer of data to player end with this video stream data, thus, the URL of impression information will be no longer corresponding to corresponding impression information server, but consistent with the URL of video stream data, the instrument that runs on player end can not shield this impression information by the mode of shielding URL or DNS, thereby effectively prevent the shielding to impression information.
Embodiment bis-
As shown in Figure 2, be the method for the anti-shielding of a kind of video impression information described in the embodiment of the present application two, the method comprises:
Step 201, monitors the transmission state of the video file in video player, when player end sends video playback request and video server and feeds back corresponding video file, intercepts this video file and transmits formed video stream data.
Step 202 is obtained the header file of the impression information corresponding with this video stream data from impression information server according to the video stream data being truncated to.
Step 203, extracts the first identifier in the described header file of described impression information, this first place identifier is inserted into the time location of appointment in described video stream data.
Preferably, the time location that the first identifier inserts is all time locations in seconds, as: the first identifier is inserted in to 0 second position (being illustrated in before video playback) of video stream data, 10 seconds positions, 100 seconds positions etc.
It should be noted that, video consists of according to the order of video content a plurality of picture frames, when video playback, comprises a plurality of picture frames each second, as: the video content of playing in 1 second consists of 24 picture frames, and 24 time spans corresponding to picture frame are 1 second.Thereby, the time location that the first identifier inserts also can be weighed by the quantity of picture frame, the set time location of the first identifier of impression information, specifically in video stream data, take 24 positions that picture frame is multiple: the first identifier is arranged between the 48th picture frame and the 49th picture frame, just represents impression information will be inserted when the 2nd second of this video; The first identifier is arranged between the 2400th picture frame and the 2401st picture frame, just represents to insert impression information when the 100th second of this video.
Step 204 according to described the first identifier, is downloaded the described impression information corresponding with this first place identifier from impression information server, and the described impression information integral body of downloading is inserted into the time location place at described the first identifier place.
Due to what obtain from impression information server, it is the header file of corresponding impression information, and incomplete impression information, so, after the time location setting at the first identifier place completes, just according to this first place identifier, from impression information server, download complete impression information, and the impression information after download is completed be take this first place identifier and is inserted in this video stream data as initial position integral body.
Step 205, impression information is complete be inserted into video stream data in after, generate data splitting stream and be sent to player end and play.
In the present embodiment, will repeat above-mentioned steps 201 to 205, until described video stream data finishes completely.
Embodiment tri-
Below in conjunction with Fig. 3 and 4, the concrete application of the method for the anti-shielding of described video impression information is elaborated:
As shown in Figure 3, when user wants to watch certain video in player end, to video server, send screen playing request, video server is after receiving this video playback request, transfer corresponding video file and be sent to player end with the form of data flow, its transmitting procedure is that the mode of the different images frame formation flow queue of video file is sent, the i.e. form of the square frame-shaped queue in Fig. 3, meanwhile, according to video file, from impression information server, obtain the first identifier of corresponding impression information, there is relevance in video file and impression information in the present embodiment, can be video server provider and the corresponding associated setting of partner services business, be that video file will be corresponding to a certain impression information or corresponding to a plurality of impression information, certainly also can from impression information server, obtain at random impression information in actual applications.
The corresponding time of each picture frame in Fig. 3 is 1 second, now need to arrange the initial time that impression information is shown, as impression information being arranged on to the 4th second of video playback time, so just obtain the first identifier of a certain impression information from impression information server, and this first place identifier is inserted between the 4th picture frame and the 5th picture frame in video stream data, represent that this impression information will start after 4 seconds in video playback to show.
After setting the time location of the first identifier, corresponding complete impression information will be downloaded according to this first place identifier in impression information server, impression information in the present embodiment is also to transmit in the mode of data flow, after impression information after described download is inserted in its first identifier according to the mode shown in Fig. 4, be exactly that the 4th frame of original video stream data and the 5th frame are separated, when player plays, when being played to the 4th frame (namely the 4th second time) of video, to play and show this impression information, after only having this impression information of wait to show, recover again the broadcasting of the 5th frame of video.
In the present embodiment, in order to prevent that the instrument that operates in player end from shielding impression information, so shown in Fig. 4, to being inserted into the impression information of the picture frame of video, carry out Data Fusion, make this impression information meet the transformat of video stream data completely, thereby the data splitting stream of formation is sent to after player end, video file is as a whole play, prevented the Screen theory based on URL, DNS etc.
Embodiment tetra-
As shown in Figure 5, system for the anti-shielding of a kind of video impression information described in the embodiment of the present application four, be arranged at player end, video server and throw between server, this system comprises: acquiring unit 501, time location unit 502, data splitting stream unit 503 and transmission unit 504, wherein
Described acquiring unit 501, couple mutually with described video server, input server and time location unit 502 respectively, for sending after video playback request in player end, the video stream data that intercepting video server feeds back, and obtain the impression information of throwing in server.
Described time location unit 502, couples with described input server, acquiring unit 501 and data splitting stream unit 503 respectively, mutually for described impression information being arranged to the time location of described video stream data appointment.
Described data splitting stream unit 503, couples mutually with described time location unit 502 and transmission unit 504 respectively, for described data splitting stream is sent to player end, plays.
In the present embodiment, at user terminal, to video server, send after video playback request, video server, by searching video file and transmit in the mode of flow data from its database, forms video stream data and feeds back to user terminal.In this video stream data, include video information and transmission information that should video file, wherein, video information comprises: the reproduction time of video, code stream, population size etc., transmission information comprises: URL, transmit port, ask the DNS information etc. of the user terminal of this video stream data.And for impression information, by partner services, business provides, at user terminal, get after video stream data, video server sends a notification message to corresponding impression information server, thereby impression information server is sent to user terminal by corresponding impression information, shows.Due to impression information from video stream data from different servers, so its URL or DNS are not identical yet, so, when player end receives after this video stream data, just can be from transmission information wherein URL, the DNS of this video stream data, run on the instrument of player end and then this URL or DNS are locked, causing the shielding to impression information.
Impression information adopts the mode of short-sighted frequency or image to show conventionally, even for image mode, in its displaying process, also will continue for some time, so, just the transformat that impression information can be regarded as to a kind of flow data is (for single image mode, it can regard the flow data consisting of a plurality of same picture frames as), system in the present embodiment is carried out set of time after can't all receiving impression information again, so time location unit 502, specifically for obtaining the header file of the described impression information in described input server, extract the first identifier in described header file, this first place identifier is inserted into the time location of appointment in described video stream data.Its inserted mode is according to described the first identifier, from described input server, to download the described impression information corresponding with this first place identifier, and the described impression information integral body of downloading is inserted into the time location place at described the first identifier place.
In addition, time location unit 502, in the flow queue forming specifically for the picture frame described the first identifier being inserted into by video between two picture frames of appointment, described picture frame is corresponding to the time location of described video stream data, and, the described impression information of downloading is transmitted in the mode of flow queue, and time location unit 502 is sequentially arranged in the time location place at described the first identifier place by usining described the first indications according to described flow queue mode as initial position.
Because method part have been described in detail the embodiment of the present application, here the expansion of the System and method for corresponding part relating in embodiment is described and omitted, repeat no more.The reference method embodiment of content can to(for) the description of particular content in system, no longer specifically limits here.
Compared with prior art, the method and system of the anti-shielding of a kind of video impression information described in the application, has reached following effect:
The application is blended in impression information in video stream data, form unified transfer of data to player end with this video stream data, thus, the URL of impression information will be no longer corresponding to corresponding impression information server, but consistent with the URL of video stream data, the instrument that runs on player end can not shield this impression information by the mode of shielding URL or DNS, thereby prevented the shielding to impression information, efficiently solved the problem that video server provider cannot avoid user terminal to shield the impression information in video display process.
Also it should be noted that, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, commodity or the system that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, commodity or system.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, commodity or the system that comprises described key element and also have other identical element.
The embodiment that it will be understood by those skilled in the art that the application can be provided as method, system or computer program.Therefore, the application can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.And the application can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code one or more.
The embodiment that the foregoing is only the application, is not limited to the application.To those skilled in the art, the application can have various modifications and variations.Any modification of doing within all spirit in the application and principle, be equal to replacement, improvement etc., within all should being included in the application's claim scope.