Summary of the invention
The embodiment of the present invention provides a kind of method, system and browser of display video title, to solve the broadcasting application software that in prior art, server is supported according to the relevant information judgement browser of the browser obtaining, and this heading message is converted to the video title information that browser can be identified, server needs information to be processed larger, processing pressure increases, take a large amount of server resources, caused the problem of the processing speed reduction of server.
The embodiment of the present invention provides a kind of method of display video title, and the method comprises:
The text document with heading message that browser reception server sends;
Browser is determined the broadcasting application software that self supports, the heading message in text document is converted to and plays the video title that application software can be identified;
Browser shows described video title by playing application software.
In above-described embodiment, server sends identical heading message, and the broadcasting application software that browser is supported according to self is converted to by the heading message receiving the video title that broadcasting application software that browser self supports can be identified; Because server only need to send unified heading message, the broadcasting application software that browser self judgement can be supported, avoided the situation of the broadcasting application software of processor erroneous judgement browser support to occur, and reduced the quantity of processor need information to be processed, do not need to take the broadcasting application software that processor resource is determined browser, improved the processing speed of processor.
Further, the broadcasting application software that described browser self is supported comprises: described browser is supported flash plug-in unit;
Heading message in text document is converted to the video title that described broadcasting application software can be identified, specifically comprises: described browser is supported flash plug-in unit, and described browser contains embedded video player; Described heading message is converted to the video parameter that described embedded video player can be identified.
By playing application software, show described video title, specifically comprise: according to described video parameter display video title in described embedded video player region.
In above-described embodiment, when browser is supported flash plug-in unit, browser contains embedded video player, and heading message is converted to the video parameter that embedded video player can be identified, according to video parameter display video title in embedded video player region; Browser is determined after the broadcasting application software of self supporting, heading message is converted into the video title that self can identify, has reduced the processing pressure of server; And display video title in embedded video player region, has saved the interface resources that video title takies.
Further, the broadcasting application software that browser described in the embodiment of the present invention self is supported comprises: described browser is supported html5 video playback standard;
Heading message in text document is converted to the video title that described broadcasting application software can be identified, specifically comprises: described browser is supported html5 video playback standard, described heading message is converted to the content of the title node of html5 text document.
Describedly by playing application software, show described video title, specifically comprise: in browser, add new title node, the content of the title node of described html5 text document is copied in described new title node, in described new title node, shows described video title.
In above-described embodiment, due to the heading message receiving, be the form of text document, when browser is supported html5 video playback standard, the content that directly described heading message is converted to the title node of html5 text document just can be identified by viewed device; Because browser is determined the broadcasting application software that self supports, heading message is converted into the video title that self can identify, reduced the processing pressure of server.
The embodiment of the present invention also provides a kind of browser of display video title, and this browser comprises:
Information receiving module, the text document with heading message sending for reception server;
Information modular converter, the broadcasting application software for determining that self supports, is converted to by the heading message in described text document the video title that described broadcasting application software can be identified;
Information display module, for showing described video title by described broadcasting application software.
In above-described embodiment, server sends identical heading message, and the broadcasting application software that browser is supported according to self is converted to by the heading message receiving the video title that broadcasting application software that browser self supports can be identified; Because server only need to send unified heading message, the broadcasting application software that browser self judgement can be supported, avoided the situation of the broadcasting application software of processor erroneous judgement browser support to occur, and reduced the quantity of processor need information to be processed, do not need to take the broadcasting application software that processor resource is determined browser, improved the processing speed of processor.
Further, the broadcasting application software that described browser self is supported comprises: described browser is supported flash plug-in unit, and contains embedded video player; Described information modular converter specifically for: determine and self support flash plug-in unit, described heading message is converted to the video parameter that described embedded video player can be identified.
Described information display module specifically for: according to described video parameter display video title in described embedded video player region.
In above-described embodiment when determining that self supports flash plug-in unit, browser contains embedded video player, heading message is converted to the video parameter that embedded video player can be identified, according to video parameter display video title in embedded video player region; Browser is determined after the broadcasting application software of self supporting, heading message is converted into the video title that self can identify, has reduced the processing pressure of server; And display video title in embedded video player region, has saved the interface resources that video title takies.
Further, the broadcasting application software that browser described in the embodiment of the present invention self is supported comprises: described browser is supported html5 video playback standard; Described information modular converter specifically for: determine and self support html5 video playback standard, described heading message is converted to the content of the title node of html5 text document.
Described information display module specifically for: add new title node, the content of the title node of described html5 text document be copied in described new title node, in described new title node, show described video title.
In above-described embodiment, due to the heading message receiving, be the form of text document, when browser is supported html5 video playback standard, the content that directly described heading message is converted to the title node of html5 text document just can be identified by viewed device; Because browser is determined the broadcasting application software that self supports, heading message is converted into the video title that self can identify, reduced the processing pressure of server.
The embodiment of the present invention also provides a kind of system of display video title, and this system comprises:
Server, the heading message request sending for receiving browser, is sent to browser according to described heading message request by the text document with heading message;
Browser as described in arbitrary in the browser of a kind of display video title in the embodiment of the present invention.
The text document with heading message that in the embodiment of the present invention, browser reception server sends; Browser is determined the broadcasting application software that self supports, the heading message in text document is converted to and plays the video title that application software can be identified; Browser shows described video title by playing application software; Because server only sends heading message, the broadcasting application software that browser is supported according to self, heading message is converted to and plays the heading message that application software can be identified, information processing capacity and the processing pressure of server have been reduced, discharge server resource, improved the processing speed of server.
Embodiment
The embodiment of the present invention provides a kind of method, system and browser of display video title, because server only sends heading message, browser is determined the broadcasting application software that self supports, heading message is converted to and plays the heading message that application software can be identified, information processing capacity and the processing pressure of server have been reduced, discharge server resource, improved the processing speed of server.
Below in conjunction with Figure of description, the embodiment of the present invention is further described.
As shown in Figure 1, be the method for a kind of display video title in the embodiment of the present invention, the method comprises:
Step 101: the text document with heading message that browser reception server sends;
Step 102: browser is determined the broadcasting application software that self supports, is converted to the heading message in text document to play the video title that application software can be identified;
Step 103: browser is by playing application software display video title.
Preferably, before step 101, comprise: browser sends video title solicited message to server, server is determined corresponding heading message according to the video title solicited message receiving, and heading message is added in the title node of html text document, the text document with heading message is sent to browser.It is example that the heading message of take in the embodiment of the present invention is placed in text document, and other modes of carrying heading message are also applicable to the present invention.
In step 101, browser receives the text document with heading message, just can obtain the heading message receiving by searched engine, and then optimize the Search Results of the associative key of this heading message.
In step 102, browser is determined and self is supported flash plug-in unit still to support html5 video playback standard; If browser is determined, self support flash plug-in unit, browser contains embedded video player; Heading message is converted to the video parameter that embedded video player can be identified; If browser is supported html5 video playback standard, heading message is converted to the content of the title node of html5 text document.
In step 103, browser is by playing application software display video title, specifically comprise: when browser is supported flash plug-in unit, browser is according to video parameter display video title in the embedded video player region of browser, and the hiding or former video title node of deletion demonstration; When browser is supported html5 video playback standard, in browser, add new title node, the content of the title node of html5 text document is copied in new title node, in new title node, shows described video title, and hide or delete former video title node.
In prior art, server is according to heading message, and the relevant information of browser is determined video title code corresponding to heading message that browser can be identified, video title code is sent to browser, browser, according to the content video code receiving being converted in the video title node of browser, is presented at video title the top of embedded video player region of browser or the top of the play area of browser.When browsing window hour, may occur that the video playback page of browser is extruded the situation of browsing window, cause video playing quality to decline.And in the embodiment of the present invention when browser is supported flash plug-in unit, obtaining video title is presented in the embedded video player region of browser, when browser is supported html5 video playback standard, obtaining video title is presented in the play area of browser, hide or deleted the video title node in former browser, save the interface display resource that video title takies, increased the interface display resource of video playback window.
If browser neither supports flash plug-in unit also not support html5 video playback standard, browser is determined this heading message of None-identified, shows " information errors ", and show the information that plug-in unit or the system of renewal are installed in the video playback region of browser.
Preferably, the embodiment of the present invention can also comprise: if video title is presented in the play area of browser always, may cause situations such as blocking video, so after video title display setting time span, hide video title; Or in setting-up time length, in browser video playback region, not operation, hides video title.
As shown in Figure 2, be the concrete grammar of a kind of display video title in the embodiment of the present invention, the method comprises:
Step 201: the text document with heading message that browser reception server sends;
Step 202: browser judges whether self supports flash plug-in unit, if support, performs step 203, otherwise performs step 206;
Step 203: browser is determined the type of the embedded video player self containing;
Step 204: browser is converted to by heading message the video parameter that embedded video player can be identified;
Step 205: browser is according to video parameter display video title in the embedded video player region of browser, and process ends;
Step 206: browser judges self whether to support html5 video playback standard, if support, performs step 207, otherwise performs step 210;
Step 207: browser is converted to heading message the content of the title node of html5 text document;
Step 208: browser adds new title node, is copied to the content of the title node of html5 text document in new title node;
Step 209: browser is display video title in new title node, and process ends;
Step 210: browser shows " information errors " in video playback region, plug-in unit or renewal system are installed in prompting, and process ends.
Based on same inventive concept, a kind of browser of display video title is also provided in the embodiment of the present invention, because the principle that this browser is dealt with problems is similar to the method for a kind of display video title of the embodiment of the present invention, therefore the enforcement of this browser can, referring to the enforcement of method, repeat part and repeat no more.
As shown in Figure 3, be the browser of a kind of display video title in the embodiment of the present invention, this browser comprises information receiving module 301, information modular converter 302, information display module 303:
Information receiving module 301, the text document with heading message sending for reception server;
Information modular converter 302, for the broadcasting application software of determining that self supports, is converted to the heading message in text document to play the video title that application software can be identified;
Information display module 303, for passing through to play application software display video title.
Wherein, in information receiving module 301, receive the text document with heading message, just can obtain the heading message receiving by searched engine, and then optimize the Search Results of the associative key of this heading message.
Information modular converter 302 self supports flash plug-in unit still to support html5 video playback standard for determining; If determine and self support flash plug-in unit, browser contains embedded video player; Heading message is converted to the video parameter that embedded video player can be identified; If support html5 video playback standard, heading message is converted to the content of the title node of html5 text document.
Information display module 303 specifically for: when supporting flash plug-in unit, according to video parameter display video title in the embedded video player region of browser, and hide or delete the video title node that shows former video title; When supporting html5 video playback standard, in browser, add new title node, the content of the title node of html5 text document is copied in new title node, in new title node, shows described video title, and hide or delete former video title node.
Information display module 303 also for: if neither support flash plug-in unit also not support html5 video playback standard, determine this heading message of None-identified, in the video playback region of browser, show " information errors ", and show the information that plug-in unit or the system of renewal are installed.
Preferably, in the embodiment of the present invention, also comprise information hiding module, after video title display setting time span, hide video title; Or in setting-up time length, in browser video playback region, not operation, hides video title.
As shown in Figure 4, be the system of a kind of display video title in the embodiment of the present invention, this system comprises server 401, and, as the browser 402 as described in above-described embodiment:
Server 401, the heading message request sending for receiving browser, is sent to browser according to heading message request by the text document with heading message;
Browser 402 as described in arbitrary in the browser of a kind of display video title in the embodiment of the present invention.
Wherein server 401 receives after the heading message request of browser transmission, according to the video title request receiving, determine corresponding heading message, heading message is added in the title node of html text document, the text document with heading message is sent to browser.It is example that the heading message of take in the embodiment of the present invention is placed in text document, and other modes of carrying heading message are also applicable to the present invention.
The text document with heading message that browser 402 sends specifically for, reception server; Determine the broadcasting application software that self supports, the heading message in text document is converted to and plays the video title that application software can be identified; By playing application software display video title
Browser 402 self supports flash plug-in unit still to support html5 video playback standard for determining; If determine and self support flash plug-in unit, browser 402 contains embedded video player; Heading message is converted to the video parameter that embedded video player can be identified, according to video parameter display video title in the embedded video player region of browser, and video title node hiding or the former video title of deletion demonstration; If support html5 video playback standard, heading message is converted to the content of the title node of html5 text document.In browser, add new title node, the content of the title node of html5 text document is copied in new title node, in new title node, show described video title, and hide or delete former video title node.
Browser 402 also for, determine and self neither support flash plug-in unit also not support html5 video playback standard, determine this heading message of None-identified, in the video playback region of browser, show " information errors ", and show the information that plug-in unit or the system of renewal are installed.
Preferably, browser 402 can also be for, after video title display setting time span, hides video title; Or in setting-up time length, in browser video playback region, not operation, hides video title.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code one or more.
The present invention is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be in computer program instructions realization flow figure and/or block diagram each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction of carrying out by the processor of computer or other programmable data processing device is produced for realizing the device in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame on computer or other programmable devices.
Although described the preferred embodiments of the present invention, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.