开发者

what happens when i send a different m3u8 to ipad than what it expected?

开发者 https://www.devze.com 2023-02-14 05:48 出处:网络
I am prototyping this idea. i have a client/server model wherein whenever a client requests a m3u8 file, say 01.m3u8.

I am prototyping this idea. i have a client/server model wherein whenever a client requests a m3u8 file, say 01.m3u8.

Based on some conditions I send it 01.m3u8 or some other m3u8 file, say other.m3u8. However, when I send other.m3u8 file, something goes wrong. Ipad t开发者_开发百科akes very long to play the contents of other.m3u8.

Can someone please explain what happens in the background in ipad-safari, when you send a different m3u8 from what the ipad expects ?

Thanks


After a lot of experimenting, the solution to this is using the #EXT-X-DISCONTINUITY tag. Lookup the spec for m3u8 for a better explanation of the tag.

Hope it helps someone.

0

精彩评论

暂无评论...
验证码 换一张
取 消