Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

HLS protocol-based channel switching method and apparatus

A channel switching and channel technology, which is applied in the field of channel switching methods and devices based on the HLS protocol, can solve the problems of player delay, black screen, freeze, etc., and achieve the effect of reducing delay

Inactive Publication Date: 2014-04-30
LE SHI ZHI ZIN ELECTRONIC TECHNOLOGY (TIANJIN) LTD
View PDF3 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Restarting the player often causes delays, black screens, freezes, etc.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • HLS protocol-based channel switching method and apparatus
  • HLS protocol-based channel switching method and apparatus
  • HLS protocol-based channel switching method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] Please refer to figure 1 , the HLS protocol-based channel switching method of this embodiment includes the following steps:

[0045] Step 101, receiving a channel switching instruction;

[0046] Step 102, obtaining the m3u8 file of the live video clip of the target channel corresponding to the channel switching instruction;

[0047] Step 103, modify the currently playing m3u8 file according to the acquired m3u8 file, and write the information of the live video clip of the target channel corresponding to the channel switching instruction into the currently playing m3u8 file;

[0048] Step 104, download and play the video clip according to the modified m3u8 file.

[0049] According to the HLS protocol, the player downloads and plays video clips according to the m3u8 file of the video selected by the user. Specifically, please refer to figure 2 m3u8 file shown, where:

[0050] #EXTM3U: Indicates the m3u file header, which is placed on the first line.

[0051] #EXT-X...

Embodiment 2

[0057] On the basis of Embodiment 1, this embodiment further defines the process of modifying the currently playing m3u8 file according to the obtained m3u8 file: obtain the address of the target channel saved locally; the address of the target channel is sent by the cloud server to Local: According to the address of the target channel, the m3u8 file of the live video segment of the target channel corresponding to the channel switching instruction is obtained from the cloud server.

[0058] Specifically, the cloud server issues a global channel address. For the live broadcasting stations of video websites, the address of each channel is usually fixed, and the global channel address issued by the cloud server will be saved locally, so that when receiving the channel switching command, the channel switching command can be obtained from the cloud server according to the address of the target channel The corresponding live video information of the target channel, that is, the m3u8...

Embodiment 3

[0061] On the basis of Embodiment 1, this embodiment further defines that the process of modifying the currently playing m3u8 file according to the obtained m3u8 file includes: replacing the URL of the video segment of the target channel in the obtained m3u8 file with the URL currently being played m3u8 file to be played, and replace the duration of the video clip into the field corresponding to the URL.

[0062] Specifically, the m3u8 file of the live video clips of the target channel obtained from the cloud server includes the URLs of the three video clips currently being broadcast by the target channel. After obtaining the m3u8 file, replace the three URLs into the currently playing m3u8 file, and replace the duration of the three video clips into the corresponding #EXTINF field. For example, the m3u8 file of the live video segment of the target channel obtained from the cloud server is as follows: image 3 shown, while the m3u8 file the user is playing is figure 2 For t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides an http live streaming (HLS) protocol-based channel switching method and apparatus. The method comprises the following steps: receiving a channel switching instruction; obtaining an m3u8 file of a video clip that corresponds to the channel switching instruction and is broadcasted by a target channel in a live mode; according to the obtained m3u8 file, modifying the currently-broadcasted m3u8 file and writing information of the video clip that corresponds to the channel switching instruction and is broadcasted by a target channel in a live mode into the currently-broadcasted m3u8 file; and according to the modified m3u8 file, downloading and playing the video clip. According to the invention, after the channel switching instruction is received, the currently-broadcasted m3u8 file is modified. The whole process is transparent for the broadcasting device and the broadcasting device does not need to be started again, so that problems of time delay and black screen due to restarting can be solved.

Description

technical field [0001] The present invention relates to the technical field of video playback, in particular to an HLS protocol-based channel switching method and device thereof. Background technique [0002] With the development of digital technology and Internet technology, smart TVs have gradually replaced traditional TVs and become the mainstream of the TV market, following the trend of "high-definition", "networking" and "smart" TVs. Smart TV has a fully open platform and is equipped with an operating system. While enjoying ordinary TV content, users can install and uninstall various application software by themselves to realize multiple functions such as watching smart TV programs, watching live streaming media, and accessing the Internet. [0003] Through live streaming media, video websites can publish programs of multiple channels to users, such as music channels, movie channels, sports channels, animation channels, etc. Users can watch live channels of smart TVs ju...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04N21/438H04N21/643H04N21/858
Inventor 苍鹏李强
Owner LE SHI ZHI ZIN ELECTRONIC TECHNOLOGY (TIANJIN) LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products