How to Live stream with HTML5, without Flash?

后端 未结 4 1132
半阙折子戏
半阙折子戏 2021-02-13 20:56

The Problem: I need my clients to be able to stream their webcam to my streaming server(for instance Wowza server). I am building my site in PHP. I have gone th

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-13 21:34

    Unless I misunderstand, I think you're looking to stream video to your server (for distributing using "normal" live-streaming mechanisms), not using WebRTC to stream video from the server.

    If so, WebRTC will work, though you'll need a server-side implementation of a fairly full set of the WebRTC protocol including video decoding. These exist, but not in PHP directly of course. This would handle getting realtime audio and video from a client, without needing a plugin on the client, including bandwidth adaptation and error correction.

    Once the data is decoded on the server, you have a video+audio datastream you can feed to your live-streaming encoders to stream out.

提交回复
热议问题