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

Inactive Publication Date: 2015-04-08
ALLWINNER TECH CO LTD
View PDF4 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the network bandwidth is limited, there will often be the above-mentioned problems of playing freezes and not being able to play high-definition content. The reason is that a single thread cannot make full use of multi-core CPUs, nor can it make full use of network bandwidth.

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
  • Multithread download method and download device in network streaming media play, and download equipment
  • Multithread download method and download device in network streaming media play, and download equipment
  • Multithread download method and download device in network streaming media play, and download equipment

Examples

Experimental program
Comparison scheme
Effect test

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...

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 discloses a multithread download method and a download device in network streaming media play, and download equipment. According to the method, when a client clicks a link to be played, a source uniform resource locator (URL) of the link sends a connecting request to a server; after the request is approved and a response header field is received, download information of a document to be downloaded is obtained from the response header field; whether the breakpoint transmission in the document download is supported can be judged according to the download information; if the breakpoint transmission is not supported, single thread download data are directly set up; if the breakpoint transmission is supported, the document can be divided into fragments with the same size according to the length of the document; and at the same time, multi threads are set up for downloading the fragments of the document. A bandwidth is effectively utilized, the download speed is increased, and the fluency of streaming media play is improved.

Description

Technical field [0001] The present invention relates to the technical field of network communication, in particular to a multithreaded download method, device and download equipment in network streaming media playback. Background technique [0002] With the development of network multimedia technology and Internet video services, online browsing and watching of network videos has become very common. Whether it is a smart phone or a network set-top box, streaming media has greatly enriched people's daily life. In the case of good network conditions, you can usually watch videos smoothly, but the actual network conditions are often slow or often unstable. The direct impact is that the playback of network videos is stuck, cannot be played high-definition content, and the cutting speed Slow, greatly affecting the user experience. Therefore, in order to smoothly play online videos and even play clearer video content in an environment with poor network conditions, an effective data d...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04N21/472H04N21/433G06F17/30H04L29/08
CPCH04N21/472G06F16/172H04L69/326H04N21/4331
Inventor 林北洪陈小川
Owner ALLWINNER TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products