A kind of method, system and browser for showing video title
Technical field
The present invention relates to communication technical field, more particularly to a kind of method, system and browser for showing video title.
Background technology
Different terminals, and there is some difference for the broadcasting application software that can support of different browsers, such as in hand
Carry in the terminals such as computer and desktop computer, the broadcasting application software that browser is supported is usually flash plug-in units, and is set in mobile terminal
Standby upper, the broadcasting application software that browser is supported is usually html5 video playback standards.
In the prior art, showing the method for video title includes:Before server sends heading message to browser, according to hair
The relevant information of the browser of heading message request is sent to determine the broadcasting application software that the browser is supported;Server is according to determination
The broadcasting application software supported of browser heading message is converted into the video title information that browser can identify, will determine
Video title information send to browser, browser video title according to corresponding to being shown the video title information received.
In the method for above-mentioned display video title, server not only it needs to be determined that browser need heading message, and
Need according to the relevant information of the browser of acquisition judge browser support broadcasting application software, and according to browser support
Play application software and the heading message is converted into the video title information that browser can identify, server needs letter to be processed
Cease it is larger, processing pressure increase, occupy substantial amounts of server resource, cause the processing speed of server to reduce.
The content of the invention
The embodiment of the present invention provides a kind of method, system and browser for showing video title, to solve in the prior art
Server judges the broadcasting application software of browser support according to the relevant information of the browser of acquisition, and the heading message is turned
The video title information that browser can identify is changed to, server needs information to be processed larger, processing pressure increase, occupies
Substantial amounts of server resource, cause server processing speed reduce the problem of.
The embodiments of the invention provide a kind of method for showing video title, this method includes:
The text document with heading message that browser the reception server is sent;
Browser determines the broadcasting application software that itself is supported, the heading message in text document is converted into broadcasting application
The video title that software can identify;
Browser shows the video title by playing application software.
Server sends identical heading message in above-described embodiment, and browser is according to the broadcasting itself supported using soft
Part, the heading message received is converted to the video title that can identify of broadcasting application software of browser itself support;By
Only need to send unified heading message in server, browser itself judges the broadcasting application software that can be supported, avoided
The situation for the broadcasting application software that processor erroneous judgement browser is supported occurs, and reduces processor need information to be processed
Quantity, it is not necessary to take the broadcasting application software that processor resource determines browser, improve the processing speed of processor.
Further, the broadcasting application software that the browser itself is supported includes:The browser supports flash to insert
Part;
Heading message in text document is converted into the video title that plays application software and can identify, specific bag
Include:The browser supports flash plug-in units, then contains embedded video player in the browser;The heading message is turned
It is changed to the video parameter that the embedded video player can identify.
The video title is shown by playing application software, is specifically included:According to the video parameter described embedded
Display video title in video player region.
In above-described embodiment when browser supports flash plug-in units, containing embedded video player in browser, by title
Information is converted to the video parameter that embedded video player can identify, is shown according to video parameter in embedded video player region
Show video title;After browser determines the broadcasting application software that itself is supported, heading message is converted into what itself can be identified
Video title, reduce the processing pressure of server;And video title is shown in embedded video player region, is saved
The interface resources that video title takes.
Further, the broadcasting application software that browser described in the embodiment of the present invention itself is supported includes:It is described to browse
Device supports html5 video playback standards;
Heading message in text document is converted into the video title that plays application software and can identify, specific bag
Include:The browser supports html5 video playback standards, and the heading message is converted to the header section of html5 text documents
The content of point.
It is described to show the video title by playing application software, specifically include:New title is added in a browser
Node, by the copy content of the title node of the html5 text documents into the new title node, in the new mark
The video title is shown in topic node.
Because the heading message received is the form of text document in above-described embodiment, when browser supports html5 to regard
During frequency playing standard, the content that the heading message is directly converted to the title node of html5 text documents just can be clear
Device of looking at identifies;Because browser determines the broadcasting application software of itself support, heading message is converted into what itself can be identified
Video title, reduce the processing pressure of server.
The embodiment of the present invention additionally provides a kind of browser for showing video title, and the browser includes:
Information receiving module, the text document with heading message sent for the reception server;
Info conversion module, for the broadcasting application software for determining itself to support, the title in the text document is believed
Breath is converted to the video title that the broadcasting application software can identify;
Information display module, for showing the video title by the broadcasting application software.
Server sends identical heading message in above-described embodiment, and browser is according to the broadcasting itself supported using soft
Part, the heading message received is converted to the video title that can identify of broadcasting application software of browser itself support;By
Only need to send unified heading message in server, browser itself judges the broadcasting application software that can be supported, avoided
The situation for the broadcasting application software that processor erroneous judgement browser is supported occurs, and reduces processor need information to be processed
Quantity, it is not necessary to take the broadcasting application software that processor resource determines browser, improve the processing speed of processor.
Further, the broadcasting application software that the browser itself is supported includes:The browser supports flash to insert
Part, and contain embedded video player;Described information modular converter is specifically used for:Determine that itself supports flash plug-in units, by described in
Heading message is converted to the video parameter that the embedded video player can identify.
Described information display module is specifically used for:Shown according to the video parameter in the embedded video player region
Show video title.
In above-described embodiment when it is determined that itself supports flash plug-in units, containing embedded video player in browser, it will mark
Topic information is converted to the video parameter that embedded video player can identify, according to video parameter in embedded video player region
Show video title;After browser determines the broadcasting application software that itself is supported, heading message is converted into itself to identify
Video title, reduce the processing pressure of server;And video title is shown in embedded video player region, is saved
The interface resources that video title takes.
Further, the broadcasting application software that browser described in the embodiment of the present invention itself is supported includes:It is described to browse
Device supports html5 video playback standards;Described information modular converter is specifically used for:Determine that itself supports html5 video playback marks
Standard, the heading message is converted to the content of the title node of html5 text documents.
Described information display module is specifically used for:New title node is added, by the header section of the html5 text documents
The copy content of point shows the video title into the new title node in the new title node.
Because the heading message received is the form of text document in above-described embodiment, when browser supports html5 to regard
During frequency playing standard, the content that the heading message is directly converted to the title node of html5 text documents just can be clear
Device of looking at identifies;Because browser determines the broadcasting application software of itself support, heading message is converted into what itself can be identified
Video title, reduce the processing pressure of server.
The embodiment of the present invention additionally provides a kind of system for showing video title, and the system includes:
Server, for receiving the heading message request of browser transmission, mark will be carried according to heading message request
The text document of topic information is sent to browser;
In the embodiment of the present invention it is a kind of show video title browser in it is any as described in browser.
The text document with heading message that browser the reception server is sent in the embodiment of the present invention;Browser determines
The broadcasting application software that itself is supported, the heading message in text document is converted to the video mark that plays application software and can identify
Topic;Browser shows the video title by playing application software;Because server only sends heading message, browser according to
The broadcasting application software that itself is supported, heading message is converted to the heading message that plays application software and can identify, reduced
The information processing capacity and processing pressure of server, release server resource, improve the processing speed of server.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet for the method for showing video title in the embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet for the specific method for showing video title in the embodiment of the present invention;
Fig. 3 is a kind of schematic diagram for the browser for showing video title in the embodiment of the present invention;
Fig. 4 is a kind of schematic diagram for the system for showing video title in the embodiment of the present invention.
Embodiment
The embodiments of the invention provide a kind of method, system and browser for showing video title, because server is only sent out
Heading message is sent, browser determines the broadcasting application software that itself is supported, heading message is converted into broadcasting application software can
The heading message of identification, the information processing capacity and processing pressure of server are reduced, releases server resource, improves clothes
The processing speed of business device.
The embodiment of the present invention is further described with reference to Figure of description.
As shown in figure 1, include for a kind of method for showing video title, this method in the embodiment of the present invention:
Step 101:The text document with heading message that browser the reception server is sent;
Step 102:Browser determines the broadcasting application software that itself is supported, the heading message in text document is converted to
Play the video title that application software can identify;
Step 103:Browser shows video title by playing application software.
It is preferred that include before step 101:Browser to server send video title solicited message, server according to
Heading message corresponding to the video title solicited message determination received, and heading message is added into the mark in html text documents
Inscribe in node, the text document with heading message is sent to browser.It is placed in the embodiment of the present invention with heading message
Exemplified by text document, other modes for carrying heading message are also applied for the present invention.
In step 101, browser receives the text document with heading message, can just be searched engine acquisition and receive
Heading message, and then optimize the search result of the associative key of the heading message.
Browser determines that itself supports flash plug-in units still to support html5 video playback standards in step 102;If browse
Device determines that itself supports flash plug-in units, then contains embedded video player in browser;Heading message is converted into embedded video
The video parameter that player can identify;If browser supports html5 video playback standards, heading message is converted into html5
The content of the title node of text document.
In step 103, browser shows video title by playing application software, specifically includes:When browser is supported
During flash plug-in units, browser shows video title according to video parameter in the embedded video player region of browser, and hidden
Hide or delete and show former video title node;When browser supports html5 video playback standards, add in a browser newly
Title node, by the copy content of the title node of html5 text documents into new title node, in new title node
The video title is shown, and hides or deletes former video title node.
Server determines what browser can identify according to heading message, and the relevant information of browser in the prior art
Video title code corresponding to heading message, video title code is sent to browser, browser and regarded according to by what is received
Frequency code conversion is the content in the video title node of browser, and video title is included into the embedded video playback in browser
The top in device region or the top of the play area of browser.When browser window is smaller, in fact it could happen that the video of browser is broadcast
The situation that the page is extruded browser window is put, causes video playing quality to decline.And when browser is supported in the embodiment of the present invention
During flash plug-in units, obtain video title and be shown in the embedded video player region of browser, when browser supports html5
During video playback standard, obtain video title and be shown in the play area of browser, hide or delete in former browser
Video title node, the interface display resource of video title occupancy is saved, increase the interface display money of video playback window
Source.
If browser neither supports flash plug-in units nor supports html5 video playback standards, browser determines to know
The not heading message, " information errors " are shown in the video playback area of browser, and show installation plug-in unit or more new system
Prompt message.
It is preferred that the embodiment of the present invention can also include:If video title is shown in the play area of browser always,
Situations such as blocking video is likely to result in, therefore after video title display setting time length, hides video title;Or setting
In time span, browser does not operate in video playback area, hides video title.
As shown in Fig. 2 include for a kind of specific method for showing video title, this method in the embodiment of the present invention:
Step 201:The text document with heading message that browser the reception server is sent;
Step 202:Browser judges whether itself supports flash plug-in units, if supporting, performs step 203, otherwise performs
Step 206;
Step 203:Browser determines the type of the embedded video player itself contained;
Step 204:Browser is converted to heading message the video parameter that embedded video player can identify;
Step 205:Browser shows video title according to video parameter in the embedded video player region of browser,
And terminate this flow;
Step 206:Browser judges itself whether support html5 video playback standards, if supporting, performs step 207,
Otherwise step 210 is performed;
Step 207:Browser is converted to heading message the content of the title node of html5 text documents;
Step 208:Browser adds new title node, by the copy content of the title node of html5 text documents extremely
In new title node;
Step 209:Browser shows video title in new title node, and terminates this flow;
Step 210:Browser shows " information errors " in video playback area, prompts installation plug-in unit or more new system,
And terminate this flow.
Based on same inventive concept, a kind of browser for showing video title is additionally provided in the embodiment of the present invention, due to
The principle that the browser solves problem is similar to a kind of method of display video title of the embodiment of the present invention, therefore the browser
Implementation may refer to the implementation of method, repeats part and repeats no more.
As shown in figure 3, connect for a kind of browser for showing video title, the browser in the embodiment of the present invention including information
Receive module 301, info conversion module 302, information display module 303:
Information receiving module 301, the text document with heading message sent for the reception server;
Info conversion module 302, for the broadcasting application software for determining itself to support, by the heading message in text document
Be converted to and play the video title that application software can identify;
Information display module 303, for showing video title by playing application software.
Wherein in information receiving module 301, the text document with heading message is received, can just be searched engine acquisition
The heading message received, and then optimize the search result of the associative key of the heading message.
Info conversion module 302 is used to determine that itself supports flash plug-in units still to support html5 video playback standards;If
Determine that itself supports flash plug-in units, then contain embedded video player in browser;Heading message is converted into embedded video to broadcast
Put the video parameter that device can identify;If supporting html5 video playback standards, heading message is converted into html5 text documents
Title node content.
Information display module 303 is specifically used for:When supporting flash plug-in units, according to video parameter in the embedded of browser
Display video title in video player region, and hide or delete the video title node for showing former video title;Work as support
During html5 video playback standards, new title node is added in a browser, by the title node of html5 text documents
Appearance is copied in new title node, and the video title is shown in new title node, and is hidden or deleted former video mark
Inscribe node.
Information display module 303 is additionally operable to:If neither supporting flash plug-in units nor supporting html5 video playback standards,
The None- identified heading message is determined, shows " information errors " in the video playback area of browser, and show installation plug-in unit
Or the prompt message of more new system.
It is preferred that also including information hiding module in the embodiment of the present invention, setting time length is shown for video title
Afterwards, video title is hidden;Or in setting time length, browser does not operate in video playback area, video title is hidden.
As shown in figure 4, include server 401 for a kind of system for showing video title, the system in the embodiment of the present invention,
And such as the described browser 402 in above-mentioned embodiment:
Server 401, for receiving the heading message request of browser transmission, title will be carried according to heading message request
The text document of information is sent to browser;
In the embodiment of the present invention it is a kind of show video title browser in it is any as described in browser 402.
, please according to the video title received after wherein server 401 receives the heading message request of browser transmission
Heading message corresponding to determination is sought, by heading message addition in the title node of html text documents, heading message will be carried
Text document send to browser.In the embodiment of the present invention so that heading message is placed in text document as an example, other carryings
The mode of heading message is also applied for the present invention.
Browser 402 is specifically used for, the text document with heading message that the reception server is sent;Determine that itself is supported
Broadcasting application software, the heading message in text document is converted to and plays the video title that can identify of application software;Pass through
Play application software and show video title
Browser 402 is used to determine that itself supports flash plug-in units still to support html5 video playback standards;If it is determined that from
Body supports flash plug-in units, then contains embedded video player in browser 402;Heading message is converted into embedded video playback
The video parameter that device can identify, video title is shown in the embedded video player region of browser according to video parameter, and
Hide or delete the video title node for showing former video title;If supporting html5 video playback standards, heading message is turned
It is changed to the content of the title node of html5 text documents.New title node is added in a browser, by html5 text documents
Title node copy content into new title node, the video title is shown in new title node, and hide
Or delete former video title node.
Browser 402 is additionally operable to, and is determined itself neither to support flash plug-in units nor is supported html5 video playback standards, then
The None- identified heading message is determined, shows " information errors " in the video playback area of browser, and show installation plug-in unit
Or the prompt message of more new system.
It is preferred that browser 402 can be also used for, after video title shows setting time length, video title is hidden;Or
In setting time length, browser does not operate in video playback area, hides video title.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more
Usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer program production of upper implementation
The form of product.
The present invention is with reference to method according to embodiments of the present invention, equipment(System)And the flow of computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.