摘要 |
A method for playing and checking a streaming media file comprises: acquire a combined file generated by segmenting streaming media according to HLS technology, and cut the combined file into a plurality of data blocks according to a preset size (S101); store the data blocks to a correction server and a plurality of P2P servers (S102); a P2P client downloads the data blocks from the P2P servers (S103); calculate check values for the downloaded data blocks and determine whether the calculated check values are consistent with check information stored in the data blocks (S104); if the check values are not consistent with the check information stored in the data blocks, download, from the correction server, data blocks of which the check information are not consistent with the check values (S105). By means of the solution, when the data in the P2P servers are corrupted, a check and downloading of uncorrupted data can be automatically performed, thus improving the playback quality. |