Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Example of republishing a WebRTC audio / video stream as RTMP

This example shows how you can send audio and video from the browser to the server with the WebRTC technology and redirect
the received traffic to the same or another server via RTMP.

...

To play the redirected stream, simply click the Play button in the built-in RTMP player.

Code of the example

The source code of this example can be found on the WCS server at:

...

Here, host is the address of the WCS server.

Working with the WebRTC-RTMP republishing code

To examine the code, let’s take the version of thewebrtc-as-rtmp-republishing.jsfile with the hash of 48448b99eddb0da1248519290dba2d4d00d4a505, located here and available for download in the corresponding build 0.5.14.1977.

...