Search code examples
iosswiftwebrtclive-streaming

Video Streaming and Broadcasting using WebRTC


I am very new to Real Time Protocols and I had some questions about how WebRTC works and how I can implement it. I am trying to create a one to many livestream like facebook or periscope, where one user broadcasts and other users join and stream the video. I am using Swift from my client end.

My questions are:

  1. How do I broadcast a video using WebRTC
  2. Is there an SDK for WebRTC in Swift/iOS

I know the questions are very vague but a guidance to the right direction would be great because I am not sure where to start


Solution

  • You will need to use backend servers for that.

    If you plan on broadcasting to multiple users directly from your mobile app then stop...

    You need to connect your mobile app to a backend media server which then can be used to broadcast the video to a larger audience.

    There are several commercial and open source alternatives that enable you to do that. I'd check Red5Pro, Wowza, SwitchRTC, Jitsi, Janus and Kurento for this task.

    For the client side, look at react-native-webrtc

    You can find more tools for WebRTC developers here.