How to stream live video in HTML5?

前端 未结 3 656
暗喜
暗喜 2021-02-02 15:34

I\'m looking for a way to broadcast a live video taken from a webcam or camera rooted to a PC. The broadcast should be displayed in a HTML5 page using the tag (which support rt

3条回答
  •  半阙折子戏
    2021-02-02 15:50

    For maximum compatibility, here’s what our video workflow will look like, Make one version that uses H.264 baseline video and AAC “low complexity” audio in an MP4 container & Make another version that uses WebM (VP8 + Vorbis) or Theora video and Vorbis audio in an Ogg container. I think this combination solves your problem & it plays on most of browsers. You should required at least two versions of Video to play in all the browsers.

提交回复
热议问题