Specific embodiment
Embodiments of the invention are described below in detail, the example of described embodiment is shown in the drawings, wherein from start to finish
The element that same or similar label represents same or similar element or has same or like function.Below with reference to attached
The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not considered as limiting the invention.On the contrary, originally
Inventive embodiment includes falling into all changes in the range of the spirit of attached claims and intension, modification and equivalent
Thing.
In describing the invention it is to be understood that term " first ", " second " etc. are only used for describing purpose, and not
It is understood that as indicating or implying relative importance.In describing the invention, it should be noted that specifying unless otherwise clear and definite
And restriction, term " being connected ", " connection " should be interpreted broadly, for example, it may be being fixedly connected or being detachably connected,
Or be integrally connected;Can be to be mechanically connected or electrically connect;Can be to be joined directly together it is also possible to pass through intermediary
It is indirectly connected to.For the ordinary skill in the art, above-mentioned term tool in the present invention can be understood with concrete condition
Body implication.Additionally, in describing the invention, unless otherwise stated, " multiple " are meant that two or more.
In flow chart or here any process described otherwise above or method description are construed as, represent and include
The module of the code of executable instruction of one or more steps for realizing specific logical function or process, fragment or portion
Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable
Sequence, including according to involved function by substantially simultaneously in the way of or in the opposite order, carry out perform function, this should be by the present invention
Embodiment person of ordinary skill in the field understood.
It should be noted that embodiments of the invention are preferably applied to mobile device, for example, (IOS is IOS
The handheld equipment operating system developed by Apple), Android operation system (android system be a kind of based on Linux from
By and open source code operating system), Windows Phone operating system(Windows Phone is that Microsoft issues
Mobile phone operating system)Mobile device, be of course also apply to personal computer and other Intelligent mobile equipments, the present invention
This is not construed as limiting.
Below with reference to the accompanying drawings the player method of video, system in browser of mobile terminal according to embodiments of the present invention are described
And mobile terminal.
Serious in order to solve the problems, such as that current video playback mode wastes to the flow of mobile terminal, solve at present simultaneously
The video watched and the video pre-reading are stored in the problem affecting browser execution speed during browser, and the present invention proposes a kind of
The player method of video, system and mobile terminal in browser of mobile terminal.
Fig. 1 is the flow chart of the player method of video in browser of mobile terminal according to an embodiment of the invention.As
Shown in Fig. 1, in browser of mobile terminal, the player method of video comprises the following steps, and wherein, has browser in mobile terminal
And the main frame being in communication with each other with browser.
S101, receives the video information of video by network and carries out video playback, and video information is sent to main frame
Preserved.
In one embodiment of the invention, video information may include in browser the video information of broadcasting and/or pre-
The video information read.Specifically, when user watches the video on network by the browser of mobile terminal, mobile terminal clear
Device of looking at is in communication with each other with the main frame of mobile terminal, can preserve the video information of broadcasting in main frame, also can preserve regarding of pre-reading
Frequency information.
S102, when the video playback adjust instruction of browser receive user, according to video playback adjust instruction from main frame
Obtain corresponding video content in video to play out.
For example, when user watches the video on network by the browser of mobile terminal, if one section of video of viewing it
Afterwards, when returning the video seen, the browser of mobile terminal receives the video playback adjust instruction of user, and this regards
It is playback play instruction that frequency plays adjust instruction, and browser obtains corresponding video regarding according to this playback play instruction from main frame
Frequency content plays out.
And for example, when user watches the video on network by the browser of mobile terminal, often pre-read one section of video, such as
Fruit user exited broadcast interface before the audio frequency and video that pre-read of viewing, when user need to return the video that viewing play or
When person reopens player, or, user thinks to watch the one section of video pre-reading in advance, the video that is, user's viewing has pre-read
When, the browser of mobile terminal receives the video playback adjust instruction of user, and this video playback adjust instruction is to pre-read video
Play instruction, browser pre-reads the play instruction of video according to this and obtains corresponding video content video from main frame to be broadcast
Put.
The player method of video in browser of mobile terminal according to embodiments of the present invention, when user passes through mobile terminal
During browser viewing video, the video information of broadcasting and/or the video information pre-reading can be preserved by the browser of mobile terminal
In the main frame of mobile terminal, so when user needs again to watch video or when wanting to watch the video pre-reading, Ke Yicong
Extract video line in the main frame of mobile terminal to play it is not necessary to consume extra mobile terminal flow, economize on resources, and playing
When also will not be affected by network signal quality, video information is stored in main frame simultaneously, saves the slow of browser
Deposit, the store function of browser is improved, the speed of service of browser is unaffected, thus improving Consumer's Experience.
Fig. 2 is the flow chart of the player method of video in browser of mobile terminal in accordance with another embodiment of the present invention.
In one embodiment of the invention, video information also includes the identity number of video(IDentity)ID, thus can root
ID and video playback adjust instruction according to video play out control.Specifically, as shown in Fig. 2 regarding in browser of mobile terminal
The player method of frequency comprises the following steps.
S201, receives the video information of video by network and carries out video playback, and video information is sent to main frame
Preserved.
S202, when the video playback adjust instruction of browser receive user, the ID according to video determines phase from main frame
The video answered.
S203, determines corresponding play time according to video playback adjust instruction.
S204, selects corresponding video content to play out according to play time from video.
The player method of video in browser of mobile terminal according to embodiments of the present invention, by the ID positioning storage of video
Video in main frame, improves efficiency, and plays out control by play time, further raising efficiency.
Fig. 3 is the flow chart of the player method of video in browser of mobile terminal according to another embodiment of the present invention.
If the ID according to video can not obtain corresponding video from local, Network Capture can be passed through.Specifically, as shown in figure 3, moving
In dynamic terminal browser, the player method of video comprises the following steps.
S301, receives the video information of video by network and carries out video playback, and video information is sent to main frame
Preserved.
S302, when the video playback adjust instruction of browser receive user, if the ID according to video is true from main frame
Fixed corresponding video.
S303, determines corresponding play time according to video playback adjust instruction.
S304, selects corresponding video content to play out according to play time from video.
S305, when the video playback adjust instruction of browser receive user, if cannot be from main frame according to the ID of video
Obtain corresponding video, then obtain video further from network.
The player method of video in browser of mobile terminal according to embodiments of the present invention, if cannot according to the ID of video
Obtain corresponding video from main frame, then obtain video from network further, lift Consumer's Experience.
Fig. 4 is the flow chart of the player method of video in browser of mobile terminal according to further embodiment of the present invention.
The interim of video is created in main frame(temp)File, the video data being received by temp file storage, and according to temp
File plays out the lookup of video.Temp is temporary folder, is generally arranged on the C of main frame:\Documents
And Settings Administrator Local Settings in naturally it is also possible to be set according to the requirement of user or system
Put in other positions, a lot of temporary files are placed on here, collection, browse the temporary file of webpage, editing files etc..
Specifically, as shown in figure 4, in browser of mobile terminal the player method of video comprise the following steps.
S401, receives the video information of video by network and carries out video playback, and video information is sent to main frame
Preserved.
S402, creates the temp file of video, the video data receiving by temp file storage in main frame.
Specifically, the main frame of mobile terminal can be local host local host, and local host is receiving browser
Send video information after, can create to should video temporary file temp file, by temp file store receive
The video data arriving.
S403, when the video playback adjust instruction of browser receive user, judges to whether there is and video in main frame
ID corresponding temp file.
Specifically, when user needs to return and watches the video play or reopen player, mobile terminal
During the video playback adjust instruction of receive user, the ID of the video being carried by video playback adjust instruction searches local host
In whether there is temp file corresponding with the ID of this video.
S404, when there is not temp file corresponding with the ID of video, obtains video further from network.I.e. user
This video on network can only be watched by browser.
S405, when there is temp file corresponding with the ID of video, judges to whether there is having of video in temp file
Effect data.Judge whether the video data in temp file can be play.
S406, when there are not the valid data of video, obtains video further from network.I.e. user can only pass through clear
This video on network watched by device of looking at.
S407, when there are the valid data of video, the valid data reading video from temp file play out.
Wherein, the video data storing in temp file can form a complete video can also part
Video content, the video data of storage when can make up a complete video in temp file, local host can be by
Video data is assembled into a complete video, and is shown in the playlist of mobile terminal, and user can pass through played column
This video play at any time by table.When in temp file, the video data of storage can not form a complete video, local
The video data that host also can extract storage in temp file plays out, the video data of storage in such as temp file
Include the first half content of video, then local host can play video according to the video data of storage in temp file
First half.
Wherein, the storing process of video data is carried out on the backstage of mobile terminal, and user will be not felt by this process,
While video playback, video data is stored automatically in the local host of mobile terminal.
The player method of video in browser of mobile terminal according to embodiments of the present invention, by temp file storage data
And accept inquiry, improve efficiency.
Due to the restriction of mobile terminal performance, the memory capacity of the main frame of mobile terminal is also limited, mobile whole in order to solve
The storage problem of end main frame, in one embodiment of the invention, stores the time of video information in record main frame;And at that time
Between beyond Preset Time when, remove main frame in storage video information, thus, periodically processed, storage time exceeded pre-
If the video information of time is cleared up.In another embodiment of the present invention, after user's viewing finishes video, remove
The video information of storage in main frame, thus, is cleared up after having watched.
Fig. 5 is the flow process of the player method of video according to the present invention and in the browser of mobile terminal of further embodiment
Figure.When the browser using mobile terminal carries out video playback, some video resources may be not suitable for browser and play, for example
Based on the video resource of closing agreement, mobile terminal needs to be installed and activated Flash plug-in unit and just can play out, and easily causes movement
Terminal system is lengthy and jumbled, and operates inconvenience, and Consumer's Experience is poor, in order to solve this problem, specifically, reality as shown in Figure 5
Apply example, in browser of mobile terminal, the player method of video comprises the following steps.
S501, obtains the video playback request instruction of user.
Specifically, when user wishes to play certain video, can be by the webpage of browser display in the terminal
The operation input video playing request instruction such as middle click video link, click broadcasting button.
S502, the address information of the page according to corresponding to video playback request instruction obtains video playback request instruction.
In one embodiment of the invention, address information can be URL(Uniform Resource Locator, system
One URLs), domain name etc..Specifically, browser can obtain current page according to video playback request instruction(Playing please
Seek the corresponding video page of instruction)URL information.In other embodiments of the invention, browser also can enter to URL information
Row analysis is to extract the domain name of current page, path, required parameter etc..
S503, adjusts user agent's UA parameter of browser according to address information.
In one embodiment of the invention, when the current UA parameter of browser is mismatched with address above mentioned information, clear
Device of looking at can adjust the UA parameter of browser itself according to the address information of the page.For example, if the URL letter of browser current web page
Cease for http://www.vv.tv/info, then can be http by the UA parameter adjustment of browser://www.vv.tv/info corresponds to
UA parameter.In another embodiment of the present invention, URL information http of current web page also can first be extracted://
Domain name vv.tv in www.vv.tv/info, then by the UA parameter adjustment of browser be vv.tv corresponding UA parameter.
S504, will send to service according to the video playback request message that video playback request instruction and UA parameter generate
Device, so that server returns the video being suitable to browser broadcasting according to UA parameter.
In one embodiment of the invention, the video being suitable to browser broadcasting may be based on the video of open source protocol, such as
By HTML(Hypertext Markup Language, HTML)Video in 5<video>The regarding of tag definition
Frequency etc..Specifically, server(The server of such as video website)After receiving the video playback request message of browser transmission,
First obtain video playback request message in UA parameter, then according to get UA parameter select with this UA parameter be suitable for
Based on the video source of open source protocol, it is back to browser and plays out.In one embodiment of the invention, open source protocol is
HTML5Video tag etc., closed agreement is Flashvideo etc..
S505, receives the video information of video by network and carries out video playback, and video information is sent to main frame
Preserved.
S506, when the video playback adjust instruction of browser receive user, according to video playback adjust instruction from main frame
Obtain corresponding video content in video to play out.
The player method of video in browser of mobile terminal according to embodiments of the present invention, can broadcast according to the video with user
The address information putting the corresponding page of request instruction adjusts the UA parameter of browser, so that after server can be according to adjustment
UA parameter return be suitable to browser broadcasting video, and then improve video response speed, improve Consumer's Experience.
Fig. 6 is the flow process of the player method of video in browser of mobile terminal according to the another further embodiment of the present invention
Figure.In this embodiment, browser can be advised in UA parameter according to the address information of the page corresponding to video playback request instruction
Then inquire about UA parameter corresponding with affiliated address information in storehouse, and then the UA parameter adjustment of browser is that address information is corresponding
UA parameter.Specifically, as shown in fig. 6, in browser of mobile terminal the player method of video comprise the following steps.
S601, browser obtains the video playback request instruction of user.
S602, the address of the page according to corresponding to video playback request instruction obtains video playback request instruction for the browser
Information.
S603, browser is according to address information inquiry UA parameter rule storehouse to obtain address information corresponding UA parameter.
In one embodiment of the invention, UA parameter rule storehouse is storable in mobile terminal or stores taking beyond the clouds
In business device, after browser obtains the address information of the page corresponding to video playback request instruction, can be in mobile terminal or cloud
The inquiry UA parameter corresponding with the address information obtaining in UA parameter rule storehouse in the server of end.
In another embodiment of the present invention, if not finding in UA parameter rule storehouse in the terminal and obtaining
The corresponding UA parameter of the address information that takes, then can send address information to cloud server, and beyond the clouds in server
The UA parameter corresponding with this address information is inquired about, simultaneously by the address information inquiring and UA parameter in UA parameter rule storehouse
Corresponding relation synchronized update to mobile terminal UA parameter rule storehouse.
S604, the UA parameter adjustment of browser is address information corresponding UA parameter by browser.
Specifically, in one embodiment of the invention, if the address finding and obtaining in UA parameter rule storehouse
The corresponding UA parameter of information is the current UA parameter of browser, then keep the UA parameter constant of browser;If in UA ginseng
In number rule bases, to find the UA parameter corresponding with the address information obtaining be not the current UA parameter of browser, then can will be clear
Look at device UA parameter adjustment be address information corresponding UA parameter.
S605, browser will disappear according to the video playback request that the UA parameter after video playback request instruction and adjustment generates
Breath sends to server, so that server returns the video being suitable to browser broadcasting according to UA parameter.
S606, receives the video information of video by network and carries out video playback, and video information is sent to main frame
Preserved.
S607, when the video playback adjust instruction of browser receive user, according to video playback adjust instruction from main frame
Obtain corresponding video content in video to play out.
According to embodiments of the present invention for the video broadcasting method in browser of mobile terminal, can be in UA parameter rule storehouse
Middle inquiry and the address information corresponding UA parameter obtaining, and the UA parameter adjustment of browser is the UA parameter inquiring, energy
Enough UA parameters more accurately updating browser, and then provide the user the video resource being more suitable for playing, improve further and use
Family is experienced.
In order to realize above-described embodiment, the present invention also proposes a kind of Play System of video in browser of mobile terminal.
Fig. 7 is the flow chart of the Play System of video in browser of mobile terminal according to an embodiment of the invention.As
Shown in Fig. 7, in browser of mobile terminal, the Play System of video includes browser 10 and the main frame 20 being in communication with each other with browser.
Specifically, browser 10 is used for receiving the video information of video by network and carrying out video playback, and by video
Information sends to main frame 20, and when the video playback adjust instruction of browser 10 receive user, is adjusted according to video playback
Instruction obtains corresponding video content video from main frame and plays out.
In one embodiment of the invention, video information may include in browser 10 the video information of broadcasting and/or
The video information pre-reading.Specifically, when user watches the video on network by the browser 10 of mobile terminal, mobile terminal
Browser 10 be in communication with each other with the main frame 20 of mobile terminal, the video information of broadcasting can be preserved in main frame 20, also can protect
Deposit the video information pre-reading.
Main frame 20 is used for receiving the video information of browser 10 transmission and preserving, and accepts the inquiry of browser 10.
For example, when user watches the video on network by the browser 10 of mobile terminal, if in one section of video of viewing
Afterwards, when returning the video seen, the browser 10 of mobile terminal receives the video playback adjust instruction of user,
This video playback adjust instruction is playback play instruction, and browser 10 obtains video from main frame 20 according to this playback play instruction
Corresponding video content plays out.
And for example, when user watches the video on network by the browser 10 of mobile terminal, often pre-read one section of video,
If the user while exiting broadcast interface before watching the audio frequency and video pre-reading, when user needs to return the video that viewing had been play
Or when reopening player, or, user thinks to watch the one section of video pre-reading in advance, the video that is, user's viewing has pre-read
When, the browser 10 of mobile terminal receives the video playback adjust instruction of user, and this video playback adjust instruction is to pre-read to regard
The play instruction of frequency, browser 10 obtains corresponding video content video according to the play instruction that this pre-reads video from main frame 20
Play out.
The Play System of video in browser of mobile terminal according to embodiments of the present invention, when user passes through mobile terminal
During browser viewing video, the video information of broadcasting and/or the video information pre-reading can be preserved by the browser of mobile terminal
In the main frame of mobile terminal, so when user needs again to watch video or when wanting to watch the video pre-reading, Ke Yicong
Extract video line in the main frame of mobile terminal to play it is not necessary to consume extra mobile terminal flow, economize on resources, and playing
When also will not be affected by network signal quality, video information is stored in main frame simultaneously, saves the slow of browser
Deposit, the store function of browser is improved, the speed of service of browser is unaffected, thus improving Consumer's Experience.
In one embodiment of the invention, video information also includes the ID of video.Thus according to the ID of video and can regard
Frequency is play adjust instruction and is played out control.
Specifically, in one embodiment of the invention, browser 10 determines accordingly according to the ID of video from main frame 20
Video, and corresponding play time is determined according to video playback adjust instruction, and according to play time from video
Corresponding video content is selected to play out.
In another embodiment of the present invention, if the ID that browser 10 is additionally operable to according to video cannot obtain from main frame 20
Take corresponding video, then obtain video further from network.
According to above-mentioned two embodiment of the present invention, it is stored in the video in main frame 20 by the ID positioning of video, improves
Efficiency, and control is played out by play time, further raising efficiency.
Due to the restriction of mobile terminal performance, the memory capacity of the main frame of mobile terminal is also limited, mobile whole in order to solve
The storage problem of end main frame, in one embodiment of the invention, main frame 20 is additionally operable to record and stores video information in main frame 20
Time, and the time exceed Preset Time when, remove main frame 20 in storage video information, thus, periodically processed, will
The video information that storage time exceedes Preset Time is cleared up.In another embodiment of the present invention, browser 10 is also used
After finishing video in user's viewing, remove the video information of storage in main frame 20.Thus, carry out clear after having watched
Reason.
The temp file of establishment video in main frame, the video data being received by temp file storage, and according to
Temp file plays out the lookup of video.In one particular embodiment of the present invention, main frame 20 is additionally operable to create video
Temp file, the video data being received by temp file storage, specifically, the main frame 20 of mobile terminal can be local host
Local host, local host, after receiving the video information of browser 10 transmission, can create to should video
Temporary file temp file, the video data being received by temp file storage.
In another specific embodiment of the present invention, browser 10 is additionally operable to judge to whether there is and video in main frame 20
ID corresponding temp file, when there is not temp file corresponding with the ID of video, further from network obtain video;
When there is temp file corresponding with the ID of video, judging in temp file, to whether there is the valid data of video, not depositing
In the valid data of video, obtain video further from network;When there are the valid data of video, from temp file
The valid data reading video play out.
Wherein, the video data storing in temp file can form a complete video can also part
Video content, the video data of storage when can make up a complete video in temp file, local host can be by
Video data is assembled into a complete video, and is shown in the playlist of mobile terminal, and user can pass through played column
This video play at any time by table.When in temp file, the video data of storage can not form a complete video, local
The video data that host also can extract storage in temp file plays out, the video data of storage in such as temp file
Include the first half content of video, then local host can play video according to the video data of storage in temp file
First half.
Wherein, the storing process of video data is carried out on the backstage of mobile terminal, and user will be not felt by this process,
While video playback, video data is stored automatically in the local host of mobile terminal.
When the browser using mobile terminal carries out video playback, some video resources may be not suitable for browser and broadcast
Put, for example the video resource based on closing agreement, mobile terminal needs to be installed and activated Flash plug-in unit and just can play out, easily
Cause mobile terminal system lengthy and jumbled, and operate inconvenience, Consumer's Experience is poor, in order to solve this problem, the one of the present invention
In individual embodiment, browser 10 is additionally operable to obtain the video playback request instruction of user, and is obtained according to video playback request instruction
Take the address information of the page corresponding to video playback request instruction, and the user's generation adjusting browser 10 according to address information
Reason UA parameter, and will be sent to server according to the video playback request message that video playback request instruction and UA parameter generate,
So that server returns the video being suitable to browser 10 broadcasting according to UA parameter.
In one embodiment of the invention, address information can be URL(Uniform Resource Locator, system
One URLs), domain name etc..Specifically, browser 10 can obtain current page according to video playback request instruction(Play
Video page corresponding to request instruction)URL information.In other embodiments of the invention, browser 10 also can be believed to URL
Breath be analyzed with extract current page domain name, path, required parameter etc..
In one embodiment of the invention, when the current UA parameter of browser 10 is mismatched with address above mentioned information,
Browser 10 can adjust the UA parameter of browser itself according to the address information of the page.For example, if browser 10 current web page
URL information be http://www.vv.tv/info, then can be http by the UA parameter adjustment of browser 10://
Www.vv.tv/info corresponding UA parameter.In another embodiment of the present invention, the URL letter of current web page also can first be extracted
Breath http:Domain name vv.tv in //www.vv.tv/info, then that the UA parameter adjustment of browser 10 is corresponding for vv.tv
UA parameter.
In one embodiment of the invention, the video being suitable to browser 10 broadcasting may be based on the video of open source protocol,
As by HTML(Hypertext Markup Language, HTML)Video in 5<video>Tag definition
Video etc..Specifically, server(The server of such as video website)The video playback request receiving browser 10 transmission disappears
After breath, obtain the UA parameter in video playback request message first, then to obtain the selection of UA parameter and this UA parameter according to getting
The suitable video source based on open source protocol, is back to browser 10 and plays out.In one embodiment of the invention, increase income
Agreement is HTML5Video tag etc., and closed agreement is Flashvideo etc..
In another embodiment of the present invention, browser 10 is additionally operable to inquire about UA parameter rule according to described address information
Storehouse is obtaining address information corresponding UA parameter, and the UA parameter adjustment of browser 10 is that the corresponding UA of address information joins
Number.
In one embodiment of the invention, UA parameter rule storehouse is storable in mobile terminal or stores taking beyond the clouds
In business device, after browser 10 obtains the address information of the page corresponding to video playback request instruction, can in mobile terminal or
The inquiry UA parameter corresponding with the address information obtaining in UA parameter rule storehouse in cloud server.
In another embodiment of the present invention, if not finding in UA parameter rule storehouse in the terminal and obtaining
The corresponding UA parameter of the address information that takes, then can send address information to cloud server, and beyond the clouds in server
The UA parameter corresponding with this address information is inquired about, simultaneously by the address information inquiring and UA parameter in UA parameter rule storehouse
Corresponding relation synchronized update to mobile terminal UA parameter rule storehouse.
In order to realize above-described embodiment, the present invention also proposes a kind of mobile terminal.
A kind of mobile terminal, including:Shell, screen, processor and circuit board;Screen is placed on shell, and circuit board is pacified
Put the interior volume surrounding in shell, processor is arranged on circuit boards;Processor is used for processing data, specifically clear in processor
Look at device and the main frame being in communication with each other with browser, processor specifically for:
The video information of video is received by network and carries out video playback, and video information is sent protected to main frame
Deposit, and when the video playback adjust instruction of browser receive user, obtained from main frame according to video playback adjust instruction and regard
In frequency, corresponding video content plays out.
In one embodiment of the invention, video information may include in browser the video information of broadcasting and/or pre-
The video information read.Specifically, when user watches the video on network by the browser of mobile terminal, mobile terminal clear
Device of looking at is in communication with each other with the main frame of mobile terminal, can preserve the video information of broadcasting in main frame, also can preserve regarding of pre-reading
Frequency information.
For example, when user watches the video on network by the browser of mobile terminal, if one section of video of viewing it
Afterwards, when returning the video seen, the browser of mobile terminal receives the video playback adjust instruction of user, and this regards
It is playback play instruction that frequency plays adjust instruction, and browser obtains corresponding video regarding according to this playback play instruction from main frame
Frequency content plays out.
And for example, when user watches the video on network by the browser of mobile terminal, often pre-read one section of video, such as
Fruit user exited broadcast interface before the audio frequency and video that pre-read of viewing, when user need to return the video that viewing play or
When person reopens player, or, user thinks to watch the one section of video pre-reading in advance, the video that is, user's viewing has pre-read
When, the browser of mobile terminal receives the video playback adjust instruction of user, and this video playback adjust instruction is to pre-read video
Play instruction, browser pre-reads the play instruction of video according to this and obtains corresponding video content video from main frame to be broadcast
Put.
Mobile terminal according to embodiments of the present invention, when user watches video by the browser of mobile terminal, mobile
The video information of broadcasting and/or the video information pre-reading can be saved in the main frame of mobile terminal for the browser of terminal, this
Sample, when user needs again to watch video or when wanting to watch the video pre-reading, can extract from the main frame of mobile terminal and regard
Frequency row is play it is not necessary to consume extra mobile terminal flow, economizes on resources, and also will not be believed by network when playing
The impact of number quality, video information is stored in main frame simultaneously, saves the caching of browser, and the store function of browser obtains
Improve, the speed of service of browser is unaffected, thus improving Consumer's Experience.
In one embodiment of the invention, video information also includes the ID of video, thus according to the ID of video and can regard
Frequency is play adjust instruction and is played out control.
Specifically, in one embodiment of the invention, processor also particularly useful for:ID according to video is true from main frame
Fixed corresponding video;Corresponding play time is determined according to video playback adjust instruction;And according to play time from regarding
Corresponding video content is selected to play out in frequency.
In another embodiment of the present invention, processor also particularly useful for:If the ID according to video cannot be from main frame
Obtain corresponding video, then obtain video further from network.
According to above-mentioned two embodiment of the present invention, it is stored in the video in main frame 20 by the ID positioning of video, improves
Efficiency, and control is played out by play time, further raising efficiency.
Due to the restriction of mobile terminal performance, the memory capacity of the main frame of mobile terminal is also limited, mobile whole in order to solve
The storage problem of end main frame, in one embodiment of the invention, processor also particularly useful for:Storage video letter in record main frame
The time of breath;And when the time exceeding Preset Time, remove the video information storing in main frame, thus, periodically processed,
The video information that storage time is exceeded Preset Time is cleared up.In another embodiment of the present invention, processor also has
Body is used for:After user's viewing finishes video, remove the video information of storage in main frame, thus, carry out after having watched
Cleaning.
The temp file of establishment video in main frame, the video data being received by temp file storage, and according to
Temp file plays out the lookup of video.In one particular embodiment of the present invention, processor is also particularly useful in main frame
The middle temp file creating described video, the video data being received by temp file storage, specifically, the master of mobile terminal
Machine can be local host local host, and local host, after receiving the video information of browser transmission, can create
To should video temporary file temp file, the video data being received by temp file storage.
In another specific embodiment of the present invention, processor also particularly useful for:Judge to whether there is in main frame and regard
The ID corresponding temp file of frequency, when there is not temp file corresponding with the ID of video, obtaining from network further and regarding
Frequently;When there is temp file corresponding with the ID of video, judge to whether there is the valid data of video in temp file, not
Exist video valid data when, further from network obtain video;When there are the valid data of video, from temp file
The middle valid data reading video play out.
Wherein, the video data storing in temp file can form a complete video can also part
Video content, the video data of storage when can make up a complete video in temp file, local host can be by
Video data is assembled into a complete video, and is shown in the playlist of mobile terminal, and user can pass through played column
This video play at any time by table.When in temp file, the video data of storage can not form a complete video, local
The video data that host also can extract storage in temp file plays out, the video data of storage in such as temp file
Include the first half content of video, then local host can play video according to the video data of storage in temp file
First half.
Wherein, the storing process of video data is carried out on the backstage of mobile terminal, and user will be not felt by this process,
While video playback, video data is stored automatically in the local host of mobile terminal.
When the browser using mobile terminal carries out video playback, some video resources may be not suitable for browser and broadcast
Put, for example the video resource based on closing agreement, mobile terminal needs to be installed and activated Flash plug-in unit and just can play out, easily
Cause mobile terminal system lengthy and jumbled, and operate inconvenience, Consumer's Experience is poor, in order to solve this problem, the one of the present invention
In individual embodiment, processor also particularly useful for:Obtain the video playback request instruction of user, obtained according to video playback request instruction
Take the address information of the page corresponding to video playback request instruction, and the user agent adjusting browser according to address information
UA parameter, and will be sent to server according to the video playback request message that video playback request instruction and UA parameter generate, with
Server is made to return the video being suitable to browser broadcasting according to UA parameter.
In one embodiment of the invention, processor also particularly useful for:According to address information inquiry UA parameter rule storehouse
To obtain address information corresponding UA parameter, and the UA parameter adjustment of browser is address information corresponding UA parameter.
In another embodiment of the present invention, if not finding in UA parameter rule storehouse in the terminal and obtaining
The corresponding UA parameter of the address information that takes, then can send address information to cloud server, and beyond the clouds in server
The UA parameter corresponding with this address information is inquired about, simultaneously by the address information inquiring and UA parameter in UA parameter rule storehouse
Corresponding relation synchronized update to mobile terminal UA parameter rule storehouse.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned
In embodiment, the software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realizing.For example, if realized with hardware, and the same in another embodiment, can use well known in the art under
Any one of row technology or their combination are realizing:There is the logic gates for data-signal is realized with logic function
Discrete logic, there is the special IC of suitable combinational logic gate circuit, programmable gate array(PGA), scene
Programmable gate array(FPGA)Deng.
In the description of this specification, reference term " embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or the spy describing with reference to this embodiment or example
Point is contained at least one embodiment or the example of the present invention.In this manual, to the schematic representation of above-mentioned term not
Necessarily refer to identical embodiment or example.And, the specific features of description, structure, material or feature can be any
One or more embodiments or example in combine in an appropriate manner.
In each method embodiment of the present invention, the priority that the sequence number of described each step can not be used for limiting each step is suitable
Sequence, for those of ordinary skill in the art, on the premise of not paying creative work, the priority change to each step
Within protection scope of the present invention.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that:Not
Multiple changes, modification, replacement and modification can be carried out to these embodiments in the case of the principle of the disengaging present invention and objective, this
The scope of invention is limited by claim and its equivalent.