CN103607668A - Video play method and apparatus - Google Patents

Video play method and apparatus Download PDF

Info

Publication number
CN103607668A
CN103607668A CN201310593763.7A CN201310593763A CN103607668A CN 103607668 A CN103607668 A CN 103607668A CN 201310593763 A CN201310593763 A CN 201310593763A CN 103607668 A CN103607668 A CN 103607668A
Authority
CN
China
Prior art keywords
video
address
source code
module
web page
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
CN201310593763.7A
Other languages
Chinese (zh)
Other versions
CN103607668B (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.)
Alibaba China Co Ltd
Original Assignee
Ucweb Inc
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 Ucweb Inc filed Critical Ucweb Inc
Priority to CN201310593763.7A priority Critical patent/CN103607668B/en
Publication of CN103607668A publication Critical patent/CN103607668A/en
Priority to PCT/CN2014/087708 priority patent/WO2015062388A1/en
Priority to US15/033,315 priority patent/US10121263B2/en
Application granted granted Critical
Publication of CN103607668B publication Critical patent/CN103607668B/en
Priority to US15/486,531 priority patent/US10360694B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The embodiments of the invention disclose a video play method and apparatus. The method comprises: extracting a source code corresponding to a webpage address inputted by a user; determining in the source code a video link address containing a preset protocol head; obtaining an address editing rule corresponding to the preset protocol head and a video player; according to the address editing rule, editing the information in the source code and the video link address into a video play address comprising the preset protocol head, wherein the video play address is an address that can be identified by the video player; and scheduling the video player to play a video resource corresponding to the video play address. By using the method and apparatus provided by the invention, when the source code of a page corresponding to a webpage address comprises a video link address containing a preset protocol head, a video player corresponding to the preset protocol head can be scheduled to play a video resource corresponding to the video link address so that the process of playing the video resource is quite simple, and the user experience of watching the video resource over a mobile terminal is improved.

Description

A kind of video broadcasting method and device
Technical field
The present invention relates to communication technical field, in particular, relate to video broadcasting method and device.
Background technology
Along with the development of wireless network and mobile terminal, by mobile terminal, watch video to become a lot of people's habits and customs.At present, most of user opens video website by the browser of mobile terminal, searches and wants the video resource watched, and on browser, play-over the video resource finding.
A lot of video website are usurped the video resource of oneself for fear of other websites, the video playback address of video resource can be added to custom protocol head, thereby the real video playback address of video resource is encrypted and is protected.When using browser to open this type of video website, what get due to browser is the video playback address with custom protocol head, so cannot find corresponding video resource on the server of video website by this video playback address, thereby cause playing this video resource on browser.
In order to guarantee that user can watch the video resource in this type of video website, the video player of this type of video website issue need to be installed on mobile terminal.The video player of video website issue has the function of identification custom protocol head, after identifying custom protocol head, can obtain real video playback address, video player can find corresponding video resource by real video playback address on the server of video website, the last video resource finding of playing on video player.
Because user cannot directly utilize the video resource of browser displaying video website, often need to again open video player can displaying video resource, thereby cause the process of whole displaying video resource very complicated, cannot meet the directly demand of viewing on browser of user, reduce the experience that user watches video resource on mobile terminal.
Summary of the invention
The embodiment of the present invention provides a kind of video broadcasting method and device, so that the process of displaying video resource is simple on mobile terminal, has improved the experience of watching video resource on mobile terminal.
The embodiment of the present invention proposes a kind of video broadcasting method, and this comprises the following steps:
Extract user's input web page address the source code of the corresponding page;
In described source code, determine the video chained address of containing preset protocol head;
Obtain address editing rule and the video player corresponding with described preset protocol head;
According to described address editing rule, the information in described source code and described video chained address are compiled to the video playback address of containing described preset protocol head, described video playback address is the address that described video player can be identified;
Call described video player and play video resource corresponding to described video playback address.
Preferably, the web page address of described extraction user input before the step of source code of the corresponding page, also comprise step:
Judge whether described web page address is present in web page address list, the source code of the corresponding page of each web page address in described web page address list all contains described video chained address;
If so, carry out described extraction user input web page address the step of source code of the corresponding page; Otherwise, open the page that described web page address is corresponding.
Preferably, in described source code, determine in the video chained address of containing preset protocol head, comprising:
In described source code, by regular expression, search default label;
The video chained address of containing preset protocol head described in extracting in described default label.
Preferably, described, according to described address editing rule, the information in described source code and described video chained address are compiled in the step of the video playback address of containing described preset protocol head, being comprised:
In described source code, extract the video title corresponding with described video chained address;
According to described address editing rule, described video title and described video chained address are compiled to video playback address.
Preferably, determine the step of the video chained address of containing preset protocol head in described source code after, before obtaining the step of the address editing rule corresponding with described preset protocol head and video player, also comprise step:
In described source code, extract the video title corresponding with described video chained address;
Show the predefine interface that comprises described video title;
Judge whether to receive the instruction of playing the video title on described predefine interface, if so, described in carrying out, obtain the address editing rule corresponding with described preset protocol head and the step of video player; Otherwise, described in returning, judge whether to receive the step of the instruction of playing described video title.
Preferably, described, call after video player plays the step of video resource corresponding to described video playback address, also comprise:
Judge whether described video player is closed, if so, return to the step at the predefine interface that described demonstration comprises described video title; Otherwise, return to the described whether pent step of described video player that judges.
Preferably, described, call after video player plays the step of video resource corresponding to described video playback address, also comprise:
Judge whether described video resource is finished by described video player, if so, return to the step at the predefine interface that described demonstration comprises described video title; Otherwise, return to the described step that judges whether described video resource is finished by described video player.
The embodiment of the present invention proposes a kind of video play device, comprising:
The first extraction module, for extract user input web page address the source code of the corresponding page;
Determination module, for determining the video chained address of containing preset protocol head at described source code;
Search module, for obtaining address editing rule and the video player corresponding with described preset protocol head;
Editor module, for the information of described source code and described video chained address being compiled to the video playback address of containing described preset protocol head according to described address editing rule, described video playback address is the address that described video player can be identified;
Calling module, calls described video player and plays video resource corresponding to described video playback address.
Preferably, also comprise:
The first judge module, for judging whether described web page address is present in web page address list, the source code of the corresponding page of each web page address in described web page address list all contains described video chained address;
The first Executive Module, while being present in described web page address list for judging described web page address at described the first judge module, carries out described the first extraction module; Described the first judge module judge described web page address be not present in described web page address list in time, open the page that described web page address is corresponding.
Preferably, described determination module comprises:
Search unit, for searching default label at described source code by regular expression;
The first extraction unit, for the video chained address containing preset protocol head described in described default label extraction.
Preferably, described editor module comprises:
The second extraction unit, for extracting the video title corresponding with described video chained address at described source code;
Edit cell, for compiling video playback address according to described address editing rule by described video title and described video chained address.
Preferably, also comprise:
The second extraction module, for extracting the video title corresponding with described video chained address at described source code;
Display module, for showing the predefine interface that comprises described video title;
The second judge module, for judging whether to receive the instruction of playing the video title on described predefine interface;
The second Executive Module, while receiving the instruction of playing described video title for judging at described the second judge module, carries out described first and searches module; When described the second judge module is judged the instruction that does not receive the described video title of broadcasting, carry out described the second judge module.
Preferably, also comprise:
The 3rd judge module, for judging whether described video player is closed;
The 3rd Executive Module, while being closed for judging described video player at described the 3rd judge module, carries out described display module; When described the 3rd judge module is judged described video player and do not closed, carry out described the 3rd judge module.
Preferably, also comprise:
The 4th judge module, for judging whether described video resource is finished by described video player;
The 4th Executive Module, while being finished by described video player for judging described video resource at described the 4th judge module, carries out described display module; When described the 4th judge module is judged described video resource and do not finished by described video player, carry out described the 4th judge module.
Compared with prior art, the technical scheme that the present embodiment provides has the following advantages and feature:
In the scheme providing in the embodiment of the present invention, owing to containing preset protocol head in video chained address, and every kind of preset protocol head is all to having address editing rule and video player, so only need get the video chained address of containing preset protocol head in the source code of the corresponding page of web page address, can edit out the video playback address that video player can be identified by address editing rule, thereby can directly call video resource corresponding to video player displaying video broadcast address.Therefore, during video chained address that the scheme that the embodiment of the present invention provides contains preset protocol head in running into the source code of the corresponding page of web page address, can call the video resource corresponding to video player displaying video broadcast address of this preset protocol head correspondence, thereby make the process of whole displaying video resource very simple, improved the experience that user watches video resource on mobile terminal.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of a kind of video broadcasting method that Fig. 1 provides for the embodiment of the present invention;
The flow chart of the another kind of video broadcasting method that Fig. 2 provides for the embodiment of the present invention;
The flow chart of another video broadcasting method that Fig. 3 provides for the embodiment of the present invention;
The flow chart of another video broadcasting method that Fig. 4 provides for the embodiment of the present invention;
The flow chart of another video broadcasting method that Fig. 5 provides for the embodiment of the present invention;
The module map of a kind of video play device that Fig. 6 provides for the embodiment of the present invention;
The module map of the another kind of video play device that Fig. 7 provides for the embodiment of the present invention;
The module map of another video play device that Fig. 8 provides for the embodiment of the present invention;
The module map of another video play device that Fig. 9 provides for the embodiment of the present invention;
The module map of another video play device that Figure 10 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out to clear, complete description, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment mono-
Shown in Figure 1, a kind of video broadcasting method providing for the embodiment of the present invention shown in Fig. 1, the method can make the process of displaying video resource on mobile terminal simple, has improved the experience of watching video resource on mobile terminal.The concrete application scenarios of the method is inputted a web page address for user on the browser of mobile terminal, and inputted web page address in browser after, can call video player and play the video resource that this web page address is corresponding.The method comprises:
Step S101, extract user's input web page address the source code of the corresponding page;
Wherein, mobile terminal can get the web page address of user's input.Generally, user can input web page address in the browser of mobile terminal.The all corresponding page of each web page address, this page is formed by source code editor by webpage programming language, concrete, and the source code that the present embodiment is mentioned refers in particular to webpage source code.After obtaining web page address, there is various ways can extract the source code of the corresponding page of this web page address.For example, utilize web page address by the mode of the request header of simulation browser, to obtain the source code of the page.For a same page, if contain video chained address in the source code for the page of development of computers, in the page of mobile terminal exploitation, may just not there is video chained address so, so in order better to get the video chained address of containing preset protocol head in source code, the mode of request header that can be by analogue computer browser gets the source code of the page of normal play on computer.
Step S102, in source code, determine the video chained address contain preset protocol head;
Wherein, preset protocol head belongs to self-defining protocol format; a lot of video website are usurped the video resource of oneself for fear of other websites, the video playback address of video resource can be added to preset protocol head, thereby the real video playback address of video resource is encrypted and is protected.For example, qvod: // and baiduvideoiphoneapp: // be preset protocol head.
Concrete, in source code, determine that there is various ways the video chained address of containing preset protocol head, can come in the following manner to determine video chained address: first, in source code, by regular expression, search default label, secondly, in default label, extract the video chained address of containing preset protocol head.Wherein, default label is the label in source code, for example, and the <object> label in source code or <embed type=application/xxx-plugin> label etc.The video chained address that will contain preset protocol head in default label in source code.Regular expression can be described or mate a series of character strings that meet certain syntactic rule by single character string, so can search the default label in source code by regular expression.
Step S103, obtain address editing rule and the video player corresponding with preset protocol head;
Wherein, every kind of preset protocol head all has address editing rule and the video player corresponding with it.Address editing rule is the rule of a kind of editing video chained address, by address editing rule, the video playback address that corresponding video player can be identified is compiled in video chained address.Concrete, obtaining the address editing rule corresponding with preset protocol head and the concrete mode of video player has multiple, for example, in client, the pre-stored corresponding relation that has preset protocol head and geology editing rule, and the corresponding relation of preset protocol head and video player, by these two kinds of corresponding relations, can get geology editing rule and the video player of preset protocol head correspondence; Can also set up in advance above-mentioned two kinds of corresponding relations at server end, thereby just can get at server end geology editing rule and the video player of preset protocol head correspondence.Certainly, concrete obtain manner is not limited to above two kinds, and other obtain manner is all in the protection range of the embodiment of the present invention, and this is no longer going to repeat them.
Step S104, according to address editing rule, the information in source code and video chained address are compiled to the video playback address of containing preset protocol head, video playback address is the address that video player can be identified;
Wherein, the address editing rule of every kind of preset protocol head correspondence is all not identical, so the information in the source code using in editing process is also different.For example, some address editing rule can be compiled the video playback address with preset protocol head according to predetermined compound mode by the heading message in source code and video chained address.
Concrete, according to address editing rule editing video broadcast address, there is various ways, can carry out in the following manner editing video broadcast address: first, in source code, extract the video title corresponding with video chained address; Secondly, according to address editing rule, video title and video chained address are compiled to video playback address.For example, in source code, the video title corresponding with video chained address is title=[http: //www.372.cc] The Bourne Ultimatum 4: the super clear Sino-British double word .mkv of legacy .BD1280 of Berne, video chained address is baiduvideoiphoneapp: //url=http: //www.77vcd.com/Action/fuchunshanjutu/player-0-0.html, according to address editing rule, video title and video chained address are compiled to video playback address so, this video playback address is specially baiduvideoiphoneapp: // titl e=[http: //www.372.cc] The Bourne Ultimatum 4: the super clear Sino-British double word .mkv & url=http of legacy .BD1280 of Berne: //www.77vcd.com/Action/fuchunshanjutu/player-0-0.html.
Step S105, call video resource corresponding to video player displaying video broadcast address.
Wherein, because video player can be identified corresponding preset protocol head, so video player can be according to video playback address search to the video resource in server.After finding video resource, video player will continue the video resource that reception server provides, and plays this video resource.
In the embodiment shown in fig. 1, owing to containing preset protocol head in video chained address, and every kind of preset protocol head is all to having address editing rule and video player, so only need get the video chained address of containing preset protocol head in the source code of the corresponding page of web page address, can edit out the video playback address that video player can be identified by address editing rule, thereby can directly call video resource corresponding to video player displaying video broadcast address.Therefore, during video chained address that the scheme that the embodiment of the present invention provides contains preset protocol head in running into the source code of the corresponding page of web page address, can call the video resource corresponding to video player displaying video broadcast address of this preset protocol head correspondence, thereby make the process of whole displaying video resource very simple, improved the experience that user watches video resource on mobile terminal.
Embodiment bis-
Shown in Figure 2, the another kind of video broadcasting method providing for the embodiment of the present invention shown in Fig. 2, the method can be after getting web page address, by judging whether web page address is present in web page address list, can be in the situation that do not contain video chained address in the source code of the corresponding page of web page address, avoid continuing to carry out subsequent operation, thus the processing resource of saving mobile terminal.The method comprises:
Step S201, judge whether web page address is present in web page address list, if so, performs step S202, otherwise, execution step S203;
Wherein, the source code of the corresponding page of each web page address in web page address list all contains video chained address, if the web page address of user's input is present in web page address list, illustrate so in the corresponding page of web page address that user inputs and contain video resource, need so to continue to carry out subsequent step and play this video resource, perform step S202; If the web page address of user input is not present in web page address list, illustrate so in the corresponding page of web page address that user inputs and do not contain video resource, so only need to open the page that web page address is corresponding, perform step S203.
Step S202, extract user's input web page address the source code of the corresponding page;
Step S203, open the page that web page address is corresponding;
Step S204, in source code, determine the video chained address contain preset protocol head;
Step S205, obtain address editing rule and the video player corresponding with preset protocol head;
Step S206, according to address editing rule, the information in source code and video chained address are compiled to the video playback address of containing preset protocol head, video playback address is the address that video player can be identified;
Step S207, call video resource corresponding to video player displaying video broadcast address.
In the embodiment shown in Figure 2, not only can make the process of whole displaying video resource very simple, improve the experience that user watches video resource on mobile terminal; And, the method can be after getting web page address, by judging whether web page address is present in web page address list, can be in the situation that do not contain video chained address in the source code of the corresponding page of web page address, avoid continuing to carry out subsequent operation, thus the processing resource of saving mobile terminal.
Embodiment tri-
Shown in Figure 3, another video broadcasting method providing for the embodiment of the present invention shown in Fig. 3, the method can be extracted and the corresponding video title in video chained address in source code, and in predefine interface, demonstrate this video title, wait for that user inputs the instruction of playing this video title, once user inputs play instruction, continue to carry out so the step of the video resource that this video title of follow-up play is corresponding, if do not receive the instruction of displaying video title, so just rest in predefine interface, continue to wait for that user inputs the instruction of displaying video title.The method that the embodiment of the present invention provides can be convenient to user and in predefine interface, select to want the video title of watching, thereby promotes the impression that user watches video resource.The method comprises:
Step S301, extract user's input web page address the source code of the corresponding page;
Step S302, in source code, determine the video chained address contain preset protocol head;
Step S303, in source code, extract the video title corresponding with video chained address;
Wherein, in source code, also comprise a lot of information corresponding with video chained address, for example, the information such as video title, video ID, video type.
The predefine interface that step S304, demonstration comprise video title;
Wherein, video title being presented on predefine interface, is mainly to facilitate user to click the video title that need to watch.Certainly, in order to be that broadcast information is clearer, to be convenient to user and to search the video title that need watch, can also on predefine interface, be provided with other the video information corresponding with video chained address, for example, the information such as video title, video ID, video type.
Step S305, judge whether to receive the instruction of playing the video title on predefine interface, if so, perform step S306, otherwise, step S305 returned to;
Wherein, if receive the instruction of playing the video title on predefine interface, continue so to carry out subsequent step; If do not receive the instruction of playing the video title on predefine interface, continue so to judge whether to receive play instruction, rest on predefine interface, continue to wait for the instruction that receives the video title on broadcasting predefine interface.
Step S306, obtain address editing rule and the video player corresponding with preset protocol head;
Step S307, according to address editing rule, the information in source code and video chained address are compiled to the video playback address of containing preset protocol head, video playback address is the address that video player can be identified;
Step S308, call video resource corresponding to video player displaying video broadcast address.
In the embodiment shown in fig. 3, not only can make the process of whole displaying video resource very simple, improve the experience that user watches video resource on mobile terminal; And, can also be convenient to user and in predefine interface, select to want the video title of watching, thereby promote the impression that user watches video resource.
Embodiment tetra-
Shown in Figure 4, another video broadcasting method providing for the embodiment of the present invention shown in Fig. 4, the method that the present embodiment provides makes user after watching a video resource, enter and show the predefine interface comprise video title, thereby be convenient to user, on predefine interface, again input play instruction and watch other video resources.The method comprises:
Step S401, extract user's input web page address the source code of the corresponding page;
Step S402, in source code, determine the video chained address contain preset protocol head;
Step S403, in source code, extract the video title corresponding with video chained address;
The predefine interface that step S404, demonstration comprise video title;
Step S405, judge whether to receive the instruction of playing the video title on predefine interface, if so, perform step S406, otherwise, step S405 returned to;
Step S406, obtain address editing rule and the video player corresponding with preset protocol head;
Step S407, according to address editing rule, the information in source code and video chained address are compiled to the video playback address of containing preset protocol head, video playback address is the address that video player can be identified;
Step S408, call video resource corresponding to video player displaying video broadcast address.
Step S409, judge whether video player is closed, if so, return to step S404; Otherwise, return to step S409.
Wherein, after calling video player displaying video resource, judge whether video player is closed, if video player is closed, illustrate that user does not want to continue to watch the video resource of video player broadcasting, so just show the predefine interface that comprises video title, wait for that user inputs the instruction of playing the video title on predefine interface again, returns to step S404; If video player is not closed, illustrate that user wants to continue to watch the video resource of video player broadcasting, so just judges that whether video player is closed, and returns to step S409 again.
In the embodiment shown in fig. 4, not only can make the process of whole displaying video resource very simple, improve the experience that user watches video resource on mobile terminal; And, can also make user after watching a video resource, enter and show the predefine interface comprise video title, thereby be convenient to user, on predefine interface, again input play instruction and watch other video resources, so promoted the impression that user watches video resource.
Embodiment five
Shown in Figure 5, another video broadcasting method providing for the embodiment of the present invention shown in Fig. 5, the method that the present embodiment provides makes user after watching a video resource, enter and show the predefine interface comprise video title, thereby be convenient to user, on predefine interface, again input play instruction and watch other video resources.The method comprises:
Step S501, extract user's input web page address the source code of the corresponding page;
Step S502, in source code, determine the video chained address contain preset protocol head;
Step S503, in source code, extract the video title corresponding with video chained address;
The predefine interface that step S504, demonstration comprise video title;
Step S505, judge whether to receive the instruction of playing the video title on predefine interface, if so, perform step S506, otherwise, step S505 returned to;
Step S506, obtain address editing rule and the video player corresponding with preset protocol head;
Step S507, according to address editing rule, the information in source code and video chained address are compiled to the video playback address of containing preset protocol head, video playback address is the address that video player can be identified;
Step S508, call video resource corresponding to video player displaying video broadcast address;
Step S509, judge whether video resource is finished by video player, if so, return to step S504; Otherwise, return to step S509.
Wherein, after calling video player displaying video resource, judge whether video resource is finished by video player, if video resource is finished by video player, illustrate that user has watched complete, so just show the predefine interface that comprises video title, wait for that user inputs the instruction of playing the video title on predefine interface again, returns to step S504; If video resource is not finished by video player, illustrate that user wants to continue to watch the video resource of video player broadcasting, so just judges that whether video resource is finished by video player, returns to step S509 again.
In the embodiment shown in fig. 5, not only can make the process of whole displaying video resource very simple, improve the experience that user watches video resource on mobile terminal; And, can also make user after watching a video resource, enter and show the predefine interface comprise video title, thereby be convenient to user, on predefine interface, again input play instruction and watch other video resources, so promoted the impression that user watches video resource.
Embodiment six
Shown in Figure 6, a kind of video play device providing for the embodiment of the present invention shown in Fig. 6, this device can make the process of displaying video resource on mobile terminal simple, has improved the experience of watching video resource on mobile terminal.The concrete application scenarios of this device is inputted a web page address for user on the browser of mobile terminal, and inputted web page address in browser after, can call video player and play the video resource that this web page address is corresponding.This device comprises:
The first extraction module 11, for extract user input web page address the source code of the corresponding page;
Determination module 12, for determining the video chained address of containing preset protocol head at source code;
Wherein, determination module 12 comprises: search unit, for searching default label at source code by regular expression; The first extraction unit, for extracting at default label the video chained address of containing preset protocol head.
Search module 13, for obtaining address editing rule and the video player corresponding with preset protocol head;
Editor module 14, for the information of source code and video chained address being compiled to the video playback address of containing preset protocol head according to address editing rule, video playback address is the address that video player can be identified;
Wherein, editor module 14 comprises: the second extraction unit, for extracting the video title corresponding with video chained address at source code; Edit cell, for compiling video playback address according to address editing rule by video title and video chained address.
Calling module 15, for calling video resource corresponding to video player displaying video broadcast address.
In the embodiment shown in fig. 6, because the device that the present embodiment provides is corresponding with the method shown in embodiment mono-, so refer to the content of an embodiment part about the related description of the device part of the present embodiment, do not repeat them here.
Embodiment seven
Shown in Figure 7, the another kind of video play device providing for the embodiment of the present invention shown in Fig. 7, this device can be after getting web page address, by judging whether web page address is present in web page address list, can be in the situation that do not contain video chained address in the source code of the corresponding page of web page address, avoid continuing to carry out subsequent operation, thus the processing resource of saving mobile terminal.This device comprises:
The first judge module 21, for judging whether web page address is present in web page address list, the source code of the corresponding page of each web page address in web page address list all contains video chained address;
The first Executive Module 22, while being present in web page address list for judging web page address at the first judge module, carries out the first extraction module 23; The first judge module judge web page address be not present in web page address list in time, open the page that web page address is corresponding.
The first extraction module 23, for extract user input web page address the source code of the corresponding page;
Determination module 24, for determining the video chained address of containing preset protocol head at source code;
Search module 25, for obtaining address editing rule and the video player corresponding with preset protocol head;
Editor module 26, for the information of source code and video chained address being compiled to the video playback address of containing preset protocol head according to address editing rule, video playback address is the address that video player can be identified;
Calling module 27, for calling video resource corresponding to video player displaying video broadcast address.
In the embodiment shown in fig. 7, because the device that the present embodiment provides is corresponding with the method shown in embodiment bis-, so refer to the content of embodiment bis-parts about the related description of the device part of the present embodiment, do not repeat them here.
Embodiment eight
Shown in Figure 8, another video play device providing for the embodiment of the present invention shown in Fig. 8, this device can extract and the corresponding video title in video chained address in source code, and in predefine interface, demonstrate this video title, wait for that user inputs the instruction of playing this video title, once user inputs play instruction, continue to carry out so the step of the video resource that this video title of follow-up play is corresponding, if do not receive the instruction of displaying video title, so just rest in predefine interface, continue to wait for that user inputs the instruction of displaying video title.The device that the embodiment of the present invention provides can be convenient to user and in predefine interface, select to want the video title of watching, thereby promotes the impression that user watches video resource.This device comprises:
The first extraction module 31, for extract user input web page address the source code of the corresponding page;
Determination module 32, for determining the video chained address of containing preset protocol head at source code;
The second extraction module 33, for extracting the video title corresponding with video chained address at source code;
Display module 34, for showing the predefine interface that comprises video title;
The second judge module 35, for judging whether to receive the instruction of playing the video title on predefine interface;
The second Executive Module 36, for when the second judge module 35 is judged the instruction that receives displaying video title, carries out and searches module 37; When the second judge module 35 is judged the instruction that does not receive displaying video title, carry out the second judge module 35.
Search module 37, for obtaining address editing rule and the video player corresponding with preset protocol head;
Editor module 38, for the information of source code and video chained address being compiled to the video playback address of containing preset protocol head according to address editing rule, video playback address is the address that video player can be identified;
Calling module 39, calls video resource corresponding to video player displaying video broadcast address.
In the embodiment shown in fig. 8, because the device that the present embodiment provides is corresponding with the method shown in embodiment tri-, so refer to the content of embodiment tri-parts about the related description of the device part of the present embodiment, do not repeat them here.
Embodiment nine
Shown in Figure 9, another video play device providing for the embodiment of the present invention shown in Fig. 9, the device that the present embodiment provides makes user after watching a video resource, enter and show the predefine interface comprise video title, thereby be convenient to user, on predefine interface, again input play instruction and watch other video resources.This device comprises:
The first extraction module 41, for extract user input web page address the source code of the corresponding page;
Determination module 42, for determining the video chained address of containing preset protocol head at source code;
The second extraction module 43, for extracting the video title corresponding with video chained address at source code;
Display module 44, for showing the predefine interface that comprises video title;
The second judge module 45, for judging whether to receive the instruction of playing the video title on predefine interface;
The second Executive Module 46, for when the second judge module 45 is judged the instruction that receives displaying video title, carries out and searches module 47; When the second judge module 45 is judged the instruction that does not receive displaying video title, carry out the second judge module 45.
Search module 47, for obtaining address editing rule and the video player corresponding with preset protocol head;
Editor module 48, for the information of source code and video chained address being compiled to the video playback address of containing preset protocol head according to address editing rule, video playback address is the address that video player can be identified;
Calling module 49, calls video resource corresponding to video player displaying video broadcast address.
The 3rd judge module 410, for judging whether video player is closed;
The 3rd Executive Module 411, while being closed for judging video player at the 3rd judge module 410, carries out display module 44; When the 3rd judge module 410 is judged video player and do not closed, carry out the 3rd judge module 410.
In the embodiment shown in fig. 9, because the device that the present embodiment provides is corresponding with the method shown in embodiment tetra-, so refer to the tetrameric content of embodiment about the related description of the device part of the present embodiment, do not repeat them here.
Embodiment ten
Shown in Figure 10, another video play device providing for the embodiment of the present invention shown in Figure 10, the device that the present embodiment provides makes user after watching a video resource, enter and show the predefine interface comprise video title, thereby be convenient to user, on predefine interface, again input play instruction and watch other video resources.This device comprises:
The first extraction module 51, for extract user input web page address the source code of the corresponding page;
Determination module 52, for determining the video chained address of containing preset protocol head at source code;
The second extraction module 53, for extracting the video title corresponding with video chained address at source code;
Display module 54, for showing the predefine interface that comprises video title;
The second judge module 55, for judging whether to receive the instruction of playing the video title on predefine interface;
The second Executive Module 56, for when the second judge module 55 is judged the instruction that receives displaying video title, carries out and searches module 57; When the second judge module 55 is judged the instruction that does not receive displaying video title, carry out the second judge module 55.
Search module 57, for obtaining address editing rule and the video player corresponding with preset protocol head;
Editor module 58, for the information of source code and video chained address being compiled to the video playback address of containing preset protocol head according to address editing rule, video playback address is the address that video player can be identified;
Calling module 59, calls video resource corresponding to video player displaying video broadcast address.
The 4th judge module 510, for judging whether video resource is finished by video player;
The 4th Executive Module 511, while being finished by video player for judging video resource at the 4th judge module 510, carries out display module 54; When the 4th judge module 510 is judged video resource and do not finished by video player, carry out the 4th judge module 510.
In the embodiment shown in fig. 10, because the device that the present embodiment provides is corresponding with the method shown in embodiment five, so refer to the content of embodiment five parts about the related description of the device part of the present embodiment, do not repeat them here.
It should be noted that, the embodiment shown in Fig. 1 to Figure 10 is the preferred embodiment that the present invention introduces, and those skilled in the art on this basis, can design more embodiment completely, does not therefore repeat herein.
Those of ordinary skills can recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that disclosed system, apparatus and method can realize by another way.For example, device embodiment described above is only schematic, for example, the division of unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
Unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.
If function usings that the form of SFU software functional unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words or the part of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) carry out all or part of step of each embodiment method of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
Above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (14)

1. a video broadcasting method, is characterized in that, comprising:
Extract user's input web page address the source code of the corresponding page;
In described source code, determine the video chained address of containing preset protocol head;
Obtain address editing rule and the video player corresponding with described preset protocol head;
According to described address editing rule, the information in described source code and described video chained address are compiled to the video playback address of containing described preset protocol head, described video playback address is the address that described video player can be identified;
Call described video player and play video resource corresponding to described video playback address.
2. video broadcasting method according to claim 1, is characterized in that, the web page address of described extraction user input before the step of source code of the corresponding page, also comprise step:
Judge whether described web page address is present in web page address list, the source code of the corresponding page of each web page address in described web page address list all contains described video chained address;
If so, carry out described extraction user input web page address the step of source code of the corresponding page; Otherwise, open the page that described web page address is corresponding.
3. video broadcasting method according to claim 1, is characterized in that, in described source code, determines in the video chained address of containing preset protocol head, comprising:
In described source code, by regular expression, search default label;
The video chained address of containing preset protocol head described in extracting in described default label.
4. video broadcasting method according to claim 1, it is characterized in that, described, according to described address editing rule, the information in described source code and described video chained address are compiled in the step of the video playback address of containing described preset protocol head, being comprised:
In described source code, extract the video title corresponding with described video chained address;
According to described address editing rule, described video title and described video chained address are compiled to video playback address.
5. video broadcasting method according to claim 1, it is characterized in that, determine the step of the video chained address of containing preset protocol head in described source code after, before obtaining the step of the address editing rule corresponding with described preset protocol head and video player, also comprise step:
In described source code, extract the video title corresponding with described video chained address;
Show the predefine interface that comprises described video title;
Judge whether to receive the instruction of playing the video title on described predefine interface, if so, described in carrying out, obtain the address editing rule corresponding with described preset protocol head and the step of video player; Otherwise, described in returning, judge whether to receive the step of the instruction of playing described video title.
6. video broadcasting method according to claim 5, is characterized in that, described, calls after video player plays the step of video resource corresponding to described video playback address, also comprises:
Judge whether described video player is closed, if so, return to the step at the predefine interface that described demonstration comprises described video title; Otherwise, return to the described whether pent step of described video player that judges.
7. video broadcasting method according to claim 5, is characterized in that, described, calls after video player plays the step of video resource corresponding to described video playback address, also comprises:
Judge whether described video resource is finished by described video player, if so, return to the step at the predefine interface that described demonstration comprises described video title; Otherwise, return to the described step that judges whether described video resource is finished by described video player.
8. a video play device, is characterized in that, comprising:
The first extraction module, for extract user input web page address the source code of the corresponding page;
Determination module, for determining the video chained address of containing preset protocol head at described source code;
Search module, for obtaining address editing rule and the video player corresponding with described preset protocol head;
Editor module, for the information of described source code and described video chained address being compiled to the video playback address of containing described preset protocol head according to described address editing rule, described video playback address is the address that described video player can be identified;
Calling module, calls described video player and plays video resource corresponding to described video playback address.
9. video play device according to claim 8, is characterized in that, also comprises:
The first judge module, for judging whether described web page address is present in web page address list, the source code of the corresponding page of each web page address in described web page address list all contains described video chained address;
The first Executive Module, while being present in described web page address list for judging described web page address at described the first judge module, carries out described the first extraction module; Described the first judge module judge described web page address be not present in described web page address list in time, open the page that described web page address is corresponding.
10. video play device according to claim 8, is characterized in that, described determination module comprises:
Search unit, for searching default label at described source code by regular expression;
The first extraction unit, for the video chained address containing preset protocol head described in described default label extraction.
11. video play devices according to claim 8, is characterized in that, described editor module comprises:
The second extraction unit, for extracting the video title corresponding with described video chained address at described source code;
Edit cell, for compiling video playback address according to described address editing rule by described video title and described video chained address.
12. video play devices according to claim 8, is characterized in that, also comprise:
The second extraction module, for extracting the video title corresponding with described video chained address at described source code;
Display module, for showing the predefine interface that comprises described video title;
The second judge module, for judging whether to receive the instruction of playing the video title on described predefine interface;
The second Executive Module, while receiving the instruction of playing described video title for judging at described the second judge module, carries out described first and searches module; When described the second judge module is judged the instruction that does not receive the described video title of broadcasting, carry out described the second judge module.
13. video play devices according to claim 12, is characterized in that, also comprise:
The 3rd judge module, for judging whether described video player is closed;
The 3rd Executive Module, while being closed for judging described video player at described the 3rd judge module, carries out described display module; When described the 3rd judge module is judged described video player and do not closed, carry out described the 3rd judge module.
14. video play devices according to claim 12, is characterized in that, also comprise:
The 4th judge module, for judging whether described video resource is finished by described video player;
The 4th Executive Module, while being finished by described video player for judging described video resource at described the 4th judge module, carries out described display module; When described the 4th judge module is judged described video resource and do not finished by described video player, carry out described the 4th judge module.
CN201310593763.7A 2013-10-31 2013-11-21 Video play method and apparatus Active CN103607668B (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201310593763.7A CN103607668B (en) 2013-11-21 2013-11-21 Video play method and apparatus
PCT/CN2014/087708 WO2015062388A1 (en) 2013-10-31 2014-09-28 Picture loading method and device and video playback method and device
US15/033,315 US10121263B2 (en) 2013-10-31 2014-09-28 Methods and devices for image loading and methods and devices for video playback
US15/486,531 US10360694B2 (en) 2013-10-31 2017-04-13 Methods and devices for image loading and methods and devices for video playback

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310593763.7A CN103607668B (en) 2013-11-21 2013-11-21 Video play method and apparatus

Publications (2)

Publication Number Publication Date
CN103607668A true CN103607668A (en) 2014-02-26
CN103607668B CN103607668B (en) 2017-01-11

Family

ID=50125865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310593763.7A Active CN103607668B (en) 2013-10-31 2013-11-21 Video play method and apparatus

Country Status (1)

Country Link
CN (1) CN103607668B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873580A (en) * 2014-03-21 2014-06-18 北京金山网络科技有限公司 Method and device for analyzing video webpages
WO2015062388A1 (en) * 2013-10-31 2015-05-07 优视科技有限公司 Picture loading method and device and video playback method and device
CN104796784A (en) * 2015-03-31 2015-07-22 北京奇虎科技有限公司 Video playing method and device in application program
CN108234402A (en) * 2016-12-15 2018-06-29 北京小度互娱科技有限公司 In the method and apparatus that mobile client obtains the method and apparatus of video flowing and executable code is provided to mobile client
CN112135199A (en) * 2020-09-23 2020-12-25 平安国际智慧城市科技股份有限公司 Video playing method based on multiple types of video sources and related equipment
CN113904827A (en) * 2021-09-29 2022-01-07 恒安嘉新(北京)科技股份公司 Method and device for identifying counterfeit website, computer equipment and medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036929A (en) * 2011-10-10 2013-04-10 华为技术有限公司 Multimedia file processing method and network side equipment in communication system
CN103327411B (en) * 2013-06-03 2017-02-01 贝壳网际(北京)安全技术有限公司 Video playing method, device and system for mobile terminal browser

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015062388A1 (en) * 2013-10-31 2015-05-07 优视科技有限公司 Picture loading method and device and video playback method and device
US10121263B2 (en) 2013-10-31 2018-11-06 Uc Mobile Co., Ltd. Methods and devices for image loading and methods and devices for video playback
US10360694B2 (en) 2013-10-31 2019-07-23 Uc Mobile Co., Ltd. Methods and devices for image loading and methods and devices for video playback
CN103873580A (en) * 2014-03-21 2014-06-18 北京金山网络科技有限公司 Method and device for analyzing video webpages
WO2015139540A1 (en) * 2014-03-21 2015-09-24 北京金山网络科技有限公司 Method and device for parsing video webpage
CN104796784A (en) * 2015-03-31 2015-07-22 北京奇虎科技有限公司 Video playing method and device in application program
WO2016155378A1 (en) * 2015-03-31 2016-10-06 北京奇虎科技有限公司 Video playing method and apparatus in application program
CN108234402A (en) * 2016-12-15 2018-06-29 北京小度互娱科技有限公司 In the method and apparatus that mobile client obtains the method and apparatus of video flowing and executable code is provided to mobile client
CN112135199A (en) * 2020-09-23 2020-12-25 平安国际智慧城市科技股份有限公司 Video playing method based on multiple types of video sources and related equipment
CN112135199B (en) * 2020-09-23 2022-07-29 平安国际智慧城市科技股份有限公司 Video playing method based on multiple types of video sources and related equipment
CN113904827A (en) * 2021-09-29 2022-01-07 恒安嘉新(北京)科技股份公司 Method and device for identifying counterfeit website, computer equipment and medium
CN113904827B (en) * 2021-09-29 2024-03-19 恒安嘉新(北京)科技股份公司 Identification method and device for counterfeit website, computer equipment and medium

Also Published As

Publication number Publication date
CN103607668B (en) 2017-01-11

Similar Documents

Publication Publication Date Title
US11403364B2 (en) Method and terminal device for extracting web page content
CN103607668A (en) Video play method and apparatus
US8572076B2 (en) Location context mining
CN109819284A (en) A kind of short video recommendation method, device, computer equipment and storage medium
JP2010527051A (en) Document processing for mobile devices
WO2017000612A1 (en) Method and device for recommending apps to mobile terminal during search
CN102436448A (en) Search method and search system
CN110968808A (en) Method and device for realizing webpage theme updating
CN104598571A (en) Method and device for playing multimedia resource
CN104199917A (en) Method and device for translating webpage content and client
CN102915228A (en) Menu toolbar integration system and method
CN104899203B (en) Webpage generation method and device and terminal equipment
CN105740014A (en) Method for integrating YouTube functions in mobile terminal application
CN113110829A (en) Multi-UI component library data processing method and device
US20180150217A1 (en) Search method, client terminal, and graphical user interface
CN103546817A (en) Data loading method based on full video and electronic device
CN103176979A (en) Method, device and system for copying layout files online
CN104572981A (en) Web page caching method and mobile terminal device
US11539800B2 (en) Electronic device and control method therefor
CN110737588A (en) automatic point burying method, device, medium and electronic equipment
US10380229B2 (en) Method and system providing contextual functionality in static web pages
CN103365895A (en) Web page resource monitoring method and device
CN103618961A (en) Method, system and browser for displaying video title
CN103955548A (en) Method and device for rendering web page
KR20230111054A (en) Website building method and website building service providing server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200420

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 100080, room 16, building 10-20, Building 29, Haidian District, Suzhou Street, Beijing

Patentee before: UC MOBILE Ltd.

TR01 Transfer of patent right