Embodiment
The below describes embodiments of the invention in detail, and the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or the element with identical or similar functions from start to finish.Be exemplary below by the embodiment that is described with reference to the drawings, only be used for explaining the present invention, and can not be interpreted as limitation of the present invention.On the contrary, embodiments of the invention comprise spirit and interior all changes, modification and the equivalent of intension scope that falls into additional claims.
In description of the invention, it will be appreciated that, term " first ", " second " etc. only are used for describing purpose, and can not be interpreted as indication or hint relative importance.In description of the invention, need to prove, unless clear and definite regulation and restriction are arranged in addition, term " links to each other ", " connection " should do broad understanding, for example, can be to be fixedly connected with, and also can be to removably connect, or connects integratedly; Can be mechanical connection, also can be to be electrically connected; Can be directly to link to each other, also can indirectly link to each other by intermediary.For the ordinary skill in the art, can concrete condition understand above-mentioned term concrete meaning in the present invention.In addition, in description of the invention, except as otherwise noted, the implication of " a plurality of " is two or more.
Describe and to be understood in the flow chart or in this any process of otherwise describing or method, expression comprises module, fragment or the part of code of the executable instruction of the step that one or more is used to realize specific logical function or process, and the scope of preferred implementation of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by opposite order, carry out function, this should be understood by the embodiments of the invention person of ordinary skill in the field.
Need to prove, embodiments of the invention preferably are applicable to mobile device, for example, the mobile device of IOS operating system (IOS is the handheld equipment operating system by Apple's exploitation), Android operating system (the Android system is a kind of based on the freedom of Linux and the operating system of open source code), Windows Phone operating system (Windows Phone is the Mobile phone operating system of Microsoft's issue), certainly also be applicable to personal computer and other Intelligent mobile equipments, the present invention is not construed as limiting this.
Below with reference to the video broadcasting method, device, system and the portable terminal that are used for browser of mobile terminal of accompanying drawing description according to the embodiment of the invention.
Fig. 1 is the flow chart that is used for according to an embodiment of the invention the video broadcasting method of browser of mobile terminal.As shown in Figure 1, this video broadcasting method may further comprise the steps.
S101, browser obtain user's video playback request instruction.
In one embodiment of the invention, browser may operate in the portable terminal, and wherein, portable terminal can be the hardware device that smart mobile phone, panel computer, personal digital assistant etc. have video playback capability.Particularly, when the user wishes to play certain video, can be by clicking the video link in the webpage of the browser display in portable terminal, clicking operation input video playing request instructions such as playing button.
S102, browser obtain the address information of the corresponding page of video playback request instruction according to the video playback request instruction.
In one embodiment of the invention, address information can be URL(Uniform Resource Locator, URL(uniform resource locator)), domain name etc.Particularly, browser can obtain according to the video playback request instruction URL information of current page (being the corresponding video page of playing request instruction).In other embodiments of the invention, browser also can analyze to extract to URL information domain name, path, required parameter of current page etc.
S103, browser adjust the UA(User Agent of browser, user agent according to address above mentioned information) parameter.
In one embodiment of the invention, when the current UA parameter of browser and address above mentioned information were not mated, browser can be adjusted according to the address information of the page UA parameter of browser self.For example, if the URL information of browser current web page is http://www.vv.tv/info, then can be UA parameter corresponding to http://www.vv.tv/info with the UA parameter adjustment of browser.In another embodiment of the present invention, also can extract first the domain name vv.tv among the URL information http://www.vv.tv/info of current web page, then the UA parameter adjustment with browser is UA parameter corresponding to vv.tv.
S104, browser will be sent to server according to the video playback request message of video playback request instruction and the generation of UA parameter, be suitable for the video that browser is play so that server returns according to the UA parameter.
In one embodiment of the invention, be suitable for video that browser plays and can be video based on open source protocol, as by HTML(Hypertext Markup Language, HTML) video<video in 5〉video etc. of label definition.Particularly, after server (for example server of video website) receives the video playback request message of browser transmission, at first obtain the UA parameter in the video playback request message, then according to getting access to such an extent that the UA parameter is selected the video source based on open source protocol suitable with this UA parameter, be back to browser and play.In one embodiment of the invention, open source protocol is HTML5Video tag etc., and closed agreement is Flashvideo etc.
The video broadcasting method that is used for browser of mobile terminal according to the embodiment of the invention, can adjust according to the address information of the page corresponding with user's video playback request instruction the UA parameter of browser, thereby so that can returning according to the UA parameter after adjusting, server is suitable for the video that browser is play, and then improve video response speed, improve user's experience.
Fig. 2 is the flow chart that is used in accordance with another embodiment of the present invention the video broadcasting method of browser of mobile terminal.In this embodiment, browser can be inquired about the UA parameter corresponding with affiliated address information according to the address information of the corresponding page of video playback request instruction in UA parameter rule storehouse, and then is UA parameter corresponding to address information with the UA parameter adjustment of browser.Particularly, as shown in Figure 2, this video broadcasting method may further comprise the steps.
S201, browser obtain user's video playback request instruction.
S202, browser obtain the address information of the corresponding page of video playback request instruction according to the video playback request instruction.
S203, browser according to address information inquiry UA parameter rule storehouse to obtain UA parameter corresponding to address information.
In one embodiment of the invention, UA parameter rule storehouse can be stored in the portable terminal or be stored in the cloud server, obtain the address information of the corresponding page of video playback request instruction when browser after, can inquire about the UA parameter corresponding with the address information of obtaining in the UA parameter rule storehouse in portable terminal or cloud server.
In another embodiment of the present invention, if do not find the UA parameter corresponding with the address information of obtaining in the UA parameter rule storehouse in portable terminal, then address information can be sent to cloud server, and the inquiry UA parameter corresponding with this address information in the UA parameter rule storehouse in the server beyond the clouds, simultaneously the corresponding relation of the address information that inquires and UA parameter is updated to synchronously the UA parameter rule storehouse of portable terminal.
S204, browser is UA parameter corresponding to address information with the UA parameter adjustment of browser.
Particularly, in one embodiment of the invention, be the current UA parameter of browser if in UA parameter rule storehouse, find the UA parameter corresponding with the address information of obtaining, then keep the UA parameter constant of browser; Not being the current UA parameter of browser if find the UA parameter corresponding with the address information of obtaining in UA parameter rule storehouse, then can be UA parameter corresponding to address information with the UA parameter adjustment of browser.
S205, browser is sent to server with the video playback request message of the UA parameter generation according to the video playback request instruction and after adjusting, and is suitable for the video that browser is play so that server returns according to the UA parameter.
The video broadcasting method that is used for browser of mobile terminal according to the embodiment of the invention, can in UA parameter rule storehouse, inquire about the UA parameter corresponding with the address information of obtaining, and be the UA parameter that inquires with the UA parameter adjustment of browser, can upgrade more accurately the UA parameter of browser, and then provide the video resource that is more suitable for playing for the user, further improve user's experience.
Fig. 3 is the flow chart of the video broadcasting method that is used for browser of mobile terminal of another embodiment according to the present invention.In one embodiment of the invention, the video type that browser can at first return server is judged, and judging that video that server returns is for based on the video of sealing agreement the time, browser can obtain according to the page info of the webpage under the video that returns the corresponding video that is suitable for the browser broadcast and play, particularly, as shown in Figure 3, this video broadcasting method may further comprise the steps.
S301, browser obtain user's video playback request instruction.
S302, browser obtain the address information of the corresponding page of video playback request instruction according to the video playback request instruction.
S303, browser adjust the UA parameter of browser according to address information.
S304, browser according to address information inquiry UA parameter rule storehouse to obtain UA parameter corresponding to address information.
S305, browser is sent to server with the video playback request message of the UA parameter generation according to the video playback request instruction and after adjusting, and is suitable for the video that browser is play so that server returns according to the UA parameter.
S306, the page that the browser reception server returns.
In one embodiment of the invention, the page that server returns comprises content information, page info, attribute information and address information etc., wherein, content information can comprise video in the page and the type of video, as based on the video of open source protocol with based on the video of sealing agreement etc.In one embodiment of the invention, open source protocol is HTML5Video tag etc., and closed agreement is Flashvideo etc.
S307, browser judge whether the video in the page is based on the video that seals agreement.
In one embodiment of the invention, be the video that needs Flash plug-in unit or other plug-in units to play based on the video of sealing agreement, as comprised the video of special characteristic Flash video etc.
S308 is the video based on the sealing agreement if judge video, and then browser obtains the video that is suitable for the browser broadcast corresponding to video according to the page info of the page.
In one embodiment of the invention, if the video in the judgement page is the video based on the sealing agreement, then can at first select corresponding analysis rule according to page info, and then according to analysis rule obtain video corresponding be suitable for the video that browser is play, wherein, analysis rule can be stored in portable terminal or cloud server.
Particularly, as shown in Figure 4, in one embodiment of the invention, when page info comprised page condition code, analysis rule can comprise:
S401 extracts content corresponding to page condition code.
For instance, if there is page condition code var video_data=[urldata1 in the page info, urldata2 ... ], then can extract at least one content urldata1 corresponding to page condition code var video_data, urldata2 ...
S402 is according to the sign of content obtaining video corresponding to page condition code.
In one embodiment of the invention, can analyze at least one content corresponding to page condition code, to obtain the sign of video, for example, can analyze urldata1 and can obtain video labeling video123.
S403 is according to video playback address corresponding to sign inquiry sign.
In one embodiment of the invention, can assemble the URL address according to the sign of this video: http://www.v1.com/getpath? id=video123, and obtain the server address at video place of video123 sign and the memory location on server thereof according to the URL Address requests of this assembling, and then generate the video playback address that be suitable for browser broadcast corresponding with this video according to the server address that gets access to and memory location.
As shown in Figure 5, in another embodiment of the present invention, when comprising animation Flash control in the page info, analysis rule can comprise:
S501 obtains the animation variable Flashvars parameter of animation Flash control in the page info, and when comprising the First Characteristic code in the Flashvars parameter, further obtains Second Characteristic code and the 3rd condition code.
In one embodiment of the invention, for instance, can at first judge whether comprise the First Characteristic code in the Flashvars parameter, such as TvMode=TVLiving, if comprise, then can further obtain Second Characteristic code " vod.v2.cn " and the 3rd condition code " video/1.flv ".
S502 obtains the host address at the video information place of this video according to Second Characteristic code and the 3rd condition code.
For instance, in one embodiment of the invention, can be according to Second Characteristic code " vod.v2.cn " and the 3rd condition code " video/1.flv " assembling URL address: http://vod.v2.cn/video/l.flv, and send request to the URL address of this assembling.And then can extract according to the data that request is returned the host address vodcdn.v2.cn at the video information place of this video.
S503 obtains video playback address corresponding to video according to address, Second Characteristic code and the 3rd condition code of the main frame of video.
For instance, in one embodiment of the invention, can at first the 3rd condition code " video/1.flv " be divided into video/1 and .flv two parts, then video/1 is encoded (such as base64 coding), and be combined with .flv and generate a new value mlkZW8vMQ==.flv, and then can generate according to Second Characteristic code " vod.v2.cn " and mlkZW8vMQ==.flv and be suitable for the video playback address that browser is play: http://vod.v2.cn/vod_base/mlkZW8vMQ==.flv/0.
As shown in Figure 6, in another embodiment of the present invention, when page info comprised the ad hoc rules character string, analysis rule also can comprise:
S601 extracts the ad hoc rules character string in the page info (being page address information), and with the unique identification of ad hoc rules character string as the video that comprises in the page.
In one embodiment of the invention, address information can be URL, particularly, can at first carry out path analysis to URL, and the path is divided into some sections contents, if wherein one section content is the ad hoc rules character string, such as continuation character string v12345.html, then can be from wherein extracting the continuation character string 12345 can be exchanged into 0-9, and with the unique identification VideoID of character string 12345 as the video that comprises in the page.
S602 links according to the unique identification calculated address, and receives and sends request to address chain.
Particularly, in one embodiment of the invention, if the length of unique identification VideoID is greater than 0, then can link according to unique identification VideoID calculated address, for example, for unique identification VideoID12345, but generating video broadcast address link http://pic.v3.cn/xml/video/12345.xml.
S603, the result who returns according to request obtains video playback address corresponding to video.
For instance, in one embodiment of the invention, after sending request to http://pic.v3.cn/xml/video/12345.xml, can resolve the character string http://flv.v3.cn/20130313/303478.flv in the flv label under the items label in this request return results, this character string is the video playback address that is suitable for the browser broadcast corresponding to video in the page.
In an embodiment of the present invention, can obtain by any one analysis rule in the analysis rule described in Fig. 4-6 and be suitable for the video playback address that browser is play, be to be understood that, the described analysis rule of Fig. 4-6 only is the preferred embodiments of the present invention, and other can obtain the analysis rule that is suitable for the video playback address that browser plays according to page info and be applicable to too the present invention.
S309 be based on the video that seals agreement if judge video, the address that then obtains video, and according to the address displaying video of video.
The video broadcasting method that is used for browser of mobile terminal according to the embodiment of the invention, can judge the video type in the page info that server returns, and judging that video type be when sealing the video of agreement, further obtaining the corresponding video that is suitable for the browser broadcast according to the page info that returns plays, and then need not to install plug-in unit and just can play video based on the sealing agreement, easy to operate, discharged simultaneously the memory space of portable terminal, promote the user and experience.
In order to realize above-described embodiment, the present invention also proposes a kind of video play device.
Fig. 7 is the structural representation of video play device according to an embodiment of the invention.As shown in Figure 7, this video play device comprises the first acquisition module 110, the second acquisition module 120, adjusting module 130 and sending module 140.In one embodiment of the invention, browser may operate in the portable terminal, and wherein, portable terminal can be the hardware device that smart mobile phone, panel computer, personal digital assistant etc. have video playback capability.
Particularly, the first acquisition module 110 is used for obtaining user's video playback request instruction.Particularly, the first acquisition module 110 can be by clicking the video link, clicking the video playback request instruction that the user is obtained in operations such as playing button in the webpage of the browser display in portable terminal.
The second acquisition module 120 is used for obtaining according to the video playback request instruction address information of the corresponding page of video playback request instruction.In one embodiment of the invention, address information can be URL, domain name etc.Particularly, the second acquisition module 120 can obtain according to the video playback request instruction URL information of current page (being the corresponding video page of playing request instruction).In other embodiments of the invention, the second acquisition module 120 also can analyze to extract to URL information domain name, path, required parameter of current page etc.
Adjusting module 130 is used for adjusting according to address above mentioned information the UA parameter of browser.In one embodiment of the invention, when the current UA parameter of browser and address above mentioned information were not mated, adjusting module 130 can be adjusted according to the address information of the page UA parameter of browser.For example, if the URL information of browser current web page is http://www.vv.tv/info, then adjusting module 130 can be UA parameter corresponding to http://www.vv.tv/info with the UA parameter adjustment of browser.In another embodiment of the present invention, also can extract first the domain name vv.tv among the URL information http://www.vv.tv/info of current web page, then the UA parameter adjustment with browser is UA parameter corresponding to vv.tv.
Sending module 140 is used for and will be sent to server according to the video playback request message of video playback request instruction and the generation of UA parameter, is suitable for the video that browser is play so that server returns according to the UA parameter.In one embodiment of the invention, be suitable for video that browser plays and can be video based on open source protocol, as by HTML(Hypertext Markup Language, HTML) video<video in 5〉video etc. of label definition.Particularly, after server (for example server of video website) receives the video playback request message of browser transmission, at first obtain the UA parameter in the video playback request message, then according to getting access to such an extent that the UA parameter is selected the video source based on open source protocol suitable with this UA parameter, be back to browser and play.In one embodiment of the invention, open source protocol is HTML5Videotag etc., and closed agreement is Flashvideo etc.
Video play device according to the embodiment of the invention, can adjust by adjusting module the UA parameter of browser according to the address information of the page corresponding with user's video playback request instruction, thereby so that can returning according to the UA parameter after adjusting, server is suitable for the video that browser is play, and then improve video response speed, improve user's experience.
Fig. 8 is the structural representation of video play device in accordance with another embodiment of the present invention.As shown in Figure 8, this video play device comprises that the first acquisition module 110, the second acquisition module 120, adjusting module 130, sending module 140, first obtain submodule 131 and adjust submodule 132, wherein, adjusting module 130 specifically comprises and obtains submodule 131 and adjust submodule 132.
Particularly, first obtain submodule 131 and be used for according to address information inquiry UA parameter rule storehouse to obtain UA parameter corresponding to address information.In one embodiment of the invention, UA parameter rule storehouse can be stored in the portable terminal or be stored in the cloud server, after the first acquisition module 110 obtained the address information of the corresponding page of video playback request instruction, first obtains submodule 131 can inquire about the UA parameter corresponding with the address information of obtaining in the UA parameter rule storehouse in portable terminal or cloud server.
In another embodiment of the present invention, if do not find the UA parameter corresponding with the address information of obtaining in the UA parameter rule storehouse in portable terminal, then address information can be sent to cloud server, and the inquiry UA parameter corresponding with this address information in the UA parameter rule storehouse in the server beyond the clouds, simultaneously the corresponding relation of the address information that inquires and UA parameter is updated to synchronously the UA parameter rule storehouse of portable terminal.
Adjusting submodule 132 is UA parameter corresponding to address information for the UA parameter adjustment with browser.More specifically, in one embodiment of the invention, be the current UA parameter of browser if in UA parameter rule storehouse, find the UA parameter corresponding with the address information of obtaining, then adjust the UA parameter constant that submodule 132 keeps browser; If finding the UA parameter corresponding with the address information of obtaining in UA parameter rule storehouse is not the current UA parameter of browser, then adjusting submodule 132 can be UA parameter corresponding to address information with the UA parameter adjustment of browser.
Video play device according to the embodiment of the invention, adjusting module can be inquired about the UA parameter corresponding with the address information of obtaining in UA parameter rule storehouse, and be the UA parameter that inquires with the UA parameter adjustment of browser, can upgrade more accurately the UA parameter of browser, and then provide the video resource that is more suitable for playing for the user, further improve user's experience.
Fig. 9 is the structural representation of the video play device of another embodiment according to the present invention.As shown in Figure 9, this video play device comprises that the first acquisition module 110, the second acquisition module 120, adjusting module 130, sending module 140, receiver module 150, judge module 160, the 3rd acquisition module 170, first obtain submodule 131, adjust submodule 132, chooser module 171 and second is obtained submodule 172, wherein, adjusting module 130 comprises that specifically first obtains submodule 131 and adjust submodule 132, the three acquisition modules and comprise that specifically chooser module 171 and second obtains submodule 172.
Particularly, receiver module 150 is used for the page that reception server returns.In one embodiment of the invention, the page that server returns comprises content information, page info, attribute information and address information etc., wherein, content information can comprise video in the page and the type of video, as based on the video of open source protocol with based on the video of sealing agreement etc.In one embodiment of the invention, open source protocol is HTML5Video tag etc., and closed agreement is Flashvideo etc.
Judge module 160 is used for judging whether the video of the page is based on the video that seals agreement.In one embodiment of the invention, based on the video video that needs Flash plug-in unit or other plug-in units to play of sealing agreement, such as Flash video etc.
The 3rd acquisition module 170 is used for when judge module judges that video be video based on the sealing agreement, obtains the video that is suitable for the browser broadcast corresponding to video according to the page info of the page.More specifically, in one embodiment of the invention, the 3rd acquisition module 170 comprises:
Chooser module 171 is used for selecting corresponding analysis rule according to page info.Wherein, analysis rule can be stored in portable terminal or cloud server.
Second obtains submodule 172 is used for obtaining the video that is suitable for the browser broadcast corresponding to video according to analysis rule.
In one embodiment of the invention, analysis rule can be any one among the embodiment described in Fig. 4 in the embodiment of the method-6, be to be understood that, the described analysis rule of Fig. 4-6 only is the preferred embodiments of the present invention, and other can obtain the analysis rule that is suitable for the video playback address that browser plays according to page info and be applicable to too the present invention.
Clear video play device according to the embodiment of the invention, can judge video type in the page info that server returns by judge module, and judging that video type be when sealing the video of agreement, further obtaining the corresponding video that is suitable for the browser broadcast according to the page info that returns plays, and then need not to install plug-in unit and just can play video based on the sealing agreement, easy to operate, discharged simultaneously the memory space of portable terminal, promoted user's experience.
In order to realize above-described embodiment, the present invention also proposes a kind of portable terminal.
In one embodiment of the invention, portable terminal comprises: shell, screen, processor and circuit board; Screen is placed on the shell, and circuit board is placed in the interior volume that shell surrounds, and processor is arranged on the circuit board; Processor is for the treatment of data, and concrete being used for after the user triggers the operation that starts browser, obtain user's video playback request instruction, and obtain the address information of the corresponding page of video playback request instruction according to the video playback request instruction, and the UA parameter of adjusting browser according to address information, and will be sent to server according to the video playback request message of video playback request instruction and the generation of UA parameter, so that returning according to the UA parameter, server is suitable for the video that browser is play.
In one embodiment of the invention, portable terminal can be the hardware devices such as smart mobile phone, panel computer, personal digital assistant, and address information can be URL, domain name etc.Particularly, when the user wishes to play certain video, can link, click operation input video playing request instructions such as playing button by clicking video in the webpage of the browser display in portable terminal, and then processor can obtain according to the video playback request instruction URL information of current page (namely inputting the page of playing request instruction).In other embodiments of the invention, processor also can analyze to extract to URL information domain name, path, required parameter of current page etc.
In one embodiment of the invention, when the current UA parameter of browser and address above mentioned information are not mated, processor is adjusted the UA parameter of browser itself according to the address information of the page, particularly, can be according to address information inquiry UA parameter rule storehouse to obtain UA parameter corresponding to address information, then the UA parameter adjustment with browser is UA parameter corresponding to address information, wherein, UA parameter rule storehouse can be stored in the portable terminal or be stored in the cloud server, obtain the address information of the corresponding page of video playback request instruction when browser after, can inquire about the UA parameter corresponding with the address information of obtaining in the UA parameter rule storehouse in portable terminal or cloud server.For example, if the URL information of browser current web page is http://www.vv.tv/info, then processor can be UA parameter corresponding to http://www.vv.tv/info with the UA parameter adjustment of browser.In another embodiment of the present invention, also can extract first the domain name vv.tv among the URL information http://www.vv.tv/info of current web page, then the UA parameter adjustment with browser is UA parameter corresponding to vv.tv.
In another embodiment of the present invention, if do not find the UA parameter corresponding with the address information of obtaining in the UA parameter rule storehouse in portable terminal, then address information can be sent to cloud server, and the inquiry UA parameter corresponding with this address information in the UA parameter rule storehouse in the server beyond the clouds, simultaneously the corresponding relation of the address information that inquires and UA parameter is updated to synchronously the UA parameter rule storehouse of portable terminal.If finding the UA parameter corresponding with the address information of obtaining in UA parameter rule storehouse is the current UA parameter of browser, then keep the UA parameter constant of browser; Not being the current UA parameter of browser if find the UA parameter corresponding with the address information of obtaining in UA parameter rule storehouse, then can be UA parameter corresponding to address information with the UA parameter adjustment of browser.
In one embodiment of the invention, be suitable for video that browser plays and can be video based on open source protocol, as by HTML(Hypertext Markup Language, HTML) video<video in 5〉video etc. of label definition.Particularly, after server (for example server of video website) receives the video playback request message of browser transmission, at first obtain the UA parameter in the video playback request message, then according to getting access to such an extent that the UA parameter is selected the video source based on open source protocol suitable with this UA parameter, and then can obtain according to open source protocol the address of video source, and be back to portable terminal and play.
In other embodiments of the invention, processor also is used for the page that reception server returns, and judge whether the video in the page is based on the video that seals agreement, and judging that video be when sealing the video of agreement, page info according to the page obtains the video that is suitable for the browser broadcast corresponding to video, and judging that video be when sealing the video of agreement, the address that obtains video, and according to the address displaying video of video.Wherein, the page that server returns comprises content information, page info, attribute information and address information etc., and wherein, content information can comprise video in the page and the type of video, as based on the video of open source protocol with based on the video of sealing agreement etc.Video based on the sealing agreement is the video that needs Flash plug-in unit or other plug-in units to play, such as Flash video etc.
In one embodiment of the invention, if judging video is the video based on the sealing agreement, then processor can at first be selected corresponding analysis rule according to page info, and then according to analysis rule obtain video corresponding be suitable for the video that browser is play, wherein, analysis rule can be any one among the embodiment described in Fig. 4 in the embodiment of the method-6, and can be stored in portable terminal or cloud server, and then processor can obtain the video that is suitable for the browser broadcast corresponding to video according to the analysis rule described in Fig. 4-6.Should be appreciated that the described analysis rule of Fig. 4-6 only for the preferred embodiments of the present invention, other can obtain the analysis rule that is suitable for the video playback address that browser plays according to page info and be applicable to too the present invention.
Portable terminal according to the embodiment of the invention, can adjust according to the address information of the page corresponding with user's video playback request instruction the UA parameter of browser, thereby be suitable for the video that browser is play so that server can return according to the UA parameter after adjusting, therefore can avoid installing the Flash plug-in unit.In addition, the portable terminal of the embodiment of the invention can also improve video provides efficient, and then improves video response speed, improves user's experience.
In order to realize above-described embodiment, the present invention also proposes a kind of audio/video player system.
Figure 10 is the structural representation of audio/video player system according to an embodiment of the invention.As shown in figure 10, audio/video player system comprises portable terminal 100 and server 200.
Particularly, the function of portable terminal 100 is as described in the above embodiment of the present invention.
Server 200 is used for the video playback request message that mobile terminal receive 100 sends, and returns the video that is suitable for the browser broadcast according to the UA parameter in the video playback request message.
Audio/video player system according to the embodiment of the invention, can adjust by browser the UA parameter of browser according to the address information of the page corresponding with user's video playback request instruction, thereby be suitable for the video that browser is play so that server can return according to the UA parameter after adjusting, therefore can avoid in portable terminal, installing the Flash plug-in unit.In addition, the embodiment of the invention can also improve video provides efficient, and then improves video response speed, improves user's experience.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, a plurality of steps or method can realize with being stored in the memory and by software or firmware that suitable instruction execution system is carried out.For example, if realize with hardware, the same in another embodiment, can realize with the combination of each or they in the following technology well known in the art: have for the discrete logic of data-signal being realized the logic gates of logic function, application-specific integrated circuit (ASIC) with suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
In the description of this specification, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or the example in conjunction with specific features, structure, material or the characteristics of this embodiment or example description.In this manual, the schematic statement of above-mentioned term not necessarily referred to identical embodiment or example.And the specific features of description, structure, material or characteristics can be with suitable mode combinations in any one or more embodiment or example.
Although illustrated and described embodiments of the invention, those having ordinary skill in the art will appreciate that: in the situation that do not break away from principle of the present invention and aim can be carried out multiple variation, modification, replacement and modification to these embodiment, scope of the present invention is limited by claim and equivalent thereof.