Multithread download method and download device in network streaming media play, and download equipment
A media playing and multi-threading technology, applied in the field of network communication, can solve the problems that a single thread cannot make full use of multi-core CPUs, cannot make full use of network bandwidth, and cannot play high-definition content, so as to improve user experience and download speed , Improve the effect of cutting table speed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] Reference figure 1 As shown, the present invention provides a multi-threaded download method in network streaming media playback in order to achieve the above content, including when the client clicks on a playable link, sending a connection request to the server according to the source URL of the link, After successfully receiving the response header field, obtain the download information of the corresponding file that needs to be downloaded from the response header field, and judge from the download information whether the download of the file supports resumable transmission, if not, it will directly create a single thread to download the data Otherwise, according to the length of the file, the file is divided into file fragments of the same size, and at the same time, multiple threads corresponding to the download are created to download the file separately. After downloading and playing, release the resources.
[0029] The response header field contains download inform...
Embodiment 2
[0048] Hereinafter, the present invention will be explained through specific examples.
[0049] Assumption: The size of the streaming media file is L=302 M Bytes, the number of threads developed is N=10, the size of each thread downloading fragment is S=3M Bytes, the size of the download buffer allocated by each thread is also 3MB, start multi-threaded download The minimum file size is also 3MB, then the number of fragments required to download a complete file is M = 101. The range of file fragments downloaded by the first thread is [0, 3M), the range of file fragments downloaded by the second thread is [3M, 6M), and so on, and the range of file fragments downloaded by the last thread is [300M, 302M).
[0050] Control figure 1 As shown, after obtaining the relevant information such as the size of the streaming media, save the file size information 302M, configure the number of threads to 10, the thread download segment size of 3M, start 10 threads to start downloading the first ten...
PUM
![No PUM](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/noPUMSmall.5c5f49c7.png)
Abstract
Description
Claims
Application Information
![application no application](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/application.06fe782c.png)
- 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