Patent ID: 8776150

Claim:
A method for implementing a cross frame playing mode in media-on-demand in a peer to peer network, comprising the following steps of: a) partitioning a requested media file into media blocks and encapsulating the media blocks into a media content file, and forming a frame index file that records a number of a media block where each media key frame is located; (b) distributing said media content file and said frame index file in the peer to peer network; (c) when requesting a media, a client acquiring the media blocks in said media content file and said frame index file from a source node; (d) when cross frame playing is required, the client calculating a number of a media block where a next media key frame is located according to a number of a next media key frame and said frame index file, and acquiring the corresponding media block to de-encapsulate, decode and play; wherein each media block consists of a block head and a block body; and a partitioning and encapsulation format of said media content file is; said block body consisting of media frames arranged in a sequence of time stamps and an unfilled part being filled with a filler field; said block head describing content of media block data in the media block, and said block head comprising the following fields: a media content identification Cid, a block number Bno, a time stamp Time, a quantity of frames in the block Fcnt, and an optional frame description item Fitem.