CN104811795A - Online video playing method and online video playing device - Google Patents

Online video playing method and online video playing device Download PDF

Info

Publication number
CN104811795A
CN104811795A CN201410035618.1A CN201410035618A CN104811795A CN 104811795 A CN104811795 A CN 104811795A CN 201410035618 A CN201410035618 A CN 201410035618A CN 104811795 A CN104811795 A CN 104811795A
Authority
CN
China
Prior art keywords
video
video file
source address
data
video player
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.)
Granted
Application number
CN201410035618.1A
Other languages
Chinese (zh)
Other versions
CN104811795B (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.)
Shell Internet Beijing Security Technology Co Ltd
Original Assignee
Shell Internet Beijing Security 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 Shell Internet Beijing Security Technology Co Ltd filed Critical Shell Internet Beijing Security 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

Embodiments of the invention disclose an online video playing method and an online video playing device. The online video playing method comprises the following steps: when a browser opens a page, whether the opened page is provided with a video file is judged; if the opened page is provided with a video file, a video player associated with the browser is called to parse the source address of the video file; and when a trigger event for playing the video file is detected, the video player is called to play a video file corresponding to the source address. According to the scheme, the video player associated with the browser is called to parse the source address of the video file when the page provided with the video file is opened instead of after a user clicks to play the video file. Therefore, the waiting time for users to click to play an online video can be reduced, and the video viewing experience of users can be improved.

Description

Online Video player method and device
Technical field
The present invention relates to internet arena, particularly a kind of Online Video player method and device.
Background technology
Along with the development that science and technology is at full speed, various electronic equipment constantly enriches and facilitates popular life.Owing to utilizing electronic equipment process information to have the advantages such as convenient and swift, saving resource, make the part that electronic equipment becomes indispensable in the life of people or work.Wherein, can accesses network resource by being arranged on browser in electronic equipment, such as: video, webpage etc.
But in some browsers, owing to not being provided with the video player of automatic displaying video, when user opens the broadcasting page of a certain video file, video website website can according to browser UA(User Agent, user agent), the source address of this video file is provided in the page, and the ability calling predetermined video player is provided; And after the button of user's clicking trigger video file broadcasting, browser can call predetermined video player and resolve source address, and then play video file corresponding to this source address, therefore, after the button that user's clicking trigger video file is play, need to wait for that certain hour could start to play this video file, this video having had influence on user views and admires experience.
Summary of the invention
Based on the problems referred to above, the embodiment of the invention discloses a kind of Online Video player method and device, stand-by period when clicking broadcasting Online Video to reduce needed for user, thus the video improving user views and admires experience.Technical scheme is as follows:
First aspect, embodiments provides a kind of Online Video player method, comprising:
When a page opened by browser, whether the page opened described in judgement is with video file;
If described in the page opened with video file, call the source address that the video player be associated with described browser resolves described video file;
When detect play the trigger event of this video file time, call described video player and play video file corresponding to described source address.
Optionally, after calling the video player be associated with described browser and resolving the source address of described video file, also comprise:
Call the data that described video player loads the video file corresponding to described source address.
Optionally, described in call the data that described video player loads the video file corresponding to described source address, comprising:
Call the data that described video player loads the scheduled duration of the described video file corresponding to described source address.
Optionally, after starting to play the video data of described scheduled duration, continue the data loading described video file.
Optionally, the Online Video player method that the embodiment of the present invention provides also comprises:
When exiting the described page, release loads the memory source shared by data of described video file.
Second aspect, the embodiment of the present invention additionally provides a kind of Online Video playing device, comprising:
Judge module, during for opening a page, whether the page opened described in judgement is with video file;
Source address parsing module, if when the page opened described in judging for described judge module is with video file, calls the source address that the video player be associated with described browser resolves described video file;
Video playback module, for when detect play the trigger event of this video file time, call described video player and play video file corresponding to described source address.
Optionally, a kind of Online Video playing device that the embodiment of the present invention provides also comprises:
Load-on module, for after calling the video player be associated with described browser and resolving the source address of described video file, calls the data that described video player loads the video file corresponding to described source address.
Optionally, described load-on module, comprising:
Loading unit, for after calling the video player be associated with described browser and resolving the source address of described video file, calls the data that described video player loads the scheduled duration of the described video file corresponding to described source address.
Optionally, described loading unit, also for after starting to play the video data of described scheduled duration, continues the data loading described video file.
Optionally, a kind of Online Video playing device that the embodiment of the present invention provides also comprises:
Internal memory release module, for when exiting the described page, release loads the memory source shared by data of described video file.
In this programme, when opening the page with video file, just the source address that the video player be associated with this browser resolves this video file is called, and not after user clicks playing video file, therefore, can reduce the stand-by period clicked when playing Online Video needed for user, thus the video improving user views and admires experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The first flow chart of a kind of Online Video player method that Fig. 1 provides for the embodiment of the present invention;
The second flow chart of a kind of Online Video player method that Fig. 2 provides for the embodiment of the present invention;
The first structural representation of a kind of Online Video playing device that Fig. 3 provides for the embodiment of the present invention;
The second structural representation of a kind of Online Video playing device that Fig. 4 provides for the embodiment of the present invention;
The third structural representation of a kind of Online Video playing device that Fig. 5 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Stand-by period when clicking broadcasting Online Video to reduce needed for user, thus the video improving user views and admires experience, embodiments provides a kind of Online Video player method and device.
First a kind of Online Video player method is provided to be introduced to the embodiment of the present invention below.
It should be noted that, the embodiment of the present invention provide a kind of Online Video player method to be applicable to be arranged on the browser of electronic equipment.In actual applications, this electronic equipment can be smart mobile phone, notebook computer, panel computer etc., and this browser is not provided with can the video player (such as: flash player) of displaying video automatically.
As shown in Figure 1, a kind of Online Video player method, can comprise:
S101, when a page opened by browser, whether the page opened described in judgement is with video file;
Be understandable that, judge that whether the page opened has multiple with the method for video file, such as: judge the URL corresponding to the page that opens whether containing identifier specific to video file, be certainly not limited thereto.
S102, if described in the page opened with video file, call the source address that the video player be associated with this browser resolves this video file;
Wherein, the video player that is associated of this browser video player that can carry for the built-in video player of browser, system or the local video player etc. installed.
S103, when detect play the trigger event of this video file time, call this video player and play video file corresponding to this source address.
Wherein, when detect play the trigger event of this video file time, show that user wishes to watch this video, therefore, video player can be called and play this video file corresponding to this source address.Wherein, the trigger event playing this video file can be: click the button playing this video, be certainly not limited thereto.
In this programme, when opening the page with video file, just the source address that the video player be associated with this browser resolves this video file is called, and not after user clicks playing video file, therefore, can reduce the stand-by period clicked when playing Online Video needed for user, thus the video improving user views and admires experience.
Optionally, stand-by period when clicking broadcasting Online Video to reduce further needed for user, thus the video improving user views and admires experience, in an alternate embodiment of the present invention where, as shown in Figure 2, between above-mentioned S102 and S103, can comprise:
S200, calls the data that this video player loads the video file corresponding to this source address;
Being understandable that, based on the loading of the data to the video file corresponding to source address, when the trigger event playing this video file being detected, the data that this video player plays the described video file loaded can being called.
Further, in order to avoid load Online Video take more memory source, described in call the data (S200) that this video player loads the video file corresponding to this source address, can comprise:
Call the data that this video player loads the scheduled duration of the video file corresponding to this source address.Wherein, this scheduled duration can set according to practical application scene, such as: 30s, 60s, is certainly not limited thereto.And in order to ensure to play continuity, after starting to play the video data of scheduled duration, the data loading this video file can be continued.
Optionally, when user exits current page, the memory source shared by data loading this video file can be discharged.
Corresponding to said method embodiment, the embodiment of the present invention additionally provides a kind of Online Video playing device, and as shown in Figure 3, described device can comprise:
Judge module 310, during for opening a page, whether the page opened described in judgement is with video file;
Source address parsing module 320, if when the page opened described in judging for described judge module 310 is with video file, call the source address that the video player be associated with described browser resolves described video file;
Video playback module 330, for when detect play the trigger event of this video file time, call described video player and play video file corresponding to described source address.
In this programme, when opening the page with video file, just the source address that the video player be associated with this browser resolves this video file is called, and not after user clicks playing video file, therefore, can reduce the stand-by period clicked when playing Online Video needed for user, thus the video improving user views and admires experience.
Further, as shown in Figure 4, the embodiment of the present invention provides a kind of Online Video playing device, can also comprise:
Load-on module 340, for after calling the video player be associated with described browser and resolving the source address of described video file, calls the data that described video player loads the video file corresponding to described source address.
Concrete, described load-on module 340, can comprise: loading unit, for after calling the video player be associated with described browser and resolving the source address of described video file, call the data that described video player loads the scheduled duration of the described video file corresponding to described source address.Further, described loading unit, also for after starting to play the video data of described scheduled duration, continues the data loading described video file.
Further, a kind of Online Video playing device that the embodiment of the present invention provides, as shown in Figure 5, can also comprise: internal memory release module 350, and for when exiting the described page, release loads the memory source shared by data of described video file.
For system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
One of ordinary skill in the art will appreciate that all or part of step realized in said method execution mode is that the hardware that can carry out instruction relevant by program has come, described program can be stored in computer read/write memory medium, here the alleged storage medium obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. an Online Video player method, is characterized in that, comprising:
When a page opened by browser, whether the page opened described in judgement is with video file;
If described in the page opened with video file, call the source address that the video player be associated with described browser resolves described video file;
When detect play the trigger event of this video file time, call described video player and play video file corresponding to described source address.
2. method according to claim 1, is characterized in that, after calling the video player be associated with described browser and resolving the source address of described video file, also comprises:
Call the data that described video player loads the video file corresponding to described source address.
3. method according to claim 2, is characterized in that, described in call the data that described video player loads the video file corresponding to described source address, comprising:
Call the data that described video player loads the scheduled duration of the described video file corresponding to described source address.
4. method according to claim 3, is characterized in that, after starting to play the video data of described scheduled duration, continues the data loading described video file.
5. the method according to any one of claim 1-4, is characterized in that, also comprises:
When exiting the described page, release loads the memory source shared by data of described video file.
6. an Online Video playing device, is characterized in that, comprising:
Judge module, during for opening a page, whether the page opened described in judgement is with video file;
Source address parsing module, if when the page opened described in judging for described judge module is with video file, calls the source address that the video player be associated with described browser resolves described video file;
Video playback module, for when detect play the trigger event of this video file time, call described video player and play video file corresponding to described source address.
7. device according to claim 6, is characterized in that, also comprises:
Load-on module, for after calling the video player be associated with described browser and resolving the source address of described video file, calls the data that described video player loads the video file corresponding to described source address.
8. device according to claim 7, is characterized in that, described load-on module, comprising:
Loading unit, for after calling the video player be associated with described browser and resolving the source address of described video file, calls the data that described video player loads the scheduled duration of the described video file corresponding to described source address.
9. device according to claim 8, is characterized in that, described loading unit, also for after starting to play the video data of described scheduled duration, continues the data loading described video file.
10. the device according to any one of claim 6-9, is characterized in that, also comprises:
Internal memory release module, for when exiting the described page, release loads the memory source shared by data of described video file.
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 true CN104811795A (en) 2015-07-29
CN104811795B 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)

Cited By (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
CN108040279A (en) * 2017-12-07 2018-05-15 北京麒麟合盛网络技术有限公司 Video acceleration method and device
WO2020078207A1 (en) * 2018-10-18 2020-04-23 杭州海康威视数字技术股份有限公司 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

Cited By (7)

* 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
CN108040279A (en) * 2017-12-07 2018-05-15 北京麒麟合盛网络技术有限公司 Video acceleration method and device
CN108040279B (en) * 2017-12-07 2021-01-08 麒麟合盛网络技术股份有限公司 Video acceleration method and device
WO2020078207A1 (en) * 2018-10-18 2020-04-23 杭州海康威视数字技术股份有限公司 Video playing method and device
US11800199B2 (en) 2018-10-18 2023-10-24 Hangzhou Hikvision Digital Technology Co., Ltd. Video playing method and apparatus
CN111800667A (en) * 2020-07-28 2020-10-20 深圳Tcl数字技术有限公司 Browser video playing method, video playing device and storage medium

Also Published As

Publication number Publication date
CN104811795B (en) 2018-09-11

Similar Documents

Publication Publication Date Title
EP2945058B1 (en) Processing method and device for application program
CN110086877B (en) Application program sharing and information sharing display method, device, equipment and medium
CN110110262A (en) Browser EMS memory management process, device and equipment
CN104811795A (en) Online video playing method and online video playing device
CN103686414A (en) Network video playing method and device
CN109698979B (en) Video playing method and device and electronic equipment
CN110913135A (en) Video shooting method and device, electronic equipment and storage medium
CN105824542A (en) Method and apparatus for starting application functions
WO2017000612A1 (en) Method and device for recommending apps to mobile terminal during search
CN109511145B (en) Network hotspot switching method, intelligent terminal and computer-readable storage medium
CN103513861A (en) Method for processing information and electronic device
CN106250182B (en) File processing method and device and electronic equipment
CN104111728A (en) Electronic device and voice command input method based on operation gestures
CN104951287A (en) Method and device for generating webpage
CN104598571A (en) Method and device for playing multimedia resource
US9618995B2 (en) System and method for displaying content on a computing device during an inactive or off-state
CN103763303A (en) Method and device for drama series playing
CN105706055A (en) Method and device for processing application of mobile terminal
CN108597546A (en) The background music for recalling video determines method and relevant device
CN110113391B (en) Client online method and device and client operation method and device
CN105898480A (en) Multimedia preview method and device and mobile terminal device
CN109358927B (en) Application program display method and device and terminal equipment
CN113157439B (en) Resource statistics method, device and terminal
CN104754222A (en) Terminal camera shooting method and terminal
CN104967905A (en) Video playback control methods and device

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