V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
feihuxiongdi
V2EX  ›  HLS

HLS 对于 Chrome for Android 的 MIME 类型是什么?

  •  
  •   feihuxiongdi · Dec 6, 2018 · 4469 views
    This topic created in 2699 days ago, the information mentioned may be changed or developed.

    我尝试使用 HLS 在移动端播放视频,m3u8 是动态生成的。

    设置的 Conent-Type 为: application/x-mpegurl

    1. 当我在 Mac 和 Apple 上使用 Safair 浏览器播放时,视频可以正常播放;

    2. 当我在 Android 上使用 QQ 浏览器播放时,视频可以正常播放;

    3. 当我在 Android 上使用 Chrome 浏览器播放时,视频不能正常播放,显示总时长为 0 秒;

    4. 当我把 m3u8 作为静态资源,使用 Chrome for Android 访问时,视频可以正常播放。

    当设置 MIME 为其他值,如:

    	video/mp4,
    	video/mpeg,
    	audio/x-mpegurl 
    

    都不能解决 Chrome for Android 的播放问题。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1330 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 23:48 · PVG 07:48 · LAX 16:48 · JFK 19:48
    ♥ Do have faith in what you're doing.