1

我有一个 m3u8 文件,想知道文件/url 的顺序是否重要。

#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=450000,RESOLUTION=448x252
448x252_450.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=800000,RESOLUTION=624x352
624x352_800.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1200000,RESOLUTION=640x360
640x360_1200.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1800000,RESOLUTION=640x360
640x360_1800.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2600000,RESOLUTION=1280x720
1280x720_2600.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=125000,CODECS="mp4a.40.2"
mp4a.40.2.m3u8

如果您注意到,分辨率不是从最低到最高。这就是我所关心的。谢谢!

4

2 回答 2

3

只有第一个 #EXT-X-STREAM-INF 很重要。它将被选为要加载的第一个流。一旦下载了几个片段并且播放器对可用带宽有了很好的了解,它将从列表的其余部分中进行选择。

于 2014-01-31T00:40:59.877 回答
0

Which HLS player are you using?

The order of the URLs does not matter. Typically a HLS player downloads the first / lowest resolution initially and then constantly monitors the throughput of each transport stream download to determine the bandwidth available.

于 2014-05-26T11:30:28.313 回答