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

后端 未结 3 929
情书的邮戳
情书的邮戳 2020-12-16 07:17

I have done all that from This I have also made .ts and m3u8 file. In local server and live server i can play mp4 file like

 
相关标签:
3条回答
  • 2020-12-16 07:31

    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
    0 讨论(0)
  • 2020-12-16 07:39

    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.

    0 讨论(0)
  • 2020-12-16 07:48

    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

    0 讨论(0)
提交回复
热议问题