Single PHP “exit;” statement prevents HTML5 video in Safari

前端 未结 3 1178
独厮守ぢ
独厮守ぢ 2021-01-19 09:16

Bizarre bug: in a PHP script that serves video files, I have a few test conditions (authenticate token, make sure file exists, etc.) before sending a \"video/mp4\" header an

3条回答
  •  孤独总比滥情好
    2021-01-19 09:48

    The only reason for it to render a blank page would be that it does in fact enter the exit; statement. You mentioned an authentication token, could that be missing when testing in safari? Firebug and Safari's developer tools can also help you with debugging (check the response headers, etc).

提交回复
热议问题