MP4 plays when accessed directly, but not when read through PHP, on iOS

前端 未结 6 1808
花落未央
花落未央 2020-12-03 00:01

I use a PHP script to validate video requests before serving them. This script works as expected on the desktop, with Safari and Chrome. But on iOS, I get a broken play bu

6条回答
  •  臣服心动
    2020-12-03 00:21

    Please note that this is code (https://mobiforge.com/design-development/content-delivery-mobile-devices) is a lifesaver. However be on the lookout for the line

    "if ($range{0} == '-'){" or "if ($range0 == '-'){"

    it should be

    if ($range[0] == '-'){

    This typo resulted in a very long time figuring out why it did not work.

提交回复
热议问题