Http Live Streaming for iPhone and why we use .m3u8 file

蹲街弑〆低调 提交于 2019-11-29 02:29:39
BabyPanda

As long as your conf is

AddType application/x-mpegURL .m3u8
AddType video/MP2T .ts

it should work for apache. I'm not sure if it's your .ts or .m3u8 problem, so I suggest the following:

  • Download example .ts and .m3u8 file from Apple and test them on your server
  • check if there is empty lines in the index file, as this question

The video tag source type video/m3u8 is not valid on the iOS platform. I suggest you simply omit declaring the source attribute, which is not required.

If you really want to specify the source type, i.e. to allow non-compatible clients to select another source, I have found that audio/x-mpegurl works.

The m3u8 you're using was generated for seeking only. See EXT-X-I-FRAMES-ONLY as described here: https://developer.apple.com/library/ios/technotes/tn2288/_index.html#//apple_ref/doc/uid/DTS40012238-CH1-I_FRAME_PLAYLIST

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!