Video broadcasting method, browser and download tool
Technical field
The application is related to network technique field, more particularly to a kind of video broadcasting method, browser and download tool.
Background technology
At present, the data needed for video file to be played are downloaded to browser by browser when carrying out video playback
In caching, data are obtained from browser rs cache to carry out the broadcasting of video.But, because the download capabilities of browser are limited,
Speed of download is slow, and the data for often occurring being downloaded in caching can not meet the continuous demand for playing video.
In addition, the method played out after the existing this foradownloaded video by browser, when browser get with treating
When the corresponding URL mistakes of video file or download resource of broadcasting go wrong in itself, browser can not all be carried out effectively
Video playback.
It can be seen that, existing video broadcasting method, on the one hand, can not provide the user stream because browser speed of download is slow
Smooth video playback, and easily there is video download failure;On the other hand, browser should be undertaken under video file to be played
Load, the broadcasting for undertaking video to be played again, live load weight.
The content of the invention
In view of there is browser speed of download in above-mentioned existing video broadcasting method can not provide the user smoothness slowly
, easily there is video and downloads failure in video playback, and the problem of browser live load weight, it is proposed that the present invention is to provide one kind
Video broadcasting method, browser and the download tool for overcoming above mentioned problem or solving the above problems at least in part.
According to one aspect of the present invention there is provided a kind of method for carrying out video playback in a browser, including:When connecing
When receiving the instruction played online to video file to be downloaded, video text of the file to be downloaded for setting form is determined
Part;Browser information is sent to the download tool for downloading the video file to be downloaded, so that the download tool
Identified according to the browser information for the browser assignment, and according to the mark to the browser and the download work
Binding relationship between tool carries out validity judgement;When the judged result of the validity judgement is legal, then receives and treat
The corresponding URL of the video file downloaded, and the video file is played in the browser according to the URL.
Alternatively, described receive includes to the instruction that video file to be downloaded is played online:Under described treat
In the downloading process of the video file of load, the instruction played online to video file to be downloaded is received;Or, institute
State video file to be downloaded do not start download when, receive the instruction played online to video file to be downloaded;Or
Person, when receiving the download instruction of the video file to be downloaded, receives and video file to be downloaded is carried out online
The instruction of broadcasting;Wherein, the instruction played online is carried in the download instruction.
Alternatively, browser domain-name information is included in the browser information;It is described to send browser information to being used for
The download tool of the video file to be downloaded is downloaded, so that the download tool is described clear according to the browser information
Device allocation identification step of looking at includes:The browser information is sent to the download for downloading the video file to be downloaded
Instrument, so that the download tool is identified according to the browser domain-name information for the browser assignment;And/or, it is described clear
Device information of looking at includes the identity ID of browser;It is described to send browser information to for downloading described to be downloaded regard
The download tool of frequency file, so that the download tool is the browser assignment identification of steps bag according to the browser information
Include:The browser information is sent to the download tool for downloading the video file to be downloaded, so that described download
Instrument is identified according to the browser ID for the browser assignment.
Alternatively, described send browser information to the download tool for downloading the video file to be downloaded walks
Suddenly include:While download tool is called, the browser information is carried and sent in call instruction to for downloading institute
State the download tool of video file to be downloaded;Or, browsed in the acquisition for receiving the download tool transmission having been turned on
During device information request message, the browser information is carried in the response message of the acquisition browser information request, hair
Deliver to the download tool for downloading the video file to be downloaded.
Alternatively, the binding relationship between the browser and the download tool is as the download where the download tool
The browser assignment mark that tool server is sent according to the download tool carries out validity judgement;Or, it is described clear
It is legal that the binding relationship look between device and the download tool is carried out by the download tool according to browser assignment mark
Property judge.
Alternatively, the judged result when the validity judgement for it is legal when, then receive and described regarded with to be downloaded
The corresponding URL steps of frequency file include:When the judged result of the validity judgement is legal, then the download work is received
Have the URL corresponding with the video file to be downloaded that server is sent;Wherein, the URL takes for the download tool
Device be engaged in after judging that the binding relationship between the browser and the download tool is legal, according to the video text to be downloaded
The URL that the information of part is determined;Or, when the judged result of the validity judgement is legal, then receive the download tool
The URL corresponding with the video file to be downloaded sent;Wherein, the URL is that the download tool is judging described
After binding relationship between browser and the download tool is legal, determined according to the information of the video file to be downloaded
URL。
Alternatively, methods described also includes:If it is determined that the video file of file to be downloaded not for setting form, then browsing
Display reminding information in device.
Alternatively, the video file of the setting form includes:Extend entitled .rmvb .rm .wmv .mp4 .avi,
.mkv, the video file of .ts .asf .mpg .mov .3gp .mpeg .m4v .vob .flv .xv .f4v form.
According to another aspect of the present invention, present invention also offers a kind of video broadcasting method, including:Receive browser hair
The browser information sent, and identified according to the browser information for the browser assignment;According to the mark to downloading work
Binding relationship between tool and the browser carries out validity judgement;When the judged result of the validity judgement is legal
When, the corresponding URL of the video file to be downloaded that the browser is sent is sent to browser, so that described browse
Device plays the video file according to the URL in the browser.
Alternatively, browser domain-name information is included in the browser information;Receive the browser that the browser is sent
Information, and be that the browser assignment identification of steps includes according to the browser information:Receive the clear of the browser transmission
Look at device information, be browser assignment mark according to the browser domain-name information included in the browser information;With/
Or, the browser information includes the identity ID of browser;It is described to receive the browser information that the browser is sent,
And be that the browser assignment identification of steps includes according to the browser information:Receive the browser letter that the browser is sent
Breath, is identified according to the browser ID included in the browser information for the browser assignment.
Alternatively, the binding relationship between the download tool and the browser is locally being carried out by the download tool
Validity judgement;Or, the download tool by the browser assignment mark send to where the download tool under
Tool server is carried, validity judgement is carried out according to browser assignment mark by the download tool server.
Alternatively, the corresponding URL of the video file to be downloaded sent to browser is by the download work
Tool is locally carrying out lookup acquisition;Or, the corresponding URL of the video file to be downloaded sent to browser is
Sent after the download tool whois lookup to the URL of download tool.
Alternatively, the browser information is carried in the call instruction that the browser is sent, described to receive described clear
The browser information step that device of looking at is sent includes:The call instruction that the browser is sent is received, is obtained from the call instruction
Take the browser information;Or, the browser information carries the acquisition browser information request sent in the browser
Response message in, it is described to receive the browser information step that the browser sends and include:Sending acquisition browser information please
Ask message to the browser, the response message for obtaining browser information request that the browser is returned is received, from the sound
Answer and the browser information is obtained in message.
In accordance with a further aspect of the present invention there is provided a kind of browser, including:Command reception module, is treated for receiving
The instruction that the video file of download is played online;Determining module, for being received when the receiving module to be downloaded
During the instruction that video file is played online, video file of the file to be downloaded for setting form is determined;Sending module, is used for
Browser information is sent to the download tool for downloading the video file to be downloaded, so that the download tool foundation
The browser information is browser assignment mark, and according to the mark to the browser and the download tool it
Between binding relationship carry out validity judgement;URL receiving modules, are legal for the judged result when the validity judgement
When, then the URL corresponding with the video file to be downloaded is received, and institute is played in the browser according to the URL
State video file.
Alternatively, the command reception module, in the downloading process of the video file to be downloaded, receiving
The instruction played online to video file to be downloaded;Or, under not starting in the video file to be downloaded
During load, the instruction played online to video file to be downloaded is received;Or, for receive it is described to be downloaded
During the download instruction of video file, the instruction played online to video file to be downloaded is received;Wherein, it is described online
The instruction of broadcasting is carried in the download instruction.
Alternatively, when including browser domain-name information in the browser information, the sending module is used for will be described
Browser information is sent to the download tool for downloading the video file to be downloaded, so that the download tool is according to institute
Browser domain-name information is stated to identify for the browser assignment;And/or, when the browser information includes the identity of browser
When identifying ID, the sending module is used to send the browser information to for downloading the video file to be downloaded
Download tool, so that the download tool is identified according to the browser ID for the browser assignment.
Alternatively, the sending module includes:First sending module, for while download tool is called, by described in
Browser information carries the download tool sent in call instruction to being used to download the video file to be downloaded;Second hair
Module is sent, for when receiving the acquisition browser information request message that the download tool having been turned on is sent, by described in
Browser information carrying is sent to described to be downloaded for downloading in the response message of the acquisition browser information request
The download tool of video file.
Alternatively, the binding relationship between the browser and the download tool is as the download where the download tool
The browser assignment mark that tool server is sent according to the download tool carries out validity judgement;Or, it is described clear
It is legal that the binding relationship look between device and the download tool is carried out by the download tool according to browser assignment mark
Property judge.
Alternatively, the URL receiving modules, for when the judged result of the validity judgement is legal, receiving institute
State the URL corresponding with the video file to be downloaded of download tool server transmission;Wherein, under the URL is described
Tool server is carried after judging that the binding relationship between the browser and the download tool is legal, according to described to be downloaded
Video file information determine URL;Or, for when the judged result of the validity judgement is legal, receiving institute
State the URL corresponding with the video file to be downloaded of download tool transmission;Wherein, the URL is the download tool
After judging that the binding relationship between the browser and the download tool is legal, according to the video file to be downloaded
The URL that information is determined.
Alternatively, the browser also includes:Prompt message display module, for if it is determined that file to be downloaded is not setting
The video file of form, then display reminding information in a browser.
Alternatively, the video file of the setting form includes:Extend entitled .rmvb .rm .wmv .mp4 .avi,
.mkv, the video file of .ts .asf .mpg .mov .3gp .mpeg .m4v .vob .flv .xv .f4v form.
According to another aspect of the invention, a kind of download tool is additionally provided, including:Distribute module is identified, for receiving
The browser information that browser is sent, and identified according to the browser information for the browser assignment;Judge module, is used for
Validity judgement is carried out to the binding relationship between download tool and the browser according to the mark;URL sending modules, are used
In when the validity judgement judged result for it is legal when, the video file phase to be downloaded that the browser is sent
Corresponding URL is sent to browser, so that the browser plays the video text according to the URL in the browser
Part.
Alternatively, when including browser domain-name information in the browser information, the mark distribute module, for connecing
The browser information that the browser is sent is received, is institute according to the browser domain-name information included in the browser information
State browser assignment mark;And/or, when the browser information includes the identity ID of browser;The mark point
With module, for receiving the browser information that the browser is sent, according to browsing described in being included in the browser information
Device ID identifies for the browser assignment.
Alternatively, the binding relationship between the download tool and the browser is locally being carried out by the download tool
Validity judgement;Or, the download tool by the browser assignment mark send to where the download tool under
Tool server is carried, validity judgement is carried out according to browser assignment mark by the download tool server.
Alternatively, the corresponding URL of the video file to be downloaded sent to browser is by the download work
Tool is locally carrying out lookup acquisition;Or, the corresponding URL of the video file to be downloaded sent to browser is
Sent after the download tool whois lookup to the URL of download tool.
Alternatively, when the browser information is carried in the call instruction that the browser is sent, the mark point
With module, for receiving the call instruction that the browser is sent, the browser information is obtained from the call instruction, and
Identified according to the browser information for the browser assignment;Or, when the browser information is carried in the browser
When in the response message for obtaining browser information request of transmission, the mark distribute module, which is used to send, obtains browser information
Request message receives the response message for obtaining browser information request that the browser is returned to the browser, from described
The browser information is obtained in response message, and is identified according to the browser information for the browser assignment.
, it is necessary to fully rely on download and broadcasting that browser completes video file in existing video playback scheme, browse
The work load weight of device, also, failure is downloaded because the speed of download of browser is slow and video easily occurs, therefore can not be user
Smooth video playback is provided.And according to the video playback scheme of the present invention, browser is broadcast receiving online to video file
The instruction put simultaneously is determined after video file of the file to be downloaded for setting form, it is only necessary to send browser information to downloading work
Tool carries out further legitimate verification again after being identified distribution, and download tool transmission can be received after success to be verified
The URL (Uniform Resource Locator, URL) of video file to be downloaded, is being browsed according to URL
Playing video file in device, and the video file played is downloaded by download tool.It can be seen that, present invention offer is provided
Video playback scheme, the download of video file to be played is carried out by download tool, due to download tool have it is stronger
Download capabilities, and resource more horn of plenty is downloaded, therefore, browser can therefrom obtain more sufficient video file data, and under
Load instrument will not because of some download resource the problem of and cause video file to be downloaded not download so that browser energy
Enough to carry out smooth video playback, the video playback of smoothness can not be provided the user by solving existing video playback scheme, easily
There is the problem of video downloads failure.Also, the video playback scheme that the present invention is provided, due to carrying out waiting to broadcast by download tool
The download of video file is put there is provided the corresponding URL of video file to be downloaded, therefore, the work that can either reduce browser is born
Lotus can increase the acquisition channel of video file resource to be played again.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area
Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 is the step flow of a kind of according to embodiments of the present invention one method for carrying out video playback in a browser
Figure;
Fig. 2 is the step flow of a kind of according to embodiments of the present invention two method for carrying out video playback in a browser
Figure;
Fig. 3 is the step flow of a kind of according to embodiments of the present invention three method for carrying out video playback in a browser
Figure;
Fig. 4 is a kind of step flow chart of according to embodiments of the present invention four video broadcasting method;
Fig. 5 is a kind of step flow chart of according to embodiments of the present invention five video broadcasting method;
Fig. 6 is a kind of structured flowchart of according to embodiments of the present invention six browser;
Fig. 7 is a kind of structured flowchart of according to embodiments of the present invention seven browser;
Fig. 8 is a kind of structured flowchart of download tool according to embodiments of the present invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
Embodiment one
Reference picture 1, the step of showing a kind of method of video playback of progress in a browser of the embodiment of the present invention one
Flow chart.
The video broadcasting method of the present invention is illustrated from browser side in the present embodiment, in browser in the present embodiment
The middle method for carrying out video playback comprises the following steps:
Step S102:Browser is when receiving the instruction played online to video file to be downloaded, it is determined that treating
Download video file of the file for setting form.
In this step, user have selected after the video file for needing to download in a browser, be shown in the page of browser
There is the cue button for being directed to the video file.
Online play instruction is have sent to browser when user clicks on online broadcast button, browser is to text to be downloaded
Part enters the judgement of row format, and follow-up step is performed when judging video file of the file to be downloaded to set form.
It should be noted that when actually realizing, the setting that those skilled in the art can according to demand to video file
Form is set, and a kind of preferred setting means is:It will set what format setting was supported by browser video playback plug-in unit
Form.
Step S104:Browser sends browser information to the download tool for downloading video file to be downloaded,
So that download tool is identified according to browser information for browser assignment, and according to mark between browser and download tool
Binding relationship carries out validity judgement.
When download tool is that browser assignment is identified, distribution can be set according to the actual requirements by those skilled in the art former
Then, for example, it can be set to being:Domain-name information by the browser in browser information is its allocation identification, it is assumed that browser
Domain name is www.360.com, and download tool is that the browser assignment is designated www.360.com or is 360 etc..Certainly also
It can be allocated according to other distribution principles and flag principle, the application is not specifically limited to this.
Being stored with download tool server where download tool and/or download tool with download tool has legal tie up
Determine the mark of the browser of relation., can be by download tool and/or download tool server according to mark pair when actually realizing
The legitimacy of download tool and browser is judged.For example:Download tool for browser assignment after identifying, in download tool
Local side searches whether there is the mark, if in the presence of it is legal for can determine whether the binding relationship between browser and download tool
's.
Step S106:When the judged result of validity judgement is legal, browser is then received and video text to be downloaded
The corresponding URL of part, and according to URL playing video files in a browser.
When the judged result of validity judgement is legal, between browser and download tool or download tool server
Information exchange is carried out, for example:Download tool can provide video to be downloaded corresponding URL for browser.It should be noted that
Browser, which receives the URL corresponding with video file to be downloaded, can be sent by download tool and can also be taken by download tool
Business device is sent.
At the same time, download tool carries out the download of video to be downloaded, and the demand according to browser or instruction, under
The data of load are sent to browser, so that browser can successfully carry out video playback.
The method for carrying out video playback in a browser provided by the present embodiment, browser is being received to video text
Part line play instruction determine file to be downloaded for setting form video file after, it is only necessary to by browser information send to
Download tool carries out further legitimate verification again after being identified distribution, and download tool can be received after success to be verified
The URL of the video file to be downloaded sent, according to URL playing video files in a browser, and the video file played
It is then to be downloaded by download tool.It can be seen that, the method for carrying out video playback in a browser provided by the present embodiment, by
Download tool carries out the download of video file to be played, because download tool has stronger download capabilities, and downloads money
Source more horn of plenty, therefore, browser can therefrom obtain more sufficient video file data, and download tool will not be because of certain
It is individual download resource the problem of and cause video file to be downloaded not download so that browser can carry out smoothness video
Play, the video playback of smoothness can not be provided the user by solving existing video broadcasting method, video easily occur and download failure
The problem of.Also, the method for carrying out video playback in a browser that the present embodiment is provided, due to being treated by download tool
The download of playing video file is there is provided the corresponding URL of video file to be downloaded, therefore it is negative to reduce the work of browser
Lotus can increase the acquisition channel of video file resource to be played again.
Embodiment two
Reference picture 2, the step of showing a kind of method of video playback of progress in a browser of the embodiment of the present invention two
Flow chart.
Still the video broadcasting method of the present invention is illustrated from browser side in the present embodiment, clear in the present embodiment
Look in device and carry out the method for video playback and specifically include following steps:
Step S202:Browser is received to video text to be downloaded when video file to be downloaded does not start to download
The instruction that part is played online.
In the present embodiment, shown in the page of browser and be directed to the cue button of the video file and include:Download is pressed
Button, online broadcast button, and the quick botton for indicating to watch when downloading.User is by selecting different buttons to clear
Device of looking at sends the download instruction of corresponding function.Wherein, user can indicate that browser only treats foradownloaded video by download button
File is downloaded;User can indicate the only online playing video file of browser by online broadcast button, without to video
File enters to download;And user can indicate that browser also enters while downloading video files to video file by quick botton
Row is online to be played, i.e., the download and the transmission of online play instruction of video file are realized by a quick botton.The present embodiment
In, user clicks directly on online broadcast button and indicates that browser is played online to video file.
Video file to be downloaded is carried out it should be noted that browser can also be received under following any opportunitys
The instruction that line is played:
Browser receives and video file to be downloaded is carried out online in the downloading process of video file to be downloaded
The instruction of broadcasting.That is, user, which first clicks download button, indicates that browser is downloaded to video file, in video text
During part is downloaded, user again taps on online broadcast button and indicates that browser plays video online.
Or,
Browser receives and video file to be downloaded is entered when receiving the download instruction of video file to be downloaded
The instruction that row is played online;Wherein, the instruction played online is carried in download instruction.That is, user clicks directly on
Quick botton for indicating to watch when downloading indicates that browser carries out playing when downloading to video file.
Step S204:Browser judges whether file to be downloaded is the video file for setting form, if so, then performing step
S206;If it is not, then performing step S210.
The video file of setting form in the present embodiment includes:
Extend entitled .rmvb .rm .wmv .mp4 .avi .mkv .ts .asf .mpg .mov .3gp .mpeg,
.m4v, the video file of .vob .flv .xv .f4v form.Browser is judging that file format to be downloaded meets above-mentioned set
During fixed any form, then video file of the file to be downloaded as setting form is judged.
It should be noted that the setting of form is not limited to above-mentioned cited this several forms, those skilled in the art
Setting form can be set according to demand in actual mechanical process.
Step S206:When it is determined that file to be downloaded is the video file of setting form, browser is calling download tool
While, browser information is carried to the download tool sent in call instruction to being used to download video file to be downloaded,
So that download tool is identified according to browser information for browser assignment, and according to mark between browser and download tool
Binding relationship carries out validity judgement.
Browser is receiving the instruction played online to video file to be downloaded, determines file to be downloaded to set
After the video file for the formula that fixes, i.e., call instruction is sent to browser, while browser information is carried one in call instruction
And send to download tool.Wherein, browser domain-name information is included in browser information and/or the identity of browser is
ID。
Download tool is identified according to browser domain-name information and/or browser ID for browser assignment.
Extremely it is used for the download work for downloading video file to be downloaded except carrying to send browser information in call instruction
Outside the mode of tool, browser can also receive the acquisition browser information request message for the download tool transmission having been turned on
When, browser information is carried in the response message for obtaining browser information request, sending extremely is used to download to be downloaded regard
The download tool of frequency file.
But not limited to this, in actual applications, other appropriate ways are equally applicable, e.g., browser is using individually disappearing
Breath is instructed, and browser information is sent to the download tool for downloading video file to be downloaded.
In the present embodiment, the binding relationship between browser and download tool is by download tool server according to download tool
The browser assignment mark of transmission carries out validity judgement;Or, the binding relationship between browser and download tool is by downloading
Instrument carries out validity judgement according to browser assignment mark, and specific judgment mode is as follows:
The download tool that is stored with download tool has the mark of the browser of legal bind relation, sentences carrying out legitimacy
When breaking, download tool whether there is what is matched with the mark for browser assignment in the local browser mark for searching storage
Mark, if in the presence of, illustrate that download tool has legal bind relation with the browser, namely between browser and download tool
Binding relationship be legal.
The download tool that is also stored with download tool server has the mark of the browser of cooperative relationship, legal in progress
Property when judging, the legitimacy of the binding relationship between browser and download tool is carried out judging that flow is similar to download tool,
It will not be repeated here.
Step S208:When validity judgement judged result for it is legal when, browser receive download tool send with treating
The corresponding URL of the video file of download.
Wherein, URL be download tool after judging that the binding relationship between browser and download tool is legal, according to treating down
The URL that the information of the video file of load is determined.
In this step in addition to this modes of the corresponding URL of video file to be downloaded are sent by download tool, may be used also
To receive the URL corresponding with video file to be downloaded of download tool server transmission.
Wherein, the URL that download tool server is sent for download tool server judge browser and download tool it
Between binding relationship it is legal after, according to the information of video file to be downloaded determine URL.
It should be noted that download tool may be used also in addition to the browser of distribution mark is sent to download tool server
So that directly the binding relationship validity judgement result of browser and download tool is sent to download tool server, without under
Carry tool server and validity decision is carried out to the binding relationship of browser and download tool, download tool server is being received
When legitimacy is instructed, the corresponding URL of video file to be downloaded is provided to browser.Similarly, download tool can also be received down
The browser of tool server transmission and the binding relationship validity judgement result of download tool are carried, is legal in judged result
When, sent from the corresponding URL of file to be downloaded is locally obtained to browser.
In addition, download tool server be able to will be treated when the binding relationship for judging browser and download tool is legal
The corresponding URL of file of download is sent directly to download tool, and tying up for browser and download tool is carried out without download tool
Determine the judgement of relation legitimacy and URL acquisition, and download tool directly sends out the URL received from download tool server
Deliver to browser.Similarly, download tool server is same, without the binding relationship legitimacy to browser and download tool
Judge, directly receiving the corresponding URL of file to be downloaded from download tool sends to browser.
Step S210:If it is determined that when file to be downloaded is not for the video file of setting form, browser shows in a browser
Show prompt message.
Wherein, shown prompt message can be that format error prompt message or prompting are downloaded and installed with regarding
The plugin information for the player plug-in that the form of frequency file matches, selects corresponding plug-in unit to be downloaded installation for user.
When actually realizing, prompt message can be set as the information for user's download, the player plug-in installed, and this
A little player plug-ins are the player plug-ins that the download tool for having binding relationship with browser can be provided, and are more convenient under user
Carry.
The method for carrying out video playback in a browser provided by the present embodiment, browser is being received to video text
Part line play instruction determine file to be downloaded for setting form video file after, it is only necessary to by browser information send to
Download tool carries out further legitimate verification again after being identified distribution, and download tool can be received after success to be verified
The URL of the video file to be downloaded sent, according to URL playing video files in a browser, and the video file played
It is then to be downloaded by download tool.It can be seen that, the method for carrying out video playback in a browser provided by the present embodiment, by
Download tool carries out the download of video file to be played, because download tool has stronger download capabilities, and downloads money
Source more horn of plenty, therefore, browser can therefrom obtain more sufficient video file data, and download tool will not be because of some
Download resource the problem of and cause downloading video files not download so that browser can carry out smoothness video broadcast
Put, the video playback of smoothness can not be provided the user by solving existing video broadcasting method, video easily occur and download failure
Problem.Also, the method for carrying out video playback in a browser that the present embodiment is provided, due to carrying out waiting to broadcast by download tool
The download of video file is put there is provided the corresponding URL of video file to be downloaded, therefore the live load of browser can either be reduced
The acquisition channel of video file resource to be played can be increased again.In addition, the progress in a browser provided in the present embodiment
The method of video playback, when file to be downloaded is not for the video file of setting form, it is corresponding that browser also provides user
Player plug-in information is downloaded for user, user's playing video file of being more convenient for.
Embodiment three
Reference picture 4, the step of showing a kind of method of video playback of progress in a browser of the embodiment of the present invention three
Flow chart.
In the present embodiment by taking a sudden peal of thunder and 360 browsers as an example, still from video playback side of the browser side to the present invention
Method is illustrated, and the method for the video playback in the present embodiment specifically includes following steps:
Step S302:360 browsers receive the instruction of the download file of user's selection.
In the present embodiment, there is legal bind relation between 360 browsers and a sudden peal of thunder, that is to say, that a sudden peal of thunder browses for 360
Device provides video and watches interface online, and a sudden peal of thunder provides video file to be downloaded corresponding URL, browsed for 360 for 360 browsers
Device is played online, and the concrete form of interface is as follows:
http://vod.xunlei.com/share.htmlFrom=id&url=download_url&filename
=%s
Wherein, from=id, id are that ID is the mark that a sudden peal of thunder is 360 browser assignments, can be that numeral can also be word
Symbol string, can also be the digital combination with character string;Url=download_url, is that video file to be downloaded is corresponding
URL;Filename=%s, is the name of video file to be downloaded.
Step S304:360 browsers judge file to be downloaded whether be 360 browsers support video file format,
If so, then performing step S306.
Wherein, the video file format that 360 browsers are supported is such as:
Extend entitled .rmvb .rm .wmv .mp4 .avi .mkv .ts .asf .mpg .mov .3gp .mpeg,
.m4v, the video file of .vob .flv .xv .f4v form.
Step S306:360 browsers when judging video file format that file to be downloaded is supported for 360 browsers,
Open the corresponding URL of video file that the browser of confession 360 of sudden peal of thunder transmission is played online.
When 360 browsers judge the video file format that file to be downloaded is supported for 360 browsers, by 360 browsers
Information and the information of video file to be downloaded are sent to a sudden peal of thunder;A sudden peal of thunder judges in the ID to 360 browsers, and judges
After its is legal, the information for the video file to be downloaded that a sudden peal of thunder is sent according to 360 browsers, will from corresponding URL is locally searched
The corresponding URL of video file to be downloaded found is sent to 360 browsers;360 browsers receive download tool transmission
URL after, open the corresponding URL of video file that watches online and pass through video playback plug-in unit and carry out video playback.
The method for carrying out video playback in a browser provided by the present embodiment, 360 browsers are treated receiving
During the instruction that the video file of download is played online, due to there is legal bind between sudden peal of thunder download tool and 360 browsers
Relation, 360 browsers then can directly obtain the corresponding URL of file to be downloaded from a sudden peal of thunder, clear 360 according to the URL got
Look at playing video file in device.The video broadcasting method provided by the present embodiment, browser can be regarded directly for user
Frequency is played, the experience that user directly can watch online in browser completion, without downloading video files.It can be seen that, by this reality
The video broadcasting method of example offer is provided, the download of video file to be played is carried out by download tool, due to download tool tool
There are stronger download capabilities, and download resource more horn of plenty, therefore, browser can therefrom obtain more sufficient video file number
According to, and download tool will not because of some download resource the problem of and cause video file to be downloaded not download so that
Browser can carry out the video playback of smoothness, and the video of smoothness can not be provided the user by solving existing video broadcasting method
Play, the problem of video downloads failure easily occur.Also, the video broadcasting method that the present invention is provided, due to passing through download tool
The download of video file to be played is carried out there is provided the corresponding URL of video file to be downloaded, therefore, browser can either be reduced
Live load can increase the acquisition channel of video file resource to be played again.
Example IV
Reference picture 4, shows a kind of step flow chart of the method for video playback of the embodiment of the present invention four.
The video broadcasting method of the present invention is illustrated from download tool side in the present embodiment, the video in the present embodiment
Player method comprises the following steps:
Step S402:Download tool receives the browser information that browser is sent, and is browser according to browser information
Allocation identification.
When download tool is that browser assignment is identified, distribution can be set according to the actual requirements by those skilled in the art former
Then, for example, it can be set to being:Domain-name information by the browser in browser information is its allocation identification, it is assumed that browser
Domain name is www.360.com, and download tool is being designated www.360.com or being 360 for the browser assignment.Certainly may be used also
To be allocated according to other distribution principles and flag principle, for example:Pass through the browser ID in browser information
Identified for browser assignment, the application is not specifically limited to this.
Step S404:Download tool carries out legitimacy to the binding relationship between download tool and browser according to mark and sentenced
It is disconnected.
Be stored with the marks of all browsers for having binding relationship with download tool in download tool, download tool root
According to browser information for after the complete mark of browser assignment, whether there is in download tool local side searches the mark stored should
Mark, if in the presence of can determine whether the binding relationship between browser and download tool is that the two is present for legal also implying that
Legal bind relation.
It should be noted that when actually realizing, can also by download tool server to download tool and browser it
Between binding relationship carry out validity judgement.
Step S406:When validity judgement judged result for it is legal when, download tool by browser send it is to be downloaded
The corresponding URL of video file send to browser so that browser is according to URL playing video files in a browser.
It should be noted that the URL that download tool is sent can be that download tool is judging browser and download tool
Binding relationship it is legal when, by download tool from it is locally obtaining or by download tool server it is determined that browser
With the binding relationship of download tool it is legal after, obtain and be sent to download tool.
The video broadcasting method provided by this implementation, download tool is receiving the browser information of browser transmission
Afterwards, it is only necessary to browser information is sent and carries out further legitimate verification again after being identified distribution to download tool, is treated
The URL of video file to be downloaded is sent to browser after being proved to be successful, so that browser is played in a browser according to URL
Video file.Because the video broadcasting method that the present embodiment is provided can be under download tool be carried out to video file to be downloaded
Carry, then video playback is carried out in browser, therefore, it is possible to reduce the work load of browser, additionally it is possible to increase to be played regard
The acquisition channel of frequency file resource.In addition, the present embodiment provide video broadcasting method, due to download tool have it is stronger under
Loading capability, and resource more horn of plenty is downloaded, therefore, browser can therefrom obtain more sufficient video file data, and download
Instrument will not because of some download resource the problem of and cause video file to be downloaded not download so that browser can
Smooth video playback is carried out, the video playback of smoothness can not be provided the user by solving existing video broadcasting method, easily be gone out
The problem of existing video downloads failure.
Embodiment five
Reference picture 5, shows a kind of step flow chart of the method for video playback of the embodiment of the present invention five.
Still the video broadcasting method of the present invention is illustrated from download tool side in the present embodiment, in the present embodiment
Video broadcasting method specifically includes following steps:
Step S502:Download tool, which is sent, obtains browser information request message to browser.
Download tool sends to browser after the call instruction of browser transmission is received and obtains browser information request
Message.
Step S504:Download tool receives the response message for obtaining browser information request that browser is returned, from response
Browser information is obtained in message.
Wherein, the identity comprising browser domain-name information and/or browser in browser information is ID.
The acquisition of browser information by step S502 and step S504 in addition to being sent to download tool, people in the art
Browser information can also be carried in the call instruction that browser is sent, downloaded when being set to call instruction by member
Instrument directly obtains browser information by receiving the call instruction that browser is sent from call instruction.
Step S506:Download tool is identified according to the browser domain-name information included in browser information for browser assignment
And/or identified according to the browser ID included in browser information for browser assignment.
In actual implementation process, when only including browser domain-name information or browser ID in browser information, download
Instrument is that browser assignment is identified according to browser domain-name information or browser ID, when including browser in browser information simultaneously
Domain-name information and during browser ID, download tool can be browser assignment mark according to any information, can also be simultaneously with clear
It is foundation to look at device domain-name information and browser ID, is browser assignment mark, the application is not specifically limited to this.
Step S506:Download tool carries out legitimacy to the binding relationship between download tool and browser according to mark and sentenced
It is disconnected.
Binding relationship in this step between download tool and browser is locally carrying out validity judgement by download tool.
In addition, the binding relationship between download tool and browser can also be judged by download tool server, specific mistake
Cheng Wei:Download tool sends browser assignment mark to download tool server, is browsed by download tool server under
Device allocation identification carries out validity judgement.
Step S508:When validity judgement judged result for it is legal when, download tool by browser send it is to be downloaded
The corresponding URL of video file send to browser so that browser is according to URL playing video files in a browser.
Wherein, the URL that download tool is sent to browser is locally carrying out lookup acquisition by download tool, or by downloading
Tool server is sent to download tool after searching.
It should be noted that the corresponding URL of video file to be downloaded be not limited to only by download tool send to
Browser, can also be sent by download tool server to browser.A kind of feasible mode is:Download tool will be browser
The mark of distribution is sent to download tool server, and only the binding between download tool and browser is closed by download tool server
System carries out validity judgement, when judged result is legal, then URL corresponding with video file to be downloaded is obtained, by downloading
Tool server is sent directly to browser.Another feasible mode is:Download tool is directly by download tool and browser
Between the validity decision result of binding relationship send to download tool server, download tool server direct basis judges knot
Really, when result is legal, obtain URL corresponding with video file to be downloaded and simultaneously send to browser.It is also a kind of feasible
Mode be:Download tool directly sends the corresponding URL of video file to be downloaded to download tool server, by download work
Tool server is sent to browser.
The video broadcasting method provided by the present embodiment, download tool is receiving the browser information of browser transmission
Afterwards, it is only necessary to browser information is sent and carries out further legitimate verification again after being identified distribution to download tool, is treated
The URL of video file to be downloaded is sent to browser after being proved to be successful, so that browser is played in a browser according to URL
Video file.Because the video broadcasting method that the present embodiment is provided can be under download tool be carried out to video file to be downloaded
Carry, then video playback is carried out in browser, therefore, it is possible to reduce the work load of browser, additionally it is possible to increase to be played regard
The acquisition channel of frequency file resource.In addition, the present embodiment provide video broadcasting method, due to download tool have it is stronger under
Loading capability, while downloading resource more horn of plenty, therefore, browser can therefrom obtain more sufficient video file data, and under
Load instrument will not because of some download resource the problem of and cause video file to be downloaded not download so that browser energy
Enough to carry out smooth video playback, the video playback of smoothness can not be provided the user by solving existing video broadcasting method, easily
There is the problem of video downloads failure.
Embodiment six
Reference picture 6, shows a kind of structured flowchart of browser of the embodiment of the present invention six.
The browser of the present embodiment includes:Command reception module 602, is carried out for receiving to video file to be downloaded
The instruction that line is played;Determining module 604, for receiving what is played online to video file to be downloaded when receiving module
During instruction, video file of the file to be downloaded for setting form is determined;Sending module 606, for by browser information send to
The download tool of video file to be downloaded for downloading, so that download tool is browser assignment mark according to browser information
Know, and validity judgement is carried out to the binding relationship between browser and download tool according to mark;URL receiving modules 608, are used
In when validity judgement judged result for it is legal when, then receive the URL corresponding with video file to be downloaded, and according to
URL playing video files in a browser.
The browser provided by the present embodiment, browser receive the instruction to the online broadcasting of video file determine treat
Download after video file of the file for setting form, it is only necessary to browser information is sent to download tool and is identified after distribution
Further legitimate verification is carried out again, and the video file to be downloaded of download tool transmission can be received after success to be verified
URL, according to URL playing video files in a browser, and the video file played is downloaded by download tool.
It can be seen that, the browser provided by the present embodiment carries out the download of video file to be played by download tool, due to downloading
Instrument has stronger download capabilities, and downloads resource more horn of plenty, therefore, and browser can therefrom obtain more sufficient regard
Frequency file data, and download tool will not because of some download resource the problem of and cause video file to be downloaded not download,
So that browser can carry out the video playback of smoothness, stream can not be provided the user by solving existing video broadcasting method
, easily there is the problem of video downloads failure in smooth video playback.Also, the present embodiment provide in browser, due under
Load instrument carries out the download of video file to be played there is provided the corresponding URL of video file to be downloaded, therefore can either reduce clear
The live load of device look at can increase the acquisition channel of video file resource to be played again.
Embodiment seven
Reference picture 7, shows a kind of structured flowchart of browser of the embodiment of the present invention seven.
The present embodiment has carried out further optimization to the browser in embodiment six, and the browser after optimization includes:Instruction
Receiving module 702, for receiving the instruction played online to video file to be downloaded;Determining module 704, connects for working as
When receipts module receives the instruction played online to video file to be downloaded, it is setting form to determine file to be downloaded
Video file;Sending module 706, for browser information to be sent to the download work for downloading video file to be downloaded
Tool so that download tool is that browser assignment is identified according to browser information, and according to mark to browser and download tool it
Between binding relationship carry out validity judgement;URL receiving modules 708, for when validity judgement judged result for it is legal when,
Then receive the URL corresponding with video file to be downloaded, and according to URL playing video files in a browser.
Preferably, command reception module 702, in the downloading process of video file to be downloaded, receiving and treating
The instruction that the video file of download is played online;Or, for when video file to be downloaded does not start to download, receiving
To the instruction played online to video file to be downloaded;Or, in the case where receiving video file to be downloaded
When carrying instruction, the instruction played online to video file to be downloaded is received;Wherein, the instruction played online is carried
In download instruction.
Preferably, when including browser domain-name information in browser information, sending module 706 is used for browser information
Send to the download tool for being used to download video file to be downloaded, so that download tool is to browse according to browser domain-name information
Device allocation identification;And/or, when browser information includes the identity ID of browser, sending module 706 is used to browse
Device information is sent to the download tool for downloading video file to be downloaded, so that download tool is to browse according to browser ID
Device allocation identification.
Preferably, sending module includes:First sending module 7062, for while download tool is called, will browse
Device information carries the download tool sent in call instruction to being used to download video file to be downloaded;Second sending module
7064, for when receiving the acquisition browser information request message that the download tool having been turned on is sent, by browser information
Carry in the response message for obtaining browser information request, send to the download work for being used to download video file to be downloaded
Tool.
Preferably, the binding relationship between browser and download tool is as the download tool server root where download tool
The browser assignment mark sent according to download tool carries out validity judgement;Or, the binding between browser and download tool
Relation carries out validity judgement by download tool according to browser assignment mark.
Preferably, URL receiving modules 708, for when the judged result of validity judgement is legal, receiving download tool
The URL corresponding with video file to be downloaded that server is sent;Wherein, URL is that download tool server is judging to browse
After binding relationship between device and download tool is legal, the URL determined according to the information of video file to be downloaded;Or, use
In when the judged result of validity judgement is legal, the corresponding with video file to be downloaded of download tool transmission is received
URL;Wherein, after binding relationships of the URL for download tool between judgement browser and download tool is legal, according to be downloaded
The URL that the information of video file is determined.
Preferably, the browser in the present embodiment also includes:Prompt message display module 710, for if it is determined that to be downloaded
The video file of file for setting form, then display reminding information in a browser.
Preferably, the video file of setting form includes:Extend entitled .rmvb .rm .wmv .mp4 .avi .mkv,
.ts, the video file of .asf .mpg .mov .3gp .mpeg .m4v .vob .flv .xv .f4v form.
The browser of the present embodiment is used to realize corresponding clear in previous embodiment one, embodiment two and embodiment three
Look in device the method being downloaded, and the beneficial effect with corresponding embodiment of the method, will not be repeated here.
Embodiment eight
Reference picture 8, shows a kind of structured flowchart of download tool of the embodiment of the present invention eight.
Download tool in the present embodiment includes:Distribute module 802 is identified, the browser letter for receiving browser transmission
Breath, and identified according to browser information for browser assignment;Judge module 804, for according to mark to download tool with browsing
Binding relationship between device carries out validity judgement;URL sending modules 806, are conjunction for the judged result when validity judgement
During method, the corresponding URL of video file to be downloaded that browser is sent is sent to browser, so that browser is according to URL
Playing video file in a browser.
The download tool provided by the present embodiment, download tool receive browser transmission browser information after,
Only need to by browser information send to download tool be identified distribution after carry out further legitimate verification again, it is to be verified
The URL of video file to be downloaded is sent to browser after success, so that browser plays video in a browser according to URL
File.Because the download tool that the present embodiment is provided directly can be downloaded to video file to be downloaded, then by browser
Middle carry out video playback, therefore, it is possible to reduce the work load of browser, additionally it is possible to increase video file resource to be played
Obtain channel.In addition, the download tool that the present embodiment is provided has stronger download capabilities, while resource more horn of plenty is downloaded,
Therefore, browser can therefrom obtain more sufficient video file data, and download tool will not be because of some download resource
Problem and cause video file to be downloaded not download so that browser can carry out smoothness video playback, solve
Existing video playback scheme can not provide the user the video playback of smoothness, the problem of video downloads failure easily occur.
Embodiment nine
Referring again to Fig. 8, the present embodiment has carried out further optimization to the download tool in embodiment illustrated in fig. 8.Optimization
Download tool afterwards still includes:Distribute module 802 is identified, the browser information for receiving browser transmission, and according to clear
Device information of looking at identifies for browser assignment;Judge module 804, for according to mark to the binding between download tool and browser
Relation carries out validity judgement;URL sending modules 806, for when the judged result of validity judgement is legal, by browser
The URL that the video file to be downloaded of transmission is corresponding is sent to browser, so that browser is played in a browser according to URL
Video file.
From unlike embodiment illustrated in fig. 8, the present embodiment has carried out following optimization to the download tool in Fig. 8, including:
Preferably, when including browser domain-name information in browser information, distribute module 802 is identified, it is clear for receiving
The browser information that device of looking at is sent, is identified according to the browser domain-name information included in browser information for browser assignment;With/
Or, when browser information includes the identity ID of browser;Distribute module is identified, for receiving the clear of browser transmission
Look at device information, be browser assignment mark according to the browser ID included in browser information.
Preferably, the binding relationship between download tool and browser is locally carrying out validity judgement by download tool;
Or, download tool by browser assignment mark send to the download tool server where download tool, by download tool
Server carries out validity judgement according to lower browser assignment mark.
Preferably, the corresponding URL of the video file to be downloaded that is sent to browser is locally being carried out by download tool
Search and obtain;Or, after the corresponding URL of the video file to be downloaded that sends to browser is download tool whois lookup
Send to the URL of download tool.
Preferably, when browser information is carried in the call instruction that browser is sent, distribute module 802 is identified, is used
In receiving the call instruction that browser is sent, browser information is obtained from call instruction, and is to browse according to browser information
Device allocation identification;Or, when browser information is carried in the response message for obtaining browser information request that browser is sent
When, mark distribute module 802, which is used to send, obtains browser information request message to browser, receives the acquisition that browser is returned
The response message of browser information request, obtains browser information from response message, and is browser according to browser information
Allocation identification.
The download tool of the present embodiment is used to realize corresponding method for down loading in previous embodiment four, embodiment five, and
Beneficial effect with corresponding embodiment of the method, will not be repeated here.
For above-mentioned download apparatus embodiment, because it is substantially similar to embodiment of the method, so the comparison of description
Simply, related part illustrates referring to the part of corresponding embodiment of the method.
Each embodiment in this specification is described by the way of progressive, what each embodiment was stressed be with
Between the difference of other embodiment, each embodiment identical similar part mutually referring to.
Provided herein video playback scheme not with the intrinsic phase of any certain computer, virtual system or miscellaneous equipment
Close.Various general-purpose systems can also be used together with based on teaching in this.As described above, construction has present invention side
Structure required by the system of case is obvious.In addition, the present invention is not also directed to any certain programmed language.Should be bright
In vain, it is possible to use various programming languages realize the content of invention described herein, that and language-specific is done above retouches
State be in order to disclose the present invention preferred forms.
In the specification that this place is provided, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, exist
Above in the description of the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect
The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as right
As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool
Thus claims of body embodiment are expressly incorporated in the embodiment, wherein the conduct of each claim in itself
The separate embodiments of the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit is required, summary and accompanying drawing) disclosed in each feature can or similar purpose identical, equivalent by offer alternative features come generation
Replace.
Although in addition, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of be the same as Example does not mean in of the invention
Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any
Mode it can use in any combination.
The present invention all parts embodiment can be realized with hardware, or with one or more processor run
Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor (DSP) come realize in video playback scheme according to embodiments of the present invention some or
The some or all functions of person's whole part.The present invention is also implemented as perform method as described herein one
Divide or whole equipment or program of device (for example, computer program and computer program product).It is such to realize this hair
Bright program can be stored on a computer-readable medium, or can have the form of one or more signal.It is such
Signal can be downloaded from internet website and obtained, and either provided or provided in any other form on carrier signal.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of some different elements and coming real by means of properly programmed computer
It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
The embodiment of the invention discloses A1, a kind of method for carrying out video playback in a browser, including:When receiving pair
During the instruction that video file to be downloaded is played online, video file of the file to be downloaded for setting form is determined;Will be clear
Device information of looking at is sent to the download tool for downloading the video file to be downloaded, so that the download tool is according to described
Browser information identifies for the browser assignment, and according to the mark between the browser and the download tool
Binding relationship carries out validity judgement;When the judged result of the validity judgement is legal, then receive and institute to be downloaded
The corresponding URL of video file is stated, and the video file is played in the browser according to the URL.
A2, the method according to A1, wherein, it is described to receive the finger played online to video file to be downloaded
Order includes:In the downloading process of the video file to be downloaded, receive and video file to be downloaded is broadcast online
The instruction put;Or, when the video file to be downloaded does not start to download, receive to video file progress to be downloaded
The instruction played online;Or, when receiving the download instruction of the video file to be downloaded, receive to be downloaded
The instruction that video file is played online;Wherein, the instruction played online is carried in the download instruction.
A3, the method according to A1 or A2, wherein, browser domain-name information is included in the browser information;It is described
Browser information is sent to the download tool for downloading the video file to be downloaded, so that the download tool foundation
The browser information is that the browser assignment identification of steps includes:The browser information is sent to described for downloading
The download tool of video file to be downloaded, so that the download tool is the browser according to the browser domain-name information
Allocation identification;And/or, the browser information includes the identity ID of browser;It is described by browser information send to
Download tool for downloading the video file to be downloaded, so that the download tool is institute according to the browser information
Stating browser assignment identification of steps includes:The browser information is sent to for downloading the video file to be downloaded
Download tool, so that the download tool is identified according to the browser ID for the browser assignment.
A4, the method according to A3, wherein, it is described to send browser information to for downloading described to be downloaded regard
The download tool step of frequency file includes:While download tool is called, the browser information is carried in call instruction
Middle transmission is extremely used for the download tool for downloading the video file to be downloaded;Or, receiving the download that has been turned on
During the acquisition browser information request message that instrument is sent, the browser information is carried please in the acquisition browser information
In the response message asked, send to the download tool for being used to download the video file to be downloaded.
A5, the method according to A1, wherein, the binding relationship between the browser and the download tool is by described
It is legal that the browser assignment mark that download tool server where download tool is sent according to the download tool is carried out
Property judge;Or, the binding relationship between the browser and the download tool is browsed by the download tool according to
Device allocation identification carries out validity judgement.
A6, the method according to A5, wherein, it is described when the judged result of the validity judgement is legal, then connect
Receiving the URL step corresponding with the video file to be downloaded includes:When the judged result of the validity judgement is legal
When, then receive the URL corresponding with the video file to be downloaded that the download tool server is sent;Wherein, it is described
After binding relationships of the URL for the download tool server between the judgement browser and the download tool is legal, root
The URL determined according to the information of the video file to be downloaded;Or, when the judged result of the validity judgement is legal
When, then receive the URL corresponding with the video file to be downloaded that the download tool is sent;Wherein, the URL is institute
Download tool is stated after judging that the binding relationship between the browser and the download tool is legal, according to described to be downloaded
The URL that the information of video file is determined.
A7, the method according to A1, wherein, methods described also includes:If it is determined that file to be downloaded is not setting form
Video file, then display reminding information in a browser.
A8, the method according to A1, wherein, the video file of the setting form includes:Extend entitled .rmvb,
.rm、.wmv、.mp4、.avi、.mkv、.ts、.asf、.mpg、.mov、.3gp、.mpeg、.m4v、.vob、.flv、.xv、.f4v
The video file of form.
The embodiment of the invention also discloses B9, a kind of video broadcasting method, including:Receive the browser letter that browser is sent
Breath, and identified according to the browser information for the browser assignment;Download tool is browsed with described according to the mark
Binding relationship between device carries out validity judgement;When the judged result of the validity judgement is legal, browsed described
The URL that the video file to be downloaded of device transmission is corresponding is sent to browser, so that the browser is according to the URL
The video file is played in the browser.
B10, the method according to B9, wherein, browser domain-name information is included in the browser information;Receive described
The browser information that browser is sent, and be that the browser assignment identification of steps includes according to the browser information:Receive
The browser information that the browser is sent, is described according to the browser domain-name information included in the browser information
Browser assignment is identified;And/or, the browser information includes the identity ID of browser;Browsed described in the reception
The browser information that device is sent, and be that the browser assignment identification of steps includes according to the browser information:Receive described
The browser information that browser is sent, is the browser assignment according to the browser ID included in the browser information
Mark.
B11, the method according to B9 or B10, wherein, the binding relationship between the download tool and the browser
Validity judgement is locally being carried out by the download tool;Or, the browser assignment is identified and sent by the download tool
Extremely with the download tool server where the download tool, by the download tool server according to the browser assignment mark
Know and carry out validity judgement.
B12, the method according to B11, wherein, the video file to be downloaded sent to browser is relative
The URL answered is locally carrying out lookup acquisition by the download tool;Or, it is described to browser send it is to be downloaded described in regard
The corresponding URL of frequency file be the download tool whois lookup after send to the URL of download tool.
B13, the method according to B2, wherein, the browser information carries and calls finger what the browser was sent
In order, the browser information step for receiving the browser transmission includes:The call instruction that the browser is sent is received,
The browser information is obtained from the call instruction;Or, the browser information carries what is sent in the browser
In the response message for obtaining browser information request, the browser information step for receiving the browser transmission includes:Hair
Send acquisition browser information request message to the browser, receive the acquisition browser information request that the browser is returned
Response message, obtains the browser information from the response message.
The embodiment of the invention also discloses C14, a kind of browser, including:Command reception module, for receiving to be downloaded
The instruction played online of video file;Determining module, for being received when the receiving module to video to be downloaded
During the instruction that file is played online, video file of the file to be downloaded for setting form is determined;Sending module, for will be clear
Device information of looking at is sent to the download tool for downloading the video file to be downloaded, so that the download tool is according to described
Browser information identifies for the browser assignment, and according to the mark between the browser and the download tool
Binding relationship carries out validity judgement;URL receiving modules, for when the validity judgement judged result for it is legal when, then
The URL corresponding with the video file to be downloaded is received, and the video is played in the browser according to the URL
File.
C15, the browser according to C14, wherein, the command reception module, in the video to be downloaded
In the downloading process of file, the instruction played online to video file to be downloaded is received;Or, for being treated described
When the video file of download does not start to download, the instruction played online to video file to be downloaded is received;Or, use
When the download instruction of the video file to be downloaded is being received, receive and video file to be downloaded is broadcast online
The instruction put;Wherein, the instruction played online is carried in the download instruction.
C16, the browser according to C14 or C15, wherein, believe when including browser domain name in the browser information
During breath, the sending module is used to send the browser information to the download for downloading the video file to be downloaded
Instrument, so that the download tool is identified according to the browser domain-name information for the browser assignment;And/or, when described
When browser information includes the identity ID of browser, the sending module is used to send the browser information to use
In the download tool for downloading the video file to be downloaded, so that the download tool is described clear according to the browser ID
Look at device allocation identification.
C17, the browser according to C16, wherein, the sending module includes:First sending module, for calling
While download tool, the browser information is carried and sent in call instruction to for downloading the video to be downloaded
The download tool of file;Second sending module, for receiving the acquisition browser that the download tool having been turned on is sent
During information request message, the browser information is carried in the response message of the acquisition browser information request, sent
To the download tool for being used to download the video file to be downloaded.
C18, the browser according to C14, wherein, binding relationship between the browser and the download tool by
The browser assignment that download tool server where the download tool is sent according to the download tool, which is identified, to be carried out
Validity judgement;Or, the binding relationship between the browser and the download tool is by the download tool according to described
Browser assignment mark carries out validity judgement.
C19, the browser according to C18, wherein, the URL receiving modules, for sentencing when the validity judgement
When disconnected result is legal, the URL corresponding with the video file to be downloaded that the download tool server is sent is received;
Wherein, the URL is that the download tool server is judging the binding relationship between the browser and the download tool
After legal, the URL determined according to the information of the video file to be downloaded;Or, for sentencing when the validity judgement
When disconnected result is legal, the URL corresponding with the video file to be downloaded that the download tool is sent is received;Wherein,
After binding relationships of the URL for the download tool between the judgement browser and the download tool is legal, according to
The URL that the information of the video file to be downloaded is determined.
C20, the browser according to C14, wherein, the browser also includes:Prompt message display module, if for
The video file for determining file to be downloaded for setting form, then display reminding information in a browser.
C21, the browser according to C14, wherein, the video file of the setting form includes:Extension is entitled
.rmvb、.rm、.wmv、.mp4、.avi、.mkv、.ts、.asf、.mpg、.mov、.3gp、.mpeg、.m4v、.vob、.flv、
.xv, the video file of .f4v forms.
The embodiment of the invention also discloses D22, a kind of download tool, including:Distribute module is identified, for receiving browser
The browser information of transmission, and identified according to the browser information for the browser assignment;Judge module, for according to institute
State mark and validity judgement is carried out to the binding relationship between download tool and the browser;URL sending modules, for working as
When the judged result for stating validity judgement is legal, the video file to be downloaded that the browser is sent is corresponding
URL is sent to browser, so that the browser plays the video file according to the URL in the browser.
D23, the download tool according to D22, wherein, when in the browser information include browser domain-name information
When, the mark distribute module, for receiving the browser information that the browser is sent, is wrapped according in the browser information
The browser domain-name information contained identifies for the browser assignment;And/or, when the browser information includes browser
Identity ID when;The mark distribute module, for receiving the browser information that the browser is sent, according to described clear
The browser ID included that lookes in device information is browser assignment mark.
D24, the download tool according to D22 or D23, wherein, tying up between the download tool and the browser
Determine relation and validity judgement is locally being carried out by the download tool;Or, the download tool is by the browser assignment mark
Know send to the download tool server where the download tool, by the download tool server according to the browser
Allocation identification carries out validity judgement.
D25, the download tool according to D24, wherein, the video file to be downloaded sent to browser
Corresponding URL is locally carrying out lookup acquisition by the download tool;Or, the institute to be downloaded sent to browser
Video file corresponding URL is stated to send to the URL of download tool after the download tool whois lookup.
D26, the download tool according to D22, wherein, when the browser information carries what is sent in the browser
When in call instruction, the mark distribute module, for receiving the call instruction that the browser is sent, from the call instruction
It is middle to obtain the browser information, and identified according to the browser information for the browser assignment;Or, browsed when described
When device information is carried in the response message for obtaining browser information request that the browser is sent, the mark distribute module
Browser information request message is obtained to the browser for sending, and receives the acquisition browser information that the browser is returned
The response message of request, obtains the browser information from the response message, and is described according to the browser information
Browser assignment is identified.