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 player method, system and the portable terminal of accompanying drawing description according to video in the browser of mobile terminal of the embodiment of the invention.
In order to solve present video playback mode to the serious problem of flow waste of portable terminal, solve simultaneously the video of having watched at present and the video storage of reading in advance affect browser execution speed when browser problem, the present invention proposes player method, system and the portable terminal of video in a kind of browser of mobile terminal.
Fig. 1 is the flow chart of the player method of video in the browser of mobile terminal according to an embodiment of the invention.As shown in Figure 1, the player method of video may further comprise the steps in the browser of mobile terminal, wherein, has browser and the main frame that intercoms mutually with browser in the portable terminal.
S101, the video information by the network receiver, video is also carried out video playback, and video information is sent to main frame preserves.
In one embodiment of the invention, video information can comprise the video information of having play in the browser and/or the video information of reading in advance.Particularly, when the user watched video on the network by the browser of portable terminal, the browser of portable terminal intercomed mutually with the main frame of portable terminal, can preserve the video information of having play in main frame, also can preserve the video information of reading in advance.
S102 when browser receives user's video playback adjustment instruction, adjusts instruction according to video playback and plays from the video content that main frame obtains correspondence the video.
For example, when the user watches video on the network by the browser of portable terminal, if after watching one section video, return when watching the video of having seen, the browser of portable terminal receives user's video playback and adjusts instruction, it is the playback play instruction that this video playback is adjusted instruction, and browser obtains video content corresponding the video according to this playback play instruction from main frame and plays.
And for example; when the user watches video on the network by the browser of portable terminal; often can read in advance one section video; if the user withdrawed from broadcast interface before watching the audio frequency and video of reading in advance; when the user need to return when watching the video of having play or reopening player; perhaps; the user thinks to watch in advance one section video reading in advance; be that the user is when watching the video of reading in advance; the browser of portable terminal receives user's video playback and adjusts instruction; this video playback is adjusted instruction for reading in advance the play instruction of video, and browser obtains video content corresponding the video according to this play instruction of reading in advance video from main frame and plays.
Player method according to video in the browser of mobile terminal of the embodiment of the invention, when the user watches video by the browser of portable terminal, the browser of portable terminal can be kept at the video information of having play and/or the video information of reading in advance in the main frame of portable terminal, like this when the user need to watch video again or when wanting to watch the video of reading in advance, can extract video line from the main frame of portable terminal plays, do not need to consume extra portable terminal flow, economize on resources, and when playing, also can not be subject to the impact of network signal quality, simultaneously video information is stored in the main frame, save the buffer memory of browser, the memory function of browser improves, the speed of service of browser is unaffected, thereby has promoted user's experience.
Fig. 2 is the flow chart of the player method of video in the browser of mobile terminal in accordance with another embodiment of the present invention.In one embodiment of the invention, video information also comprises identify label number (IDentity) ID of video, can carry out Play Control according to ID and the video playback adjustment instruction of video thus.Particularly, as shown in Figure 2, the player method of video may further comprise the steps in the browser of mobile terminal.
S201, the video information by the network receiver, video is also carried out video playback, and video information is sent to main frame preserves.
S202 is when browser receives user's video playback adjustment instruction, according to ID definite corresponding video from main frame of video.
S203 adjusts instruction according to video playback and determines corresponding play time.
S204 selects corresponding video content to play from video according to play time.
According to the player method of video in the browser of mobile terminal of the embodiment of the invention, the ID location by video is stored in the video in the main frame, has improved efficient, and has carried out Play Control by play time, further raising efficiency.
Fig. 3 is the flow chart of the player method of video in the browser of mobile terminal of another embodiment according to the present invention.If the ID according to video can not obtain from this locality corresponding video, then can pass through Network Capture.Particularly, as shown in Figure 3, the player method of video may further comprise the steps in the browser of mobile terminal.
S301, the video information by the network receiver, video is also carried out video playback, and video information is sent to main frame preserves.
S302 is when browser receives user's video playback adjustment instruction, if determine corresponding video according to the ID of video from main frame.
S303 adjusts instruction according to video playback and determines corresponding play time.
S304 selects corresponding video content to play from video according to play time.
S305 when browser receives user's video playback adjustment instruction, if can't obtain corresponding video from main frame according to the ID of video, then further obtains video from network.
According to the player method of video in the browser of mobile terminal of the embodiment of the invention, if can't obtain corresponding video from main frame according to the ID of video, then further from network, obtain video, promote the user and experience.
Fig. 4 is the flow chart of the player method of video in the browser of mobile terminal of another embodiment according to the present invention.In main frame, create interim (temp) file of video, the video data that arrives by temp file storing received, and carry out searching of displaying video according to the temp file.Temp is temporary folder, be arranged on generally speaking main frame C: Documents and Settings Administrator Local Settings in, can certainly be arranged on according to the requirement of user or system other positions, a lot of temporary files are placed on here, collection, the temporary file of browsing page, editing files etc.
Particularly, as shown in Figure 4, the player method of video may further comprise the steps in the browser of mobile terminal.
S401, the video information by the network receiver, video is also carried out video playback, and video information is sent to main frame preserves.
S402 creates the temp file of video in main frame, the video data that arrives by temp file storing received.
Particularly, the main frame of portable terminal can be local host local host, and local host can create temporary file temp file that should video after receiving the video information that browser sends, the video data that arrives by temp file storing received.
S403 when browser receives user's video playback adjustment instruction, judges whether there be the temp file corresponding with the ID of video in the main frame.
Particularly, need to return when watching the video of having play or reopening player the user, when the video playback that portable terminal receives the user was adjusted instruction, the ID that adjusts the video that instruction carries by video playback searched whether there be the temp file corresponding with the ID of this video among the local host.
S404 when not having temp file corresponding to ID with video, further obtains video from network.Be that the user can only watch this video on the network by browser.
S405 when having temp file corresponding to ID with video, judges the valid data that whether have video in the temp file.Judge namely whether the video data in the temp file can be play.
S406 when not having the valid data of video, further obtains video from network.Be that the user can only watch this video on the network by browser.
S407 when having the valid data of video, reads the valid data of video and plays from the temp file.
Wherein, the video data of storing in the temp file can form a complete video also can the part video content, when the video data of storing in the temp file can form a complete video, local host can be assembled into video data a complete video, and be presented in the playlist of portable terminal, the user can play this video at any time by playlist.When the video data of storing in the temp file can not form a complete video, local host also can extract the video data of storing in the temp file and play, the first half content that has comprised video such as the video data of storing in the temp file, then local host can be according to the first half of the video data displaying video of storing in the temp file.
Wherein, the storing process of video data carries out on the backstage of portable terminal, and the user will experience less than this process, and in video playback, the video data autostore is in the local of portable terminal host.
According to the player method of video in the browser of mobile terminal of the embodiment of the invention, store data and accept inquiry by the temp file, raise the efficiency.
Because the restriction of mobile terminal performance, the memory capacity of the main frame of portable terminal is also limited, in order to solve the storage problem of mobile terminal host, in one embodiment of the invention, the time of store video information in the record main frame; And when the time exceeds Preset Time, remove the video information of storing in the main frame, and thus, regularly to process, the video information that will surpass Preset Time memory time is cleared up.In another embodiment of the present invention, after the user watches complete video, remove the video information of storing in the main frame, thus, namely clear up after finishing watching.
Fig. 5 is the flow chart of the player method of video in the browser of mobile terminal of another embodiment again according to the present invention.When the browser that uses portable terminal carries out video playback, some video resource may be not suitable for browser and play, for example based on the video resource of sealing agreement, portable terminal need to be installed and start the Flash plug-in unit and just can play, and easily causes mobile terminal system lengthy and jumbled, and operation inconvenience, the user experiences poor, for head it off, particularly, embodiment as shown in Figure 5, the player method of video may further comprise the steps in the browser of mobile terminal.
S501 obtains user's video playback request instruction.
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.
S502 obtains 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.
S503 is according to the user agent UA parameter of address information adjustment browser.
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.
S504 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.
S505, the video information by the network receiver, video is also carried out video playback, and video information is sent to main frame preserves.
S506 when browser receives user's video playback adjustment instruction, adjusts instruction according to video playback and plays from the video content that main frame obtains correspondence the video.
Player method according to video in the browser of mobile terminal of 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. 6 is the flow chart of the player method of video in the browser of mobile terminal of another embodiment in addition according to the present invention.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 6, the player method of video may further comprise the steps in the browser of mobile terminal.
S601, browser obtain user's video playback request instruction.
S602, browser obtain the address information of the corresponding page of video playback request instruction according to the video playback request instruction.
S603, 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.
S604, 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.
S605, 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.
S606, the video information by the network receiver, video is also carried out video playback, and video information is sent to main frame preserves.
S607 when browser receives user's video playback adjustment instruction, adjusts instruction according to video playback and plays from the video content that main frame obtains correspondence the video.
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.
In order to realize above-described embodiment, the present invention also proposes the Play System of video in a kind of browser of mobile terminal.
Fig. 7 is the flow chart of the Play System of video in the browser of mobile terminal according to an embodiment of the invention.As shown in Figure 7, the Play System of video comprises browser 10 and the main frame 20 that intercoms mutually with browser in the browser of mobile terminal.
Particularly, browser 10 is used for by the video information of network receiver, video and carries out video playback, and video information is sent to main frame 20, and when browser 10 receives user's video playback adjustment instruction, adjust instruction according to video playback and play from the video content that main frame obtains correspondence the video.
In one embodiment of the invention, video information can comprise the video information of having play in the browser 10 and/or the video information of reading in advance.Particularly, when the user watched video on the network by the browser 10 of portable terminal, the browser 10 of portable terminal intercomed mutually with the main frame 20 of portable terminal, can preserve the video information of having play in main frame 20, also can preserve the video information of reading in advance.
Main frame 20 is used for receiving video information and the preservation that browser 10 sends, and the inquiry of accepting browser 10.
For example, when the user watches video on the network by the browser 10 of portable terminal, if after watching one section video, return when watching the video of having seen, the browser 10 of portable terminal receives user's video playback and adjusts instruction, it is the playback play instruction that this video playback is adjusted instruction, and browser 10 obtains video content corresponding the video according to this playback play instruction from main frame 20 and plays.
And for example; when the user watches video on the network by the browser 10 of portable terminal; often can read in advance one section video; if the user withdrawed from broadcast interface before watching the audio frequency and video of reading in advance; when the user need to return when watching the video of having play or reopening player; perhaps; the user thinks to watch in advance one section video reading in advance; be that the user is when watching the video of reading in advance; the browser 10 of portable terminal receives user's video playback and adjusts instruction; this video playback is adjusted instruction for reading in advance the play instruction of video, and browser 10 obtains video content corresponding the video according to this play instruction of reading in advance video from main frame 20 and plays.
Play System according to video in the browser of mobile terminal of the embodiment of the invention, when the user watches video by the browser of portable terminal, the browser of portable terminal can be kept at the video information of having play and/or the video information of reading in advance in the main frame of portable terminal, like this when the user need to watch video again or when wanting to watch the video of reading in advance, can extract video line from the main frame of portable terminal plays, do not need to consume extra portable terminal flow, economize on resources, and when playing, also can not be subject to the impact of network signal quality, simultaneously video information is stored in the main frame, save the buffer memory of browser, the memory function of browser improves, the speed of service of browser is unaffected, thereby has promoted user's experience.
In one embodiment of the invention, video information also comprises the ID of video.Can carry out Play Control according to ID and the video playback adjustment instruction of video thus.
Particularly, in one embodiment of the invention, browser 10 is determined corresponding video according to the ID of video from main frame 20, and adjusts instruction according to video playback and determine corresponding play time, and selects corresponding video content to play from video according to play time.
In another embodiment of the present invention, if browser 10 also is used for can't obtaining corresponding video from main frame 20 according to the ID of video, then further from network, obtain video.
Above-mentioned two embodiment according to the present invention, the ID location by video is stored in the video in the main frame 20, has improved efficient, and has carried out Play Control by play time, further raising efficiency.
Because the restriction of mobile terminal performance, the memory capacity of the main frame of portable terminal is also limited, in order to solve the storage problem of mobile terminal host, in one embodiment of the invention, main frame 20 also is used for the time of record main frame 20 store video information, and when the time exceeds Preset Time, remove the video information of storage in the main frame 20, thus, regularly process, the video information that will surpass Preset Time memory time is cleared up.In another embodiment of the present invention, browser 10 also is used for removing the video information of storage in the main frame 20 after the user watches complete video.Thus, namely clear up after finishing watching.
In main frame, create the temp file of video, the video data that arrives by temp file storing received, and carry out searching of displaying video according to the temp file.In a specific embodiment of the present invention, main frame 20 also is used for creating the temp file of video, the video data that arrives by temp file storing received, particularly, the main frame 20 of portable terminal can be local host local host, local host can create temporary file temp file that should video after receiving the video information that browser 10 sends, the video data that arrives by temp file storing received.
In another specific embodiment of the present invention, browser 10 also is used for judging whether main frame 20 exists the temp file corresponding with the ID of video, when not having temp file corresponding to ID with video, further obtains video from network; When having temp file corresponding to ID with video, judge the valid data that whether have video in the temp file, when not having the valid data of video, further from network, obtain video; When having the valid data of video, from the temp file, read the valid data of video and play.
Wherein, the video data of storing in the temp file can form a complete video also can the part video content, when the video data of storing in the temp file can form a complete video, local host can be assembled into video data a complete video, and be presented in the playlist of portable terminal, the user can play this video at any time by playlist.When the video data of storing in the temp file can not form a complete video, local host also can extract the video data of storing in the temp file and play, the first half content that has comprised video such as the video data of storing in the temp file, then local host can be according to the first half of the video data displaying video of storing in the temp file.
Wherein, the storing process of video data carries out on the backstage of portable terminal, and the user will experience less than this process, and in video playback, the video data autostore is in the local of portable terminal host.
When the browser that uses portable terminal carries out video playback, some video resource may be not suitable for browser and play, for example based on the video resource that seals agreement, portable terminal need to be installed and start the Flash plug-in unit and just can play, easily cause mobile terminal system lengthy and jumbled, and operation inconvenience, the user experiences poor, for head it off, in one embodiment of the invention, browser 10 also is used for obtaining 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 user agent UA parameter of adjusting browser 10 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 10 is play.
In one embodiment of the invention, address information can be URL(Uniform Resource Locator, URL(uniform resource locator)), domain name etc.Particularly, browser 10 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 10 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 10 and address above mentioned information were not mated, browser 10 can be adjusted according to the address information of the page UA parameter of browser self.For example, if the URL information of browser 10 current web pages 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 10.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 10 is UA parameter corresponding to vv.tv.
In one embodiment of the invention, be suitable for video that browser 10 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 10 transmissions, 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 10 and play.In one embodiment of the invention, open source protocol is HTML5Video tag etc., and closed agreement is Flashvideo etc.
In another embodiment of the present invention, browser 10 also is used for according to described address information inquiry UA parameter rule storehouse obtaining UA parameter corresponding to address information, and is UA parameter corresponding to address information with the UA parameter adjustment of browser 10.
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 10 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.
In order to realize above-described embodiment, the present invention also proposes a kind of portable terminal.
A kind of 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, concrete browser and the main frame that intercoms mutually with browser in the processor, and the preparation implement body is used for:
Video information by the network receiver, video is also carried out video playback, and video information is sent to main frame preserves, and when browser receives user's video playback adjustment instruction, adjust instruction according to video playback and play from the video content that main frame obtains correspondence the video.
In one embodiment of the invention, video information can comprise the video information of having play in the browser and/or the video information of reading in advance.Particularly, when the user watched video on the network by the browser of portable terminal, the browser of portable terminal intercomed mutually with the main frame of portable terminal, can preserve the video information of having play in main frame, also can preserve the video information of reading in advance.
For example, when the user watches video on the network by the browser of portable terminal, if after watching one section video, return when watching the video of having seen, the browser of portable terminal receives user's video playback and adjusts instruction, it is the playback play instruction that this video playback is adjusted instruction, and browser obtains video content corresponding the video according to this playback play instruction from main frame and plays.
And for example; when the user watches video on the network by the browser of portable terminal; often can read in advance one section video; if the user withdrawed from broadcast interface before watching the audio frequency and video of reading in advance; when the user need to return when watching the video of having play or reopening player; perhaps; the user thinks to watch in advance one section video reading in advance; be that the user is when watching the video of reading in advance; the browser of portable terminal receives user's video playback and adjusts instruction; this video playback is adjusted instruction for reading in advance the play instruction of video, and browser obtains video content corresponding the video according to this play instruction of reading in advance video from main frame and plays.
Portable terminal according to the embodiment of the invention, when the user watches video by the browser of portable terminal, the browser of portable terminal can be kept at the video information of having play and/or the video information of reading in advance in the main frame of portable terminal, like this when the user need to watch video again or when wanting to watch the video of reading in advance, can extract video line from the main frame of portable terminal plays, do not need to consume extra portable terminal flow, economize on resources, and when playing, also can not be subject to the impact of network signal quality, simultaneously video information is stored in the main frame, save the buffer memory of browser, the memory function of browser improves, the speed of service of browser is unaffected, thereby has promoted user's experience.
In one embodiment of the invention, video information also comprises the ID of video, can carry out Play Control according to ID and the video playback adjustment instruction of video thus.
Particularly, in one embodiment of the invention, processor also specifically is used for: the ID according to video determines corresponding video from main frame; Adjust instruction according to video playback and determine corresponding play time; And from video, select corresponding video content to play according to play time.
In another embodiment of the present invention, processor also specifically is used for: if can't obtain corresponding video from main frame according to the ID of video, then further obtain video from network.
Above-mentioned two embodiment according to the present invention, the ID location by video is stored in the video in the main frame 20, has improved efficient, and has carried out Play Control by play time, further raising efficiency.
Because the restriction of mobile terminal performance, the memory capacity of the main frame of portable terminal is also limited, and in order to solve the storage problem of mobile terminal host, in one embodiment of the invention, processor also specifically is used for: the time of record main frame store video information; And when the time exceeds Preset Time, remove the video information of storing in the main frame, and thus, regularly to process, the video information that will surpass Preset Time memory time is cleared up.In another embodiment of the present invention, processor also specifically is used for: after the user watches complete video, remove the video information of storing in the main frame, thus, namely clear up after finishing watching.
In main frame, create the temp file of video, the video data that arrives by temp file storing received, and carry out searching of displaying video according to the temp file.In a specific embodiment of the present invention, processor also specifically is used for creating at main frame the temp file of described video, the video data that arrives by temp file storing received, particularly, the main frame of portable terminal can be local host local host, local host can create temporary file temp file that should video after receiving the video information that browser sends, the video data that arrives by temp file storing received.
In another specific embodiment of the present invention, processor also specifically is used for: judge whether main frame exists the temp file corresponding with the ID of video, when not having temp file corresponding to ID with video, further obtain video from network; When having temp file corresponding to ID with video, judge the valid data that whether have video in the temp file, when not having the valid data of video, further from network, obtain video; When having the valid data of video, from the temp file, read the valid data of video and play.
Wherein, the video data of storing in the temp file can form a complete video also can the part video content, when the video data of storing in the temp file can form a complete video, local host can be assembled into video data a complete video, and be presented in the playlist of portable terminal, the user can play this video at any time by playlist.When the video data of storing in the temp file can not form a complete video, local host also can extract the video data of storing in the temp file and play, the first half content that has comprised video such as the video data of storing in the temp file, then local host can be according to the first half of the video data displaying video of storing in the temp file.
Wherein, the storing process of video data carries out on the backstage of portable terminal, and the user will experience less than this process, and in video playback, the video data autostore is in the local of portable terminal host.
When the browser that uses portable terminal carries out video playback, some video resource may be not suitable for browser and play, for example based on the video resource that seals agreement, portable terminal need to be installed and start the Flash plug-in unit and just can play, easily cause mobile terminal system lengthy and jumbled, and operation inconvenience, the user experiences poor, for head it off, in one embodiment of the invention, processor also specifically is used for: the video playback request instruction that obtains the user, obtain the address information of the corresponding page of video playback request instruction according to the video playback request instruction, and the user agent 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, processor also specifically is used for: obtaining UA parameter corresponding to address information, and be UA parameter corresponding to address information with the UA parameter adjustment of browser according to address information inquiry UA parameter rule storehouse.
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.
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.
In each embodiment of the method for the present invention; the sequence number of described each step can not be used for limiting the sequencing of each step; for those of ordinary skills, under the prerequisite of not paying creative work, the priority of each step is changed also within protection scope of the present invention.
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.