摘要 |
<p>The present invention provides a method and a device for transmitting streaming media. The method includes: generating at least one index segment, where the at least one index segment includes index information of at least one media segment, and the at least one index segment is independent of the at least one media segment; generating storage location information corresponding to the at least one index segment according to a generation rule of the storage location information corresponding to the at least one index segment; and storing the at least one index segment at a storage location corresponding to the storage location information, so that a client can obtain the at least one index segment from the storage location. In the embodiments of the present invention, index information of a media segment is provided by an index segment independent of the media segment, so that a client can obtain the index segment according to requirements, thereby reducing unnecessary data transmission and saving bandwidth.</p> |