The present invention discloses a media file on-demand method, comprising: the
server, upon receiving the media on-demand request from the
client, provides the index information in the self-defining media file to the
client; the
server, upon receiving the playing progress request from said
client, according to the requested time in the playing progress request, searches for the starting offset position of the media data corresponding to the requested time in the index information; the
server, according to the starting offset position of the media data, reads out the media data corresponding to the requested time in the self-defining media file, and provides the media data to the client. The present invention further discloses a media file on-demand
system and apparatus, wherein the index information derived by analyzing the original media file divides the original media file into individual segments according to time, thus the user, upon watching the program and dragging on the
progress bar, is enabled to request the data according to the time so as to quickly acquire the media data at the time corresponding to the drag-and-drop position, so the experience of use by the user is enhanced.