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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com