摘要 |
A method for storing a streaming media file comprises: acquiring a streaming media file to be stored, and segmenting the streaming media file according to a preset duration to obtain a plurality of segments corresponding to the streaming media and an index file comprising offsets of the segments and pointers pointing to the segments (S101); combining the index file with the segments of the streaming media file to generate a combined file (S102); sequentially cutting the combined file according to a preset size to obtain a plurality of data blocks, the data blocks comprising their respective serial numbers, and transmitting the data blocks to a plurality of P2P servers for storage (S103). By means of the solution, data blocks are downloaded from a plurality of servers, so that the downloading speed is improved. In addition, the management becomes more convenient, and fewer resources are occupied. |