Is it possible to use WebRTC to streaming video from Server to Client?

前端 未结 6 1133
抹茶落季
抹茶落季 2020-12-12 12:07

In WebRTC, I always see the implementation about peer-to-peer and how to get video streaming from one client to another client. How about server-to-client?

Is it po

6条回答
  •  萌比男神i
    2020-12-12 12:41

    We are attempting to replace MJPEGs with Webrtc for our server software and have a prototype module for doing this using a smattering of components tied to the Openwebrtc project. It has been an absolute bear to do, and we have frequent ICE negotiation errors (even over a simple LAN), but it mostly works.

    We also built a prototype with the Google Webrtc module, but it had many dependencies. I find it easier to work with the Openwebrtc modules because Google's stuff is so tightly tied to general peer-to-peer scenarios on the browser.

    I compiled the following from scratch:

    libnice 0.1.14 gstreamer-sctp-1.0 usrsctp

    Then I have to interact with libnice a bit directly to gather candidates. Also have to write out the SDP files by hand. But the amount of control--being able to control the source of the pipeline--makes it worthwhile. The resulting pipeline (with two clients off one server source) is below:

提交回复
热议问题