CN104811795B - Online Video playback method and device - Google Patents

Online Video playback method and device Download PDF

Info

Publication number
CN104811795B
CN104811795B CN201410035618.1A CN201410035618A CN104811795B CN 104811795 B CN104811795 B CN 104811795B CN 201410035618 A CN201410035618 A CN 201410035618A CN 104811795 B CN104811795 B CN 104811795B
Authority
CN
China
Prior art keywords
video
video file
source address
page
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410035618.1A
Other languages
Chinese (zh)
Other versions
CN104811795A (en
Inventor
张琦
宋章章
曾崴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Cheetah Mobile Technology Co Ltd
Original Assignee
Beijing Cheetah Mobile Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Cheetah Mobile Technology Co Ltd filed Critical Beijing Cheetah Mobile Technology Co Ltd
Priority to CN201410035618.1A priority Critical patent/CN104811795B/en
Publication of CN104811795A publication Critical patent/CN104811795A/en
Application granted granted Critical
Publication of CN104811795B publication Critical patent/CN104811795B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of Online Video playback method and devices.The Online Video playback method, including:When browser opens a page, judge whether the page of the opening carries video file;If the page of the opening carries video file, video player associated with the browser is called to parse the source address of the video file;When detecting the trigger event for playing the video file, the video player is called to play the video file corresponding to the source address.In this programme, when opening the page with video file, just video player associated with the browser is called to parse the source address of the video file, and not after user clicks playing video file, therefore, the stand-by period clicked when playing Online Video needed for user can be reduced, the ornamental experience of the video to improve user.

Description

Online Video playback method and device
Technical field
The present invention relates to internet arena, more particularly to a kind of Online Video playback method and device.
Background technology
With the development that science and technology is at full speed, various electronic equipments are constantly abundant and facilitate popular life.Due to profit There are the advantages such as convenient and efficient, saving resource with electronic equipment processing information so that electronic equipment becomes people’s lives or work An indispensable part in work.Wherein, Internet resources can be accessed by the browser in electronic equipment, such as: Video, webpage etc..
However in some browsers, due to being not provided with the automatic video player for playing video, when user opens certain When the broadcasting page of one video file, video website website can be according to browser UA(User Agent, user agent), in the page It is middle that the source address of the video file is provided, and the ability for calling predetermined video player is provided;And video is triggered when the user clicks After the button that file plays, browser can call predetermined video player parsing source address, and then it is corresponding to play the source address Therefore video file after the button that user's clicking trigger video file plays, needs to wait for certain time that could start to play The video file, this has influenced the ornamental experience of video of user.
Invention content
Based on the above issues, the embodiment of the invention discloses a kind of Online Video playback method and devices, are clicked with reducing Stand-by period when playing Online Video needed for user, the ornamental experience of video to improve user.Technical solution is as follows:
In a first aspect, an embodiment of the present invention provides a kind of Online Video playback methods, including:
When browser opens a page, judge whether the page of the opening carries video file;
If the page of the opening carries video file, video player parsing associated with the browser is called The source address of the video file;
When detecting the trigger event for playing the video file, the video player is called to play the source address institute Corresponding video file.
Optionally, call associated with browser video player parse the video file source address it Afterwards, further include:
Call the data for the video file that the video player loads corresponding to the source address.
Optionally, the data for calling the video player to load the video file corresponding to the source address, packet It includes:
The video player is called to load the data of the scheduled duration of the video file corresponding to the source address.
Optionally, after the video data for starting to play the scheduled duration, continue the data for loading the video file.
Optionally, the Online Video playback method that the embodiment of the present invention is provided further includes:
When exiting the page, release loads the occupied memory source of data of the video file.
Second aspect, the embodiment of the present invention additionally provide a kind of Online Video playing device, including:
Judgment module when being used to open a page, judges whether the page of the opening carries video file;
Source address parsing module, if judging that the page of the opening carries video file for the judgment module When, call video player associated with the browser to parse the source address of the video file;
Video playback module, for when detecting the trigger event for playing the video file, calling the video playing Device plays the video file corresponding to the source address.
Optionally, a kind of Online Video playing device that the embodiment of the present invention is provided further includes:
Load-on module, in the source for calling video player associated with the browser to parse the video file After address, the data for the video file that the video player loads corresponding to the source address are called.
Optionally, the load-on module, including:
Loading unit, in the source for calling video player associated with the browser to parse the video file After address, the video player is called to load the number of the scheduled duration of the video file corresponding to the source address According to.
Optionally, the loading unit is additionally operable to after the video data for starting to play the scheduled duration, continues to load The data of the video file.
Optionally, a kind of Online Video playing device that the embodiment of the present invention is provided further includes:
Memory release module, for when exiting the page, the data that release loads the video file to be occupied Memory source.
In the present solution, when opening the page with video file, video playing associated with the browser is just called Device parses the source address of the video file, and not after user clicks playing video file, therefore, click can be reduced and played Stand-by period when Online Video needed for user, the ornamental experience of video to improve user.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
A kind of the first flow chart for Online Video playback method that Fig. 1 is provided by the embodiment of the present invention;
A kind of second of flow chart of Online Video playback method that Fig. 2 is provided by the embodiment of the present invention;
A kind of the first structural schematic diagram for Online Video playing device that Fig. 3 is provided by the embodiment of the present invention;
A kind of second of structural schematic diagram of Online Video playing device that Fig. 4 is provided by the embodiment of the present invention;
A kind of the third structural schematic diagram for Online Video playing device that Fig. 5 is provided by the embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
Stand-by period when clicking broadcasting Online Video to reduce needed for user, the video to improve user watch body It tests, an embodiment of the present invention provides a kind of Online Video playback method and devices.
A kind of Online Video playback method is provided to the embodiment of the present invention first below to be introduced.
It is suitably mounted to electronics it should be noted that the embodiment of the present invention provides a kind of Online Video playback method and sets Standby browser.In practical applications, which can be smart mobile phone, laptop, tablet computer etc., the browsing Device is not installed with the video player that can play video automatically(Such as:Flash player).
As shown in Figure 1, a kind of Online Video playback method, may include:
S101 judges whether the page of the opening carries video file when browser opens a page;
It is understood that there are many ways to judging whether the opened page carries video file, such as:Judge institute Whether the URL corresponding to the page of opening is not limited thereto certainly containing identifier specific to video file.
S102 calls video player associated with the browser if the page of the opening carries video file Parse the source address of the video file;
Wherein, the associated video player of the browser can be that video player built in browser, system are included Video player or locally-installed video player etc..
S103 calls the video player to play the source address when detecting the trigger event for playing the video file Corresponding video file.
Wherein, when detecting the trigger event for playing the video file, show that user wishes to watch the video, therefore, Video player can be called to play the video file corresponding to the source address.Wherein, the triggering thing of the video file is played Part can be:The button for playing the video is clicked, is not limited thereto certainly.
In the present solution, when opening the page with video file, video playing associated with the browser is just called Device parses the source address of the video file, and not after user clicks playing video file, therefore, click can be reduced and played Stand-by period when Online Video needed for user, the ornamental experience of video to improve user.
Optionally, stand-by period when clicking broadcasting Online Video to further decrease needed for user, to improve use The ornamental experience of the video at family in an alternate embodiment of the present invention where, can be with as shown in Fig. 2, between above-mentioned S102 and S103 Including:
S200 calls the data for the video file that the video player loads corresponding to the source address;
It is understood that the load based on the data to the video file corresponding to source address, is somebody's turn to do when detecting to play When the trigger event of video file, the video player can be called to play the data of the video file loaded.
Further, in order to avoid load Online Video occupies more memory source, described calling video playing Device loads the data of the video file corresponding to the source address(S200), may include:
The video player is called to load the data of the scheduled duration of video file corresponding to the source address.Wherein, should Scheduled duration can be set according to practical application scene, such as:30s, 60s are not limited thereto certainly.And in order to ensure Continuity is played, after the video data for starting to play scheduled duration, the data for loading the video file can be continued.
Optionally, when user exits current page, the occupied memory of data for loading the video file can be discharged Resource.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of Online Video playing device, such as Fig. 3 institutes Show, described device may include:
Judgment module 310 when being used to open a page, judges whether the page of the opening carries video file;
Source address parsing module 320, if judging that the page of the opening carries video for the judgment module 310 When file, video player associated with the browser is called to parse the source address of the video file;
Video playback module 330, for when detecting the trigger event for playing the video file, the video being called to broadcast It puts device and plays video file corresponding to the source address.
In the present solution, when opening the page with video file, video playing associated with the browser is just called Device parses the source address of the video file, and not after user clicks playing video file, therefore, click can be reduced and played Stand-by period when Online Video needed for user, the ornamental experience of video to improve user.
Further, it as shown in figure 4, the embodiment of the present invention provides a kind of Online Video playing device, can also wrap It includes:
Load-on module 340, for calling video player associated with the browser to parse the video file Source address after, call the data for the video file that the video player loads corresponding to the source address.
Specifically, the load-on module 340, may include:Loading unit, for associated with the browser in calling Video player parse the source address of the video file after, call the video player to load the source address institute right The data of the scheduled duration for the video file answered.Further, the loading unit is additionally operable to starting described in broadcasting After the video data of scheduled duration, continue the data for loading the video file.
Further, a kind of Online Video playing device that the embodiment of the present invention is provided, as shown in figure 5, can be with Including:Memory release module 350, for when exiting the page, the data that release loads the video file to be occupied Memory source.
For system embodiments, since it is substantially similar to the method embodiment, so fairly simple, the correlation of description Place illustrates referring to the part of embodiment of the method.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
One of ordinary skill in the art will appreciate that all or part of step in realization above method embodiment is can It is completed with instructing relevant hardware by program, the program can be stored in computer read/write memory medium, The storage medium designated herein obtained, such as:ROM/RAM, magnetic disc, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (10)

1. a kind of Online Video playback method, which is characterized in that including:
When browser opens a page, judge whether the page of the opening carries video file;
If the page of the opening carries video file, call described in video player parsing associated with the browser The source address of video file;
When detecting the trigger event for playing the video file, the video player is called to play corresponding to the source address Video file.
2. according to the method described in claim 1, it is characterized in that, calling video player associated with the browser After the source address for parsing the video file, further include:
Call the data for the video file that the video player loads corresponding to the source address.
3. according to the method described in claim 2, it is characterized in that, described call the video player to load the source address The data of corresponding video file, including:
The video player is called to load the data of the scheduled duration of the video file corresponding to the source address.
4. according to the method described in claim 3, it is characterized in that, after the video data for starting to play the scheduled duration, Continue to load the data of the video file.
5. according to the described method of any one of claim 1-4, which is characterized in that further include:
When exiting the page, release loads the occupied memory source of data of the video file.
6. a kind of Online Video playing device, which is characterized in that including:
Judgment module, for when browser opens a page, judging whether the page of the opening carries video file;
Source address parsing module is adjusted if judge that the page of the opening carries video file for the judgment module The source address of the video file is parsed with video player associated with the browser;
Video playback module, for when detecting the trigger event for playing the video file, the video player being called to broadcast Put the video file corresponding to the source address.
7. device according to claim 6, which is characterized in that further include:
Load-on module, in the source address for calling video player associated with the browser to parse the video file Later, the data for the video file that the video player loads corresponding to the source address are called.
8. device according to claim 7, which is characterized in that the load-on module, including:
Loading unit, in the source address for calling video player associated with the browser to parse the video file Later, the video player is called to load the data of the scheduled duration of the video file corresponding to the source address.
9. device according to claim 8, which is characterized in that the loading unit is additionally operable to starting to play described make a reservation for After the video data of duration, continue the data for loading the video file.
10. according to claim 6-9 any one of them devices, which is characterized in that further include:
Memory release module, for when exiting the page, release to load the occupied memory of data of the video file Resource.
CN201410035618.1A 2014-01-24 2014-01-24 Online Video playback method and device Active CN104811795B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410035618.1A CN104811795B (en) 2014-01-24 2014-01-24 Online Video playback method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410035618.1A CN104811795B (en) 2014-01-24 2014-01-24 Online Video playback method and device

Publications (2)

Publication Number Publication Date
CN104811795A CN104811795A (en) 2015-07-29
CN104811795B true CN104811795B (en) 2018-09-11

Family

ID=53696209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410035618.1A Active CN104811795B (en) 2014-01-24 2014-01-24 Online Video playback method and device

Country Status (1)

Country Link
CN (1) CN104811795B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106782623A (en) * 2017-01-12 2017-05-31 浙江新盛蓝科技有限公司 A kind of video player
CN107801089A (en) * 2017-11-22 2018-03-13 重庆人人生活家科技发展有限公司 Intelligent TV set broadcasting control system
CN108040279B (en) * 2017-12-07 2021-01-08 麒麟合盛网络技术股份有限公司 Video acceleration method and device
CN111083569B (en) 2018-10-18 2021-11-05 杭州海康威视数字技术股份有限公司 Video playing method and device
CN111800667A (en) * 2020-07-28 2020-10-20 深圳Tcl数字技术有限公司 Browser video playing method, video playing device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883269A (en) * 2010-04-15 2010-11-10 西安酷派软件科技有限公司 Method, device and mobile terminal for playing stream media
CN102065108A (en) * 2009-11-17 2011-05-18 中国移动通信集团广东有限公司 Method, wireless communication terminal and client browser for realizing pre-download
CN102789390A (en) * 2012-08-24 2012-11-21 乐视网信息技术(北京)股份有限公司 Method for realizing startup play of network video of Android system
CN102843605A (en) * 2012-08-22 2012-12-26 Tcl集团股份有限公司 Video play method and device thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065108A (en) * 2009-11-17 2011-05-18 中国移动通信集团广东有限公司 Method, wireless communication terminal and client browser for realizing pre-download
CN101883269A (en) * 2010-04-15 2010-11-10 西安酷派软件科技有限公司 Method, device and mobile terminal for playing stream media
CN102843605A (en) * 2012-08-22 2012-12-26 Tcl集团股份有限公司 Video play method and device thereof
CN102789390A (en) * 2012-08-24 2012-11-21 乐视网信息技术(北京)股份有限公司 Method for realizing startup play of network video of Android system

Also Published As

Publication number Publication date
CN104811795A (en) 2015-07-29

Similar Documents

Publication Publication Date Title
CN104811795B (en) Online Video playback method and device
CN103686414B (en) Internet video playback method and device
TWI693823B (en) Information display method and device
CN103841268A (en) Information processing method and information processing device
CN103856812B (en) A kind of video broadcasting method and device
CN101984404B (en) Method and device for controlling parallel running of application programs and terminal having device
CN110110262A (en) Browser EMS memory management process, device and equipment
CN103618942A (en) Smart television, as well as method and device for playing browser webpage video of smart television
CN106445449B (en) A kind of audio focal point control device and method
CN102265587A (en) A clock alarming method and a device thereof
CN103618936A (en) Smart television, as well as method and device for pre-downloading link pages in browser of smart television
CN103596057A (en) Intelligent-television media player and playing continuing control method thereof, and intelligent television
US20180082340A1 (en) Pausing an advertisement
CN102981873A (en) Displaying method and device for waiting interface
CN105824542A (en) Method and apparatus for starting application functions
WO2008130683A9 (en) Method and apparatus for tracking user location within video or audio content streamed to a mobile handset
CN103763303A (en) Method and device for drama series playing
CN103686381A (en) Smart television and method and device for processing video playing records in browser of smart television
JP2017538328A (en) Promotion information processing method, apparatus, device, and computer storage medium
CN104601535B (en) Method for processing video frequency and system
CN108597546A (en) The background music for recalling video determines method and relevant device
CN104598571A (en) Method and device for playing multimedia resource
CN103763575B (en) A kind of programme method of combination and device
CN105706055A (en) Method and device for processing application of mobile terminal
CN104615432B (en) Splash screen information processing method and client

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100041 A-0071 2, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Beijing cheetah Mobile Technology Co., Ltd.

Address before: 100041 1100A 3, 3 West Road, Badachu high tech park, Shijingshan District, Beijing.

Applicant before: SHELL INTERNET (BEIJING) SECURITY TECHNOLOGY CO., LTD.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant