摘要 |
The present invention provides a network video playback method and an apparatus, where the method includes: receiving an MPD file of a video, and acquiring an access time point requested by a user; determining, according to the MPD file, a media segment corresponding to the access time point; acquiring a segment index of the media segment, where the segment index includes location information of an independently decoded frame in the media segment and location information of a non-independently decoded frame that is in the media segment and that references an independently decoded frame; determining, according to the location information of an independently decoded frame in the media segment and location information of a non-independently decoded frame that is in the media segment and that references an independently decoded frame , a video frame closest to the access time point from the independently decoded frame and the non-independently decoded frame; if the video frame closest to the access time point is a non-independently decoded frame, acquiring an independently decoded frame that is referenced by the video frame closest to the access time point; and starting decoding from the video frame closest to the access time point according to the referenced independently decoded frame, and performing video playback. According to the present invention, access accuracy of network video playback can be improved. |