CN103561337A - Live web casting method and device based on intelligent television - Google Patents
Live web casting method and device based on intelligent television Download PDFInfo
- Publication number
- CN103561337A CN103561337A CN201310530414.0A CN201310530414A CN103561337A CN 103561337 A CN103561337 A CN 103561337A CN 201310530414 A CN201310530414 A CN 201310530414A CN 103561337 A CN103561337 A CN 103561337A
- Authority
- CN
- China
- Prior art keywords
- video
- target network
- address
- network video
- calling
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000005266 casting Methods 0.000 title abstract 2
- 230000006870 function Effects 0.000 claims description 30
- 238000009434 installation Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 5
- 239000012634 fragment Substances 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention provides a live web casting method and device based on an intelligent television. According to the method, after target network video is selected, the video tag of the webpage where the target video is located is obtained, the play address of the target network video is obtained according to the video tag, when the target network video is live broadcasting video, the play address is the storage address of a play list document, the real address of the target network video is obtained according to the play list document, the play list comprises the real address of the target network video, a displayer is called, and the displayer is made to obtain and play the target network video according to the real address. By the adoption of the method, the displayer in the intelligent television can be called directly to display live broadcasting video, dedicated installation of a video displayer with the function of supporting live broadcasting is not needed, the operation process by a user is simple, and user experience is improved.
Description
Technical Field
The application belongs to the field of smart televisions, and particularly relates to a live webcasting method and device based on a smart television.
Background
The television is the most common household appliance in the modern society, and with the development of science and technology, the smart television has a full-open platform and is provided with an operating system. The user can install and uninstall various application software by himself while enjoying common television content based on the smart television, the functions of the smart television can be continuously expanded and upgraded, and rich personalized experience can be brought to the user.
At present, an android operating system is adopted by an intelligent television, a browser in the android system supports an HTML5 technology, only an on-demand function of a network online video is realized, however, a live broadcast part is involved, and a video player capable of supporting the live broadcast function is needed to realize the on-demand function.
Therefore, when a user wants to watch a certain live video while browsing a webpage, and the player currently used by the user cannot support live broadcasting, the video cannot be played, so that the user is prompted to install a video player capable of supporting the live broadcasting function first and then watch the live video, and the process is complicated and the user experience is poor.
Disclosure of Invention
In view of this, an object of the present application is to provide a method and an apparatus for live webcasting based on a smart television, where a common video player is also used to play a live webcasting video, and a video player capable of supporting a live webcasting function does not need to be specially installed, so that a user operation process is simple, and user experience is improved.
A live webcasting method based on a smart television comprises the following steps:
according to received request information for requesting a target network video, opening a webpage where the target network video is located;
acquiring a video label of the webpage, and analyzing the video label to obtain a playing address of a target network video;
judging whether the playing address meets a preset condition or not;
if the target network video does not meet the preset target network video playing address, calling a player in the intelligent television to enable the player to obtain and play the target network video according to the playing address;
if yes, judging that the target network video is a live video and the playing address is a storage address of a playlist file, and acquiring a real address of the target network video according to the playlist file, wherein the playlist file comprises the real address of the target network video;
and calling a player in the intelligent television to enable the player to acquire and play the target network video according to the real address.
Preferably, the method for acquiring the video tag of the webpage and analyzing the video tag to obtain the play address of the target network video includes:
acquiring an a label where the target network video is located, and acquiring a webpage address URL of the target network video according to the a label;
loading a corresponding hypertext markup language HTML5 video page according to the URL, wherein the video page comprises an HTML5 video tag;
and calling a preset function to analyze the HTML5 video tag to obtain the playing address of the target network video.
Preferably, the method for obtaining the real address of the target network video according to the playlist file includes:
acquiring the playlist file according to the playing address;
and calling a streaming media HLS protocol based on a hypertext transfer protocol to analyze the playlist file to obtain a real address of the target network video.
In the above method, preferably, the preset conditions are: the suffix of the playing address is m3u 8.
In the above method, preferably, the playlist is an index of a video file pointing to a real playing address.
A live device of network based on smart TV includes: the system comprises a network module, an analysis module, a judgment module, a first calling module, an acquisition module and a second calling module;
wherein,
the network module is used for opening a webpage where a target network video is located according to received request information for requesting the target network video;
the analysis module is used for acquiring the video label of the webpage and analyzing the video label to obtain the playing address of the target network video;
the judging module is used for judging whether the playing address meets a preset condition or not; if not, triggering a first calling module; if yes, judging that the target network video is a live video and the playing address is a storage address of a playlist file, and triggering an acquisition module;
the first calling module is used for calling a player in the smart television so that the player can acquire and play the target network video according to the playing address;
the obtaining module is used for obtaining the real address of the target network video according to the playlist file, and the playlist file comprises the real address of the target network video;
the second calling module is used for calling a player in the intelligent television so that the player can acquire and play the target network video according to the real address.
In the above apparatus, preferably, the analysis module includes:
the first acquisition unit is used for acquiring an a label where the target network video is located and acquiring the URL of the target network video according to the a label;
the loading unit is used for loading a corresponding HTML5 video page according to the URL, and the video page comprises an HTML5 video tag;
and the calling function unit is used for calling a preset function to analyze the HTML5 video tag to obtain the playing address of the target network video.
In the above apparatus, preferably, the obtaining module includes:
a second obtaining unit, configured to obtain the playlist file according to the play address;
and the analysis unit is used for calling an HLS protocol to analyze the playlist file to obtain the real address of the target network video.
The application provides a network live broadcast method based on an intelligent television, wherein after a target network video is selected, a video label of a webpage where the target network video is located is obtained, a playing address of the target network video is obtained according to the video label, when the target network video is a live broadcast video, the playing address is a storage address of a playlist file, a real address of the target network video is obtained according to the playlist file, the playlist comprises the real address of the target network video, and a player is called to enable the player to obtain the target network video according to the real address and play the target network video. And when the target network video is the on-demand video and the playing address is the storage address of the target network video, calling a player so that the player acquires and plays the target network video according to the playing address. By adopting the method, when the target network video is the live video, the player in the intelligent television can be directly called to play, a video player capable of supporting the live function does not need to be specially installed, the operation process of a user is simple, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of an embodiment 1 of a live webcasting method based on a smart television provided in the present application;
fig. 2 is a specific flowchart of an embodiment 1 of a live webcasting method based on a smart television according to the present application;
fig. 3 is a flowchart of embodiment 2 of a live webcasting method based on a smart television provided in the present application;
fig. 4 is a schematic structural diagram of an embodiment 1 of a live webcasting device based on a smart television, provided by the present application;
fig. 5 is a schematic structural diagram of an embodiment 1 of a live webcast device based on a smart television according to the present application;
fig. 6 is a schematic structural diagram of an embodiment 2 of a live webcasting device based on a smart television, provided by the present application;
fig. 7 is a flowchart of a first application scenario of a network live broadcast method based on a smart television according to the present application;
fig. 8 is a flowchart of a second application scenario of the network live broadcast method based on the smart television provided by the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The network live broadcast method and device based on the smart television are applied to the smart television, network videos are searched through a browser and are played, and the network videos comprise live videos and on-demand videos.
The smart television related to the embodiment of the application adopts an android system.
The browser, i.e. the client browsing program of the world wide web (web) service, involved in the present application can send various requests to the web server, and the hypertext information and various multimedia data formats sent from the server can be interpreted, displayed and played. The hypertext information is in hypertext Markup Language (HTML), which is a Markup Language related to "web page creation and other information visible in a web browser".
The HLS protocol refers to HTTP-based Streaming (HTTP Live Streaming) network transport protocol, and the working principle is to divide the whole stream into small HTTP-based files to be downloaded, and only a few are downloaded at a time. While the media stream is playing, the client may choose to download the same resource from many different alternate sources at different rates, allowing the streaming media session to accommodate different data rates. When starting a streaming media session, the client downloads an extended M3U playlist file containing metadata for finding an available media stream.
The player referred to in the present application refers to software capable of playing video or audio files stored in the form of digital signals, and the software is provided in a smart television and may be various players such as a media player and a RealPlayer.
Example 1
As shown in fig. 1, a flowchart of a live webcast method based on a smart television provided in embodiment 1 of the present application includes:
step S101: according to received request information for requesting a target network video, opening a webpage where the target network video is located;
when a user watches videos in a network in the intelligent television, if the user wants to watch a certain target network video, the user clicks an icon or a prompt message and other identifications of the target network video in a current webpage to generate request information for requesting the target network video, receives the request information, and opens a webpage where the target network video is located according to the request information.
Step S102: acquiring a video label of the webpage, and analyzing the video label to obtain a playing address of a target network video;
and acquiring a video label in a webpage where the target network video is located, wherein the video label is a special label of the target network video, and analyzing the video label to obtain a playing address of the target network video.
Step S103: judging whether the playing address meets a preset condition or not; if not, executing step S104; if yes, executing step S105;
judging whether the playing address meets a preset condition, if not, the target network video is an on-demand video, the playing address is a storage address of the target network video, the target network video can be obtained according to the playing address, and executing the step S104; if yes, the target network video is a live video, the playing address is not the storage address of the target network video but the storage address of the playlist file, and step S105 is executed.
Step S104: calling a player in the intelligent television to enable the player to acquire and play the target network video according to the playing address;
and when the playing address does not meet the preset condition, the target network video is the video on demand, the playing address is the storage address of the target network video, and the target network video can be obtained according to the playing address.
And calling a player in the intelligent television, so that the player can obtain the target network video according to the playing address and directly play the video.
Step S105: the target network video is a live video and the play address is a storage address of a play list file, and a real address of the target network video is obtained according to the play list file, wherein the play list file comprises the real address of the target network video;
when the play address meets the preset condition, the target network video is a live video, the play address is not the storage address of the target network video but the storage address of a playlist file, and the playlist includes the real address of the target network video, so that the playlist file needs to be analyzed to obtain the real address of the target network video.
In practical implementation, since the video file may be divided into a plurality of segments, which are stored in a plurality of different addresses, respectively, the playlist is an index of the video file pointing to the real playing address.
Step S106: and calling a player in the intelligent television to enable the player to acquire and play the target network video according to the real address.
And calling a player in the intelligent television, wherein the player can obtain the target network video according to the real address and play the video, so that the direct playing video is played.
As shown in fig. 2, a specific flowchart of a live webcasting method based on a smart television provided in embodiment 1 of the present application is shown in fig. 1, where step S102 includes:
step S1021: acquiring an a label of the webpage, and acquiring a webpage address URL of the target network video according to the a label;
the a-tag in HTML can define an anchor (anchor), and there are two uses for anchors: one is to create a link (or hyperlink) to another document by using the href attribute, and the other is to create a bookmark inside one document (that is, a link to a document fragment can be created) by using the name or id attribute. While the most important attribute of the a element is the href attribute, which points to the target of the link.
The browser acquires the a label of the webpage and can acquire a target of the link, namely a webpage address URL of the target network video, according to the a label.
Step S1022: loading a corresponding hypertext markup language HTML5 video page according to the URL;
the video page comprises an HTML5 video tag;
the HTML5 Video tag contains a Video tag.
The HTML5 is the next major revision of HTML.
The browser loads a corresponding HTML5 video page according to the URL, and the video page comprises an HTML5 video tag.
For example, the video tag is: < video src = "http:// www.letv.com/movie.mp4" > or < video src = "http:// www.letv.com/movie.m3u8" > and the like.
Step S1023: and calling a preset function to analyze the HTML5 video tag to obtain the playing address of the target network video.
The preset function is a js (javascript) function.
Since the Video tag of the HTML5 Video tag contains the address of the target network Video, the JS function is called to analyze the Video tag, so that the playing address of the target network Video can be obtained through analysis.
For example, the playback address in the video tag < video src = "http:// www.letv.com/movie. mp4" > is http:// www.letv.com/movie. mp 4.
And the playback address in the video tag < video src = "http:// www.letv.com/movie.m3u8" > is http:// www.letv.com/movie.m3u8.
And analyzing parameters in the Video tag of the target network Video by adopting a JS function to obtain the playing address of the target network Video.
The embodiment 1 of the application provides a live webcasting method based on an intelligent television, which includes the steps of obtaining a video tag of a webpage where a target webcasting video is located after the target webcasting video is selected, obtaining a playing address of the target webcasting video according to the video tag, obtaining a real address of the target webcasting video according to a playlist file when the target webcasting video is the live webcasting video, and calling a player so that the player can obtain the target webcasting video according to the real address and play the target webcasting video. And when the target network video is the on-demand video and the playing address is the storage address of the target network video, calling a player so that the player acquires and plays the target network video according to the playing address. By adopting the method, when the target network video is the live video, the player in the intelligent television can be directly called to play, a video player capable of supporting the live function does not need to be specially installed, the operation process of a user is simple, and the user experience is improved.
Example 2
As shown in fig. 3, in a flowchart shown in fig. 1, step S105 includes:
step S1051: acquiring the playlist file according to the playing address;
the preset conditions are as follows: the suffix of the playing address is m3u 8.
For example, when the analyzed playing address is http:// www.letv.com/movie.m3u8, the suffix of the playing address is m3u8, and the preset condition is met, the target network video is a live video, and the playing address is an address for storing a playlist file.
And when the play address meets the preset condition, judging that the target network video is a live video and the play address is a storage address of a play list file, acquiring the play list file according to the play address, wherein the play list file comprises a real address of the target network video, and providing a basis for subsequently analyzing the play list file to obtain the real address of the target network video.
Step S1052: and calling an HLS protocol to analyze the playlist file to obtain a real address of the target network video.
The playlist file is parsed by calling HLS protocol, and is in the format of m3u 8.
For example, the m3u8 file format is:
#EXTM3U
#EXT-X-TARGETDURATION:30#EXTINF:30,
http://192.169.1.176/sample_100k-1.ts#EXTINF:30,
http://192.169.1.176/sample_100k-2.ts#EXTINF:30,
http://192.169.1.176/sample_100k-3.ts#EXT-X-ENDLIST
according to the format, the real address of the target network video can be obtained:
http://192.169.1.176/sample_100k-1.ts#EXTINF:30,
http://192.169.1.176/sample_100k-2.ts#EXTINF:30,
http://192.169.1.176/sample_100k-3.ts#EXT-X-ENDLIST
according to the real address, the player can obtain the target network video, and the target network video is played.
The embodiment 2 of the application provides a live webcasting method based on a smart television, which is characterized in that an HLS protocol is adopted to analyze a playlist file acquired from a play address to obtain a real address of a target web video, so that a player can acquire the video according to the real address, and therefore, even if the target web video is a live webcasting video, the player in the smart television can be directly called to play, a video player capable of supporting a live webcasting function does not need to be specially installed, the user operation process is simple, and the user experience is improved.
Corresponding to the embodiment of the network live broadcast method based on the intelligent television provided by the application, the application specification further provides an embodiment of a network live broadcast device based on the intelligent television.
As shown in fig. 4, the present application provides a schematic structural diagram of an embodiment 1 of a live webcasting device based on a smart television, where the device includes: the system comprises a network module 101, an analysis module 102, a judgment module 103, a first calling module 104, an acquisition module 105 and a second calling module 106;
the network module 101 is configured to open a webpage where a target network video is located according to received request information requesting the target network video;
when a user watches videos in a network in the smart television, if the user wants to watch a certain target network video, the user clicks an icon or a prompt message or other identifier of the target network video in a current webpage to generate request information for requesting the target network video, and the network module 101 receives the request information and opens a webpage where the target network video is located according to the request information.
The analysis module 102 is configured to obtain a video tag of the web page, and analyze the video tag to obtain a play address of a target network video;
the parsing module 102 obtains a video tag in a webpage where the target network video is located, where the video tag is a special tag for the target network video, and parses the video tag to obtain a playing address of the target network video.
The judging module 103 is configured to judge whether the play address meets a preset condition; if not, triggering the first calling module 104; if yes, judging that the target network video is a live video and the playing address is a storage address of a playlist file, and triggering an acquisition module 105;
the judging module 103 judges whether the playing address meets a preset condition, if not, the target network video is an on-demand video, the playing address is a storage address of the target network video, the target network video can be obtained according to the playing address, and the first calling module 104 is triggered; if yes, the target network video is a live video, and the playing address is not the storage address of the target network video but the storage address of the playlist file, and the obtaining module 105 is triggered.
The first calling module 104 is configured to call a player in the smart television, so that the player obtains and plays the target network video according to the playing address;
when the judgment module 103 judges that the playing address does not satisfy the preset condition, the target network video is an on-demand video, the playing address is a storage address of the target network video, the target network video can be obtained according to the playing address, and the playing address can be sent to the first calling module 104, so that the first calling module 104 can synchronously send the playing address to the player when calling the player.
The first calling module 104 calls a player in the smart television, so that the player can obtain the target network video according to the playing address and directly play the video.
The obtaining module 105 is configured to obtain a real address of the target network video according to the playlist file, where the playlist file includes the real address of the target network video;
when the judgment module 103 judges that the play address meets the preset condition, the target network video is a live video, the play address is not the storage address of the target network video but the storage address of the playlist file, and the playlist includes the real address of the target network video, so that the acquisition module 105 needs to analyze the playlist file to acquire the real address of the target network video, and the real address can be sent to the second calling module 106, so that the second calling module 106 synchronously sends the real address to the player when calling the player.
In practical implementation, since the video file may be divided into a plurality of segments, which are stored in a plurality of different addresses, respectively, the playlist is an index of the video file pointing to the real playing address.
The second invoking module 106 is configured to invoke a player in the smart television, so that the player obtains and plays the target network video according to the real address.
The second calling module 106 calls a player in the smart television, so that the player can obtain the target network video according to the real address and play the video, thereby realizing the playing of the live video.
As shown in fig. 5, a specific structural diagram of a live webcast device based on a smart television provided in embodiment 1 of the present application is shown in fig. 4, where the parsing module 102 includes: a first obtaining unit 1021, a loading unit 1022, and a calling function unit 1023;
the first obtaining unit 1021 is configured to obtain an a tag where the target network video is located, and obtain a URL of the target network video according to the a tag;
the a-tag in HTML can define an anchor (anchor), and there are two uses for anchors: one is to create a link (or hyperlink) to another document by using the href attribute, and the other is to create a bookmark inside one document (that is, a link to a document fragment can be created) by using the name or id attribute. While the most important attribute of the a element is the href attribute, which points to the target of the link.
The first obtaining unit 1021 obtains the a-tag of the web page, and can obtain the web page address URL of the target that the a-tag points to the link, that is, the target web video according to the a-tag.
The loading unit 1022 is configured to load a corresponding HTML5 video page according to the URL, where the video page includes an HTML5 video tag;
the HTML5 Video tag contains a Video tag.
The HTML5 is the next major revision of HTML.
The loading unit 1022 loads a corresponding HTML5 video page according to the URL, where the video page includes an HTML5 video tag.
For example, the video tag is: < video src = "http:// www.letv.com/movie.mp4" > or < video src = "http:// www.letv.com/movie.m3u8" > and the like.
The calling function unit 1023 is used for calling a preset function to analyze the HTML5 video tag to obtain a playing address of the target network video.
The preset function is a js (javascript) function.
Since the Video tag of the HTML5 Video tag contains the address of the target network Video, the call function unit 1023 calls the JS function to parse the Video tag, so as to parse the playing address of the target network Video.
For example, the playback address in the video tag < video src = "http:// www.letv.com/movie. mp4" > is http:// www.letv.com/movie. mp 4.
And the playback address in the video tag < video src = "http:// www.letv.com/movie.m3u8" > is http:// www.letv.com/movie.m3u8.
And analyzing parameters in the Video tag of the target network Video by adopting a JS function to obtain the playing address of the target network Video.
The embodiment 1 of the application provides a network live broadcast device based on an intelligent television, which is characterized in that after a target network video is selected, a video tag of a webpage where the target network video is located is obtained, a play address of the target network video is obtained according to the video tag, when the target network video is a live broadcast video, the play address is a storage address of a playlist file, a real address of the target network video is obtained according to the playlist file, the playlist includes the real address of the target network video, and a player is called, so that the player obtains the target network video according to the real address and plays the target network video. And when the target network video is the on-demand video and the playing address is the storage address of the target network video, calling a player so that the player acquires and plays the target network video according to the playing address. By adopting the device, no matter whether the target network video is the video on demand or the live video, the player in the intelligent television can be directly called to play, the video player capable of supporting the live function does not need to be specially installed, the user operation process is simple, and the user experience is improved.
Example 2
As shown in fig. 6, in the structure shown in fig. 1, an obtaining module 105 includes: a second acquisition unit 1051 and an analysis unit 1052;
the second obtaining unit 1051 is configured to obtain the playlist file according to the play address;
the preset conditions are as follows: the suffix of the playing address is m3u 8.
For example, when the playing address of the target network video obtained by the parsing of the parsing module 102 is http:// www.letv.com/movie.m3u8, the suffix of the playing address is m3u8, and the preset condition is met, the target network video is a live video, and the playing address is an address for storing a playlist file.
When the play address meets the preset condition, it is determined that the target network video is a live video and the play address is a storage address of a playlist file, and the second obtaining unit 1051 obtains the playlist file according to the play address, where the playlist file includes a real address of the target network video, so as to provide a basis for subsequently analyzing the playlist file to obtain the real address of the target network video.
The parsing unit 1052 is configured to invoke an HLS protocol to analyze the playlist file to obtain a real address of the target network video.
Parsing unit 1052 invokes HLS protocol to parse the playlist file, which is in the format of m3u 8.
For example, the m3u8 file format is:
#EXTM3U
#EXT-X-TARGETDURATION:30#EXTINF:30,
http://192.169.1.176/sample_100k-1.ts#EXTINF:30,
http://192.169.1.176/sample_100k-2.ts#EXTINF:30,
http://192.169.1.176/sample_100k-3.ts#EXT-X-ENDLIST
according to the format, the real address of the target network video can be obtained:
http://192.169.1.176/sample_100k-1.ts#EXTINF:30,
http://192.169.1.176/sample_100k-2.ts#EXTINF:30,
http://192.169.1.176/sample_100k-3.ts#EXT-X-ENDLIST
according to the real address, the player can obtain the target network video, and the target network video is played.
The embodiment 2 of the application provides a live webcast device based on a smart television, which analyzes a playlist file acquired from a play address by adopting an HLS protocol to obtain a real address of a target web video, so that a player can acquire a video according to the real address, and therefore, even if the target web video is a live webcast video, the player in the smart television can be directly called to play the live webcast video, a video player capable of supporting a live webcast function does not need to be specially installed, the user operation process is simple, and the user experience is improved.
The application also provides a specific application scene of the network live broadcast method based on the intelligent television in practical application.
Application scenario one
A specific flowchart of the application scenario one is shown in fig. 7.
In the application scenario, the process of playing the live video is performed.
Step S201: a user selects a target network video from a browser webpage of the intelligent television to generate request information;
the user selects a target network video to be watched from the displayed web pages of the intelligent television through a control device such as a remote controller.
Step S202: receiving the request information, and opening a webpage where the target network video is located;
step S203: acquiring a video label of the webpage, and analyzing the video label to obtain a playing address of a target network video;
acquiring a video label of the webpage:
<video src="http://www.letv.com/movie.m3u8">
analyzing the video label to obtain the playing address of the target network video:
http://www.letv.com/movie.m3u8
the playing address meets the preset conditions: and if the suffix of the playing address is m3u8, the target network video is a live video, and the playing address is an address for storing a playlist file.
Step S204: acquiring a playlist file according to the playing address, and calling an HLS protocol to analyze the playlist file to obtain a real address of the target network video;
the format of the obtained playlist file is as follows:
#EXTM3U
#EXT-X-TARGETDURATION:30#EXTINF:30,
http://192.169.1.176/sample_100k-1.ts#EXTINF:30,
http://192.169.1.176/sample_100k-2.ts#EXTINF:30,
http://192.169.1.176/sample_100k-3.ts#EXT-X-ENDLIST
according to the format, the real address of the target network video can be obtained:
http://192.169.1.176/sample_100k-1.ts#EXTINF:30,
http://192.169.1.176/sample_100k-2.ts#EXTINF:30,
http://192.169.1.176/sample_100k-3.ts#EXT-X-ENDLIST
step S205: and calling a player in the intelligent television to enable the player to acquire and play the target network video according to the real address.
And calling a player in the intelligent television, starting the player, acquiring the target network video according to the real address, and playing the video, thereby realizing the playing of the live video.
Application scenario two
A specific flowchart of the application scenario two is shown in fig. 8.
In the application scenario, a video on demand is played.
Step S301: a user selects a target network video from a browser webpage of the intelligent television to generate request information;
the user selects a target network video to be watched from the displayed web pages of the intelligent television through a control device such as a remote controller.
Step S302: receiving the request information, and opening a webpage where the target network video is located;
step S303: acquiring a video label of the webpage, and analyzing the video label to obtain a playing address of a target network video;
acquiring a video label of the webpage:
<video src="http://www.letv.com/movie.mp4">
analyzing the video label to obtain the playing address of the target network video:
http://www.letv.com/movie.mp4
the playing address does not meet the preset conditions: and if the suffix of the playing address is mp4, the target network video is the video on demand, and the playing address is the address for storing the target network video.
Step S304: and calling a player in the intelligent television to enable the player to acquire and play the target network video according to the playing address.
And calling a player in the smart television, starting the player, acquiring the target network video according to the playing address, and playing the video, so that the playing of the on-demand video is realized.
The network live broadcast method and device based on the smart television provided by the invention are introduced in detail, specific examples are applied in the text to explain the principle and the implementation mode of the invention, and the description of the above embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.
Claims (8)
1. A live webcasting method based on a smart television is characterized by comprising the following steps:
according to received request information for requesting a target network video, opening a webpage where the target network video is located;
acquiring a video label of the webpage, and analyzing the video label to obtain a playing address of a target network video;
judging whether the playing address meets a preset condition or not;
if the target network video does not meet the preset target network video playing address, calling a player in the intelligent television to enable the player to obtain and play the target network video according to the playing address;
if yes, judging that the target network video is a live video and the playing address is a storage address of a playlist file, and acquiring a real address of the target network video according to the playlist file, wherein the playlist file comprises the real address of the target network video;
and calling a player in the intelligent television to enable the player to acquire and play the target network video according to the real address.
2. The method of claim 1, wherein obtaining the video tag of the web page and parsing the video tag to obtain the play address of the target network video comprises:
acquiring an a label where the target network video is located, and acquiring a webpage address URL of the target network video according to the a label;
loading a corresponding hypertext markup language HTML5 video page according to the URL, wherein the video page comprises an HTML5 video tag;
and calling a preset function to analyze the HTML5 video tag to obtain the playing address of the target network video.
3. The method of claim 1, wherein obtaining the real address of the target network video from the playlist file comprises:
acquiring the playlist file according to the playing address;
and calling a streaming media HLS protocol based on a hypertext transfer protocol to analyze the playlist file to obtain a real address of the target network video.
4. The method according to claim 1, wherein the preset condition is: the suffix of the playing address is m3u 8.
5. The method of claim 1, wherein the playlist is an index of video files pointing to real playing addresses.
6. The utility model provides a live device of network based on smart television which characterized in that includes: the system comprises a network module, an analysis module, a judgment module, a first calling module, an acquisition module and a second calling module;
wherein,
the network module is used for opening a webpage where a target network video is located according to received request information for requesting the target network video;
the analysis module is used for acquiring the video label of the webpage and analyzing the video label to obtain the playing address of the target network video;
the judging module is used for judging whether the playing address meets a preset condition or not; if not, triggering the first calling module; if yes, judging that the target network video is a live video and the playing address is a storage address of a playlist file, and triggering the acquisition module;
the first calling module is used for calling a player in the smart television so that the player can acquire and play the target network video according to the playing address;
the obtaining module is used for obtaining the real address of the target network video according to the playlist file, and the playlist file comprises the real address of the target network video;
the second calling module is used for calling a player in the intelligent television so that the player can acquire and play the target network video according to the real address.
7. The apparatus of claim 6, wherein the parsing module comprises:
the first acquisition unit is used for acquiring an a label where the target network video is located and acquiring the URL of the target network video according to the a label;
the loading unit is used for loading a corresponding HTML5 video page according to the URL, and the video page comprises an HTML5 video tag;
and the calling function unit is used for calling a preset function to analyze the HTML5 video tag to obtain the playing address of the target network video.
8. The apparatus of claim 6, wherein the obtaining module comprises:
a second obtaining unit, configured to obtain the playlist file according to the play address;
and the analysis unit is used for calling an HLS protocol to analyze the playlist file to obtain the real address of the target network video.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310530414.0A CN103561337A (en) | 2013-10-30 | 2013-10-30 | Live web casting method and device based on intelligent television |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310530414.0A CN103561337A (en) | 2013-10-30 | 2013-10-30 | Live web casting method and device based on intelligent television |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103561337A true CN103561337A (en) | 2014-02-05 |
Family
ID=50015468
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310530414.0A Pending CN103561337A (en) | 2013-10-30 | 2013-10-30 | Live web casting method and device based on intelligent television |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103561337A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105262856A (en) * | 2015-10-30 | 2016-01-20 | 南京秦杜明视信息技术有限公司 | Network data access encryption system and method |
CN105447197A (en) * | 2015-12-29 | 2016-03-30 | 腾讯科技(深圳)有限公司 | Video downloading processing method and device, and intelligent terminal |
CN105681912A (en) * | 2015-10-16 | 2016-06-15 | 乐视致新电子科技(天津)有限公司 | Video playing method and device |
CN105791971A (en) * | 2014-12-26 | 2016-07-20 | 深圳Tcl数字技术有限公司 | method and device for switching stream media audio |
CN105847877A (en) * | 2016-04-20 | 2016-08-10 | 乐视控股(北京)有限公司 | Processing method and system for live broadcasting request |
CN105979407A (en) * | 2016-06-01 | 2016-09-28 | 无锡天脉聚源传媒科技有限公司 | Live streaming playing method and live streaming playing device |
CN106162380A (en) * | 2015-04-28 | 2016-11-23 | 天脉聚源(北京)科技有限公司 | A kind of Online Video call method and system |
CN107423312A (en) * | 2017-03-14 | 2017-12-01 | 北京潘达互娱科技有限公司 | Live data player method and device |
CN108462902A (en) * | 2018-03-29 | 2018-08-28 | 上海七牛信息技术有限公司 | A kind of media file read method and device, multimedia play system |
CN111064973A (en) * | 2019-11-28 | 2020-04-24 | 湖北工业大学 | Live broadcast system based on IPV9 |
CN112714334A (en) * | 2020-12-30 | 2021-04-27 | 广州方硅信息技术有限公司 | Music gift presenting method and device, equipment and medium thereof |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060036610A1 (en) * | 2004-08-13 | 2006-02-16 | Reallusion Inc. | File conversion and sharing system and the method of the same |
CN102118428A (en) * | 2010-12-29 | 2011-07-06 | 天脉聚源(北京)传媒科技有限公司 | Method and system for playing streaming media |
CN102523248A (en) * | 2011-11-24 | 2012-06-27 | 深圳市万兴软件有限公司 | Method, client and server for playing webpage flash video |
CN102843614A (en) * | 2012-07-27 | 2012-12-26 | 优视科技有限公司 | Streaming media display method and equipment and system |
CN102857797A (en) * | 2012-04-12 | 2013-01-02 | 天脉聚源(北京)传媒科技有限公司 | Background control method and system for video playing |
CN103079089A (en) * | 2012-12-27 | 2013-05-01 | 合一网络技术(北京)有限公司 | Device and method for dynamically generating ts file by utilizing video file |
-
2013
- 2013-10-30 CN CN201310530414.0A patent/CN103561337A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060036610A1 (en) * | 2004-08-13 | 2006-02-16 | Reallusion Inc. | File conversion and sharing system and the method of the same |
CN102118428A (en) * | 2010-12-29 | 2011-07-06 | 天脉聚源(北京)传媒科技有限公司 | Method and system for playing streaming media |
CN102523248A (en) * | 2011-11-24 | 2012-06-27 | 深圳市万兴软件有限公司 | Method, client and server for playing webpage flash video |
CN102857797A (en) * | 2012-04-12 | 2013-01-02 | 天脉聚源(北京)传媒科技有限公司 | Background control method and system for video playing |
CN102843614A (en) * | 2012-07-27 | 2012-12-26 | 优视科技有限公司 | Streaming media display method and equipment and system |
CN103079089A (en) * | 2012-12-27 | 2013-05-01 | 合一网络技术(北京)有限公司 | Device and method for dynamically generating ts file by utilizing video file |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105791971A (en) * | 2014-12-26 | 2016-07-20 | 深圳Tcl数字技术有限公司 | method and device for switching stream media audio |
CN106162380A (en) * | 2015-04-28 | 2016-11-23 | 天脉聚源(北京)科技有限公司 | A kind of Online Video call method and system |
CN105681912A (en) * | 2015-10-16 | 2016-06-15 | 乐视致新电子科技(天津)有限公司 | Video playing method and device |
CN105262856A (en) * | 2015-10-30 | 2016-01-20 | 南京秦杜明视信息技术有限公司 | Network data access encryption system and method |
CN105447197A (en) * | 2015-12-29 | 2016-03-30 | 腾讯科技(深圳)有限公司 | Video downloading processing method and device, and intelligent terminal |
CN105447197B (en) * | 2015-12-29 | 2021-09-28 | 腾讯科技(深圳)有限公司 | Video downloading processing method and device and intelligent terminal |
CN105847877A (en) * | 2016-04-20 | 2016-08-10 | 乐视控股(北京)有限公司 | Processing method and system for live broadcasting request |
CN105979407A (en) * | 2016-06-01 | 2016-09-28 | 无锡天脉聚源传媒科技有限公司 | Live streaming playing method and live streaming playing device |
CN107423312A (en) * | 2017-03-14 | 2017-12-01 | 北京潘达互娱科技有限公司 | Live data player method and device |
CN107423312B (en) * | 2017-03-14 | 2021-04-23 | 北京龙之心科技有限公司 | Live broadcast data playing method and device |
CN108462902A (en) * | 2018-03-29 | 2018-08-28 | 上海七牛信息技术有限公司 | A kind of media file read method and device, multimedia play system |
CN111064973A (en) * | 2019-11-28 | 2020-04-24 | 湖北工业大学 | Live broadcast system based on IPV9 |
CN112714334A (en) * | 2020-12-30 | 2021-04-27 | 广州方硅信息技术有限公司 | Music gift presenting method and device, equipment and medium thereof |
CN112714334B (en) * | 2020-12-30 | 2022-12-02 | 广州方硅信息技术有限公司 | Music gift giving method and device, equipment and medium thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103561337A (en) | Live web casting method and device based on intelligent television | |
CN103546821B (en) | Method and device for regulating video playing interface | |
US9226029B2 (en) | Method and apparatus for client capable of accessing broadcasting network and internet network to receive application | |
JP6174691B2 (en) | Apparatus and method for processing interactive services | |
KR102080637B1 (en) | Method, computer program, and reception apparatus for delivery of supplemental content | |
CA2833315C (en) | Trigger compaction | |
AU2010294783B2 (en) | Method and device for providing complementary information | |
US20020194612A1 (en) | Multimedia presentation | |
CA2837112A1 (en) | Method, computer program, reception apparatus, and information providing apparatus for trigger compaction | |
KR102522741B1 (en) | Broadcast content redistribution and ad insertion | |
EP3310065B1 (en) | Receiving device, transmission device and data processing method | |
EP2873249A1 (en) | Method and apparatus for interacting with a media presentation description that describes a summary media presentation and an original media presentation | |
CN107534793B (en) | Receiving apparatus, transmitting apparatus, and data processing method | |
US10708336B2 (en) | System and method for announcing media changes | |
JP6382943B2 (en) | Method and apparatus for transmitting and receiving additional information in a broadcast communication system | |
US20110302603A1 (en) | Content output system, content output method, program, terminal device, and output device | |
KR20150048735A (en) | Rendering time control | |
CN112449250B (en) | Method, device, equipment and medium for downloading video resources | |
KR20140029837A (en) | Method and apparatus for sharing java script object in webpage | |
WO2014171498A1 (en) | Transmission apparatus, meta file transmission method, reception apparatus, and reception processing method | |
CN107534792B (en) | Receiving apparatus, transmitting apparatus, and data processing method | |
KR102196504B1 (en) | Apparatus and method for providing contents | |
US11362748B2 (en) | Reception device, transmission device, and data processing method |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140205 |