Method and Apparatus for Downloading Streaming Media File Fragment and Terminal
AssigneeHuawei Technologies Co., Ltd.
InventorFeng Peng
Life of this patent
Estimating the term…
Abstract
A method, including determining a length of a to-be-downloaded streaming media file fragment, splitting the to-be-downloaded streaming media file fragment into at least two subfragments when the length of the to-be-downloaded streaming media file fragment is greater than a preset length, where a length of each subfragment is not greater than the preset length, and separately downloading each subfragment. The to-be-downloaded streaming media file fragment is split based on the preset length and the subfragments obtained after splitting are downloaded in parallel when a network environment is relatively poor and the to-be-downloaded streaming media file fragment is relatively long.
Claims20
A method for downloading a streaming media file fragment, comprising:
- determining a length of a to-be-downloaded streaming media file fragment;
- splitting the to-be-downloaded streaming media file fragment into at least two subfragments when the length of the to-be-downloaded streaming media file fragment is greater than a preset length, wherein a length of each subfragment is less than or equal to the preset length;
- and
- separately downloading each subfragment.
An apparatus for downloading a streaming media file fragment, comprising:
- a memory comprising instructions;
- and
- a processor coupled to the memory, wherein the instructions cause the processor to be configured to:
- determine a length of a to-be-downloaded streaming media file fragment;
- split the to-be-downloaded streaming media file fragment into at least two subfragments when the length of the to-be-downloaded streaming media file fragment is greater than a preset length matching a transmission bandwidth between a terminal and a server, wherein a length of each subfragment is less than or equal to the preset length;
- and
- separately download each subfragment.
A terminal, comprising:
- a communications bus;
- a processor coupled to the communications bus and configured to:
- determine a length of a to-be-downloaded streaming media file fragment;
- and
- split the to-be-downloaded streaming media file fragment into at least two subfragments when the length of the to-be-downloaded streaming media file fragment is greater than a preset length matching a transmission bandwidth between the terminal and a server;
- a communications interface coupled to the communications bus and configured to:
- receive each subfragment from the server;
- and
- transmit the subfragment to the processor using the communications bus;
- and
- a memory coupled to the communications bus and configured to store each subfragment received by the communications interface.
Dependencies are inferred from the claim text.