Skip to main content
Version: 2.13

WebRTC Publishing

Ant Media Server can ingest your streams with WebRTC to make sure that you deliver a real-time streaming experience with minimal latency.

info

For WebRTC publishing, please ensure that UDP ports 50000-60000 are open on your firewall or security groups.

For more information on changing the port range, see here.

WebRTC Publish Sample Page

Go to this URL for WebRTC publishing: https://your domain name:5443/live

If you have Ant Media Server installed on your local machine, you can also go to http://localhost:5080/live to publish the WebRTC stream.

Stream Publishing

  • The random streamId is generated by default every time a page is opened, but you can enter your own.

  • Then click the Start Publishing button. After pressing the button, the text Publishing should blink.

    Congratulations! You're now using WebRTC to publish to Ant Media Server from your browser!

  • By clicking on Options on the sample page, you can also change the Max Video Bitrate and Audio/Video Source.

  • Learn more about playing this stream with WebRTC to complete the loop and stream with ~0.5-second latency. Check out here.