Why is PHP interfering with my HTML5 MP4 video?

后端 未结 3 1975
梦谈多话
梦谈多话 2021-01-03 08:22

I\'m writing a web app that serves H.264 encoded MP4 video. In Chrome and Safari, it does this via an HTML5 video tag.

In order to control access to these videos, th

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-03 08:32

    When streaming files to HTML5 Embedded video player you still have to add headers that inform the player with information about the video.

    you can't just expect to run a read readfile() command and things will magically work, sorry bud, but programming is not that easy. (Wish it was).

    heres a small application you can use to stream properly or just learn from.

    http://stream.xmoov.com/download/xmoov-php/

提交回复
热议问题