search

Home  >  Q&A  >  body text

iphone - java后台输出MP4视频文件,但在IOS中无法用html5播放,其他的设备上都没有问题

后台总是包括,提示终端连接

怪我咯怪我咯2808 days ago1221

reply all(3)I'll reply

  • 黄舟

    黄舟2017-04-17 14:21:54

    Tomcat must implement breakpoint resumption

    reply
    0
  • PHPz

    PHPz2017-04-17 14:21:54

    This needs to be looked at in detail. Generally speaking, the encoding of MP4 should be MPEG or H.264 encoding. Specifically, it depends on whether the IOS system supports it. Although HTML5 adds many features to browsers, the degree of support for it varies on different devices. Need to look at it in detail.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 14:21:54

    Just add two headers

    context.Response.Headers.Add("Accept-Ranges", "bytes");
    context.Response.Headers.Add("ETag", HashUtil.QuickComputeHash(target));

    Reference: http://onoffswitch.net/streaming-video-ios-device-custom-httphandler-asp-net/

    reply
    0
  • Cancelreply