Method for downloading video stream and electronic equipment
A technology of electronic equipment and video streaming, applied in the field of multimedia, can solve the problems that electronic equipment cannot be downloaded and played, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0048] Embodiments of the present invention provide a method for downloading video streams, such as figure 1 shown, including:
[0049] S101. The electronic device acquires an M3U8 file constituting a transport stream TS.
[0050]Exemplarily, the electronic device may be an electronic terminal capable of downloading and playing video data streams, such as any one of electronic terminals such as a mobile phone, an ipad, a personal computer, and a smart TV.
[0051] Among them, the transport stream (Transport Stream, TS) is a data stream defined by MPEG-2, and its purpose is to transmit and store encoded data of one or more programs in an environment where serious errors may occur. Such errors appear as bit value errors or loss of Transport Stream packets. An MPEG-2 Transport Stream consists of consecutive Transport Stream packets. These transport stream packets carry two types of information: coded and compressed original stream data and a program specific information (PSI) ...
Embodiment 2
[0064] Embodiments of the present invention provide a method for downloading video streams, such as figure 2 shown, including:
[0065] S201. The electronic device detects a TS download instruction, and the download instruction includes a TS identifier to be downloaded.
[0066] Wherein, the electronic device receives the user's trigger on the icon of any video file in the video recommendation window, and generates a TS download instruction including the TS identifier corresponding to the video file.
[0067] S202. After detecting the download instruction, the electronic device downloads the M3U8 file constituting the TS from the server according to the TS identifier included in the download instruction.
[0068] Specifically, after the electronic device detects the download instruction, it can send a TS download request message containing the TS identifier to be downloaded to the server, so that the server obtains the M3U8 file corresponding to the TS identifier, and sends ...
Embodiment 3
[0092] An embodiment of the present invention provides an electronic device, such as image 3 shown, including:
[0093] The first acquiring unit 31 is configured to acquire the M3U8 files composing the transport stream TS.
[0094] The parsing unit 32 is configured to parse the M3U8 file obtained by the first obtaining unit, so as to obtain slice addresses of all slice files of the TS corresponding to the M3U8 file.
[0095] The downloading unit 33 is configured to download each slice file respectively according to the slice address obtained by the parsing unit, and store each downloaded slice file locally.
[0096] Further, the parsing unit 32 is further configured to parse the M3U8 file to obtain the slice addresses of all slice files of the TS corresponding to the M3U8 file and the playing sequence of the slice files corresponding to the slice addresses.
[0097] Wherein, the playing sequence is: when playing the TS, the playing sequence of the slice files in the TS.
...
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