網路直播電視之M3U8解析篇 (下)

2021-09-06 20:52:45 字數 1755 閱讀 6204

#extm3u

#ext-x-targetduration:8

#ext-x-media-sequence:92595

#extinf:8,

20121120t182851-04-92595.ts

#extinf:8,

20121120t182851-04-92596.ts

#extinf:8,

20121120t182851-04-92597.ts

#extinf:8,

20121120t182851-04-92598.ts

#extinf:8,

20121120t182851-04-92599.ts

#extinf:8,

20121120t182851-04-92600.ts

#extinf:8,

20121120t182851-04-92601.ts

#extinf:8,

20121120t182851-04-92602.ts

那麼獲取到 20121120t182851-04-92595.ts 片段位址就為http:\\www.***.com\01\xx\20121120t182851-04-92595.ts。

類似情況,例如以下:

#extm3u

#ext-x-allow-cache:no

#ext-x-targetduration:10

#ext-x-media-sequence:9190381

#extinf:10,

/timeshift/63/20121129165010.ts

#extinf:10,

/timeshift/63/20121129165020.ts

#extinf:10,

/timeshift/63/20121129165030.ts

那麼獲取到/timeshift/63/20121129165010.ts片段位址就為http:\\www.***.com\01\xx/timeshift/63/20121129165010.ts。

#extm3u

#ext-x-allow-cache:no

#ext-x-targetduration:10

#ext-x-media-sequence:9190381

#extinf:10,

/timeshift/63/20121129165010.ts

#extinf:10,

/timeshift/63/20121129165020.ts

#extinf:10,

/timeshift/63/20121129165030.ts

將衝突的資料夾剔除,那麼獲取到/timeshift/63/20121129165010.ts片段位址就為http:\\www.***.com\01\xx/timeshift/63/20121129165010.ts。

#extm3u

#ext-x-allow-cache:no

#ext-x-targetduration:10

#ext-x-media-sequence:6297202

#extinf:10,

#extinf:10,

#extinf:10,

總結:2、帶有資料夾結構的源,相同有些或是這種「timeshift/63/2012129165020.ts」,前面不帶「/」。注意哦!

網路直播電視之M3U8解析篇 (下)

標籤 c c directshow directshow directshow 2012 12 26 13 04 43004人閱讀收藏 舉報 html view plain copy extm3u ext x targetduration 8 ext x media sequence 92595 e...

網路直播電視之M3U8解析篇 (下)

extm3u ext x targetduration 8 ext x media sequence 92595 extinf 8,20121120t182851 04 92595.ts extinf 8,20121120t182851 04 92596.ts extinf 8,20121120t1...

網路直播電視之M3U8解析篇 (下)

extm3u ext x targetduration 8 ext x media sequence 92595 extinf 8,20121120t182851 04 92595.ts extinf 8,20121120t182851 04 92596.ts extinf 8,20121120t1...