Connect a WebRTC stream to Wowza Streaming Cloud

The Wowza Streaming Cloud™ service supports Web Real-Time Communication (WebRTC) streaming. This article describes how to use a WebRTC connection as the video source for a Wowza Streaming Cloud stream.

Note: WebRTC ingest is available for the transcoder workflow but not the ultra low latency workflow in Wowza Streaming Cloud.

Video tutorial: Connect a WebRTC stream to Wowza Streaming Cloud

Create a transcoder that uses a WebRTC stream as the video source

  1. Sign in to Wowza Streaming Cloud.
  2. Click Advanced on the menu bar, click Transcoders, and then click Add Transcoder.

  1. On the Transcoder Setup page, enter a descriptive Transcoder Name
  2. Subscription plans that support passthrough streaming require that you specify a Transcoder Type. For all other subscription plans, transcoders are adaptive bitrate.

    For Transcoder Type, choose Adaptive bitrate, and then choose a Billing Mode.
    • WebRTC only supports Adaptive bitrate transcoders.
    • The Transcoder Type and Billing Mode can't be changed after the transcoder is created.
  3. Select a Broadcast Location that's as close as possible to where your stream will originate, and select whether or not you want to record the stream as it passes through the transcoder.
  4. For Closed Captions, leave the default setting, None. WebRTC ingest streams don't support closed captions in Wowza Streaming Cloud.
  5. For Source Protocol, select WebRTC.
  6. For Source Delivery Method, select Push to Wowza Streaming Cloud to send the stream to the transcoder at its Broadcast Location.
    Note: Pull from a source URL and Push to an existing stream source aren’t available for WebRTC streams.
  7. Specify other transcoder setup options. For more information on the options, see the Help panel on the right side of the page.
    Note: Source Security isn't available for WebRTC streams.
  8. Click Add.

    Wowza Streaming Cloud creates the transcoder and displays the Outputs & Targets tab of the transcoder detail page.
  9. Complete the transcoder by adding output renditions and stream targets. For instructions, see one of the following articles, depending on whether you're creating an adaptive bitrate or passthrough transcoder:
    Note: WebRTC doesn’t support passthrough video or passthrough audio. Be sure to check that these options aren’t selected when adding output renditions to the transcoder.

Test the connection

The Wowza Streaming Cloud documentation includes a downloadable example that shows how to publish a WebRTC stream to Wowza Streaming Cloud.

  • The WebRTC example must be hosted on a webserver utilizing SSL encryption.
  • In order for the example to work properly, the transcoder Source Stream Extension must be set to .json.
  1. Download the WebRTC HTML example.
  2. Extract the contents of the archive to any location on your computer.
  3. In your file system, navigate to the extracted content and copy the contents of the html folder to your web server.
  4. Open index.html in a web browser.
    Note: Be sure to give index.html access to your camera and microphone when requested.
  5. Use the transcoder information on the Transcoder Setup tab to configure the stream settings:
    • Host Server – Replace [wowza_subdomain] with the Host Server address.
    • Application Name – Replace webrtc with the Application Name.
    • Stream Name – Replace myStream with the Stream Name.
  6. Start the transcoder in Wowza Streaming Cloud by doing one of the following:
    • Click Start Transcoder at the top of the transcoder detail page.
    • Click Start your transcoder now in the Video Thumbnail on the Overview tab.

    Wowza Streaming Cloud asks you to confirm that you want to start the transcoder and then starts it and connects with your source.

  7. On the index.html page, click Publish.
  8. Confirm that the stream is playing by looking at the Video Thumbnail in the Overview tab of the transcoder detail page.

    The Video Thumbnail displays a frame from the live stream every five seconds. If the transcoder has started but Wowza Streaming Cloud isn't receiving any source video, the message "No video detected" appears in place of the video frame.

More resources