The server MUST NOT change the Media Playlist file, except to:
o Append lines to it (Section 6.2.1).
如果我们看看第4.3.3.4节:
The EXT-X-ENDLIST tag indicates that no more Media Segments will be added to the Media Playlist file. It MAY occur anywhere in the Media Playlist file.
这在HLS spec中明确允许作为“实时播放列表”。需要注意的是,第6.2.1节中有几点:
如果我们看看第4.3.3.4节:
换句话说,如果播放列表不包含
#EXT-X-ENDLIST
标记,则播放器将继续以一定频率从其最初加载的任何源加载播放列表,并寻找服务器将片段附加到播放列表中大多数玩家都会考虑到当前的网络状况,这样他们就有机会在播放开始前获得新的片段。如果服务器需要中断这些段,或者引入间隙,那么它有责任引入
#EXT-X-DISCONTINUITY-SEQUENCE
标记苹果在其开发者网站上提供了一个更具体的example of a Live Playlist
相关问题 更多 >
编程相关推荐