Streaming media resource downloading method and apparatus, and terminal device
Abstract:
A streaming media resource downloading method includes: determining that a first media file is a to-be-downloaded media file according to first network bandwidth, where the first media file is included in a streaming media resource corresponding to the first network bandwidth, and the first media file includes N data blocks; and after an (n−1)th data block in the first media file is downloaded, and before an nth data block in the first media file is downloaded, determining a length of the to-be-downloaded nth data block according to network bandwidth reduction times in an executed first media file downloading process, where 1≤n≤N. Therefore, a length of a to-be-downloaded data block is adjusted according to the network bandwidth reduction times in the first media file downloading process so that video playing can better adapt to a bandwidth change, and streaming media resource switching times are reduced.
Information query
Patent Agency Ranking
0/0