Deliver WebRTC streams to viewers using Wowza Streaming Cloud

Learn how to use the Wowza Streaming Cloud™ service to deliver WebRTC streams to viewers.

Live stream workflow

Contents

About WebRTC playback
Video tutorial: Deliver WebRTC streams to viewers
Create a live stream
Publish the WebRTC stream
Play the WebRTC stream
Stop the WebRTC stream
More resources

About WebRTC playback


Wowza Streaming Cloud provides direct playback URLs for RTMP, RTSP, WebRTC, and WOWZ that you can use to deliver live streams to viewers or other video services directly from the transcoder. Egress costs for direct playback are typically greater than the costs associated with delivering streams to viewers through a CDN. For more information about cost, audience size, and other workflow considerations, see WebRTC workflows in Wowza Streaming Cloud.

WebRTC lets you capture video from your browser without installing plug-ins or downloading third-party software. To deliver a WebRTC stream to viewers for direct playback, create a live stream, publish the stream using the WebRTC hosted publish page, and then provide the WebRTC hosted playback page URL to your viewers.

Video tutorial: Deliver WebRTC streams to viewers


Create a live stream


  1. Sign in to Wowza Streaming Cloud.
  2. Click the Live Streams menu, and then click Add Live Stream.

  1. On the Live Stream Setup page, enter a Live Stream Name, choose a Broadcast Location, and then click Next.
  2. On the Video Source and Transcoder Settings page, select Web Browser (WebRTC) as the video source you want to use to connect to Wowza Streaming Cloud.

  1. For Live Stream Type, use the default setting, Adaptive bitrate. Passthrough isn't available for WebRTC in the live stream workflow.
  2. For Closed Captions, use the default setting, None. Closed Captions aren't available for WebRTC.
  3. Specify the other video source settings, and then click Next.
    Note: For WebRTC, we recommend keeping the default Aspect Ratio of 1280x720.
  4. Complete the steps to finish creating the live stream.
Note:
  • For more information about live stream settings, see the Help panel on the right side of each page.

Wowza Streaming Cloud creates the live stream and displays the Overview tab of the live stream detail page.

(Optional) Decrease latency

The default buffer size for a live stream is 4 seconds. To decrease the latency of the stream and get closer to real-time, you can change the buffer to 0.

  1. Click Advanced on the menu bar, and select Transcoders.
  2. Select the transcoder for the live stream, which appears as [Live stream name] / Transcoder.
  3. On the Transcoder Setup tab, click Edit.
  4. Change Buffer Size to 0 seconds, click Save, and then return to the Overview tab of the live stream detail page.

Publish the WebRTC stream


Next, start the live stream in Wowza Streaming Cloud, and then use the WebRTC hosted publish page to begin broadcasting to your viewers.

  1. In Wowza Streaming Cloud, start the live stream by doing one of the following:
     
    • Click Start Live Stream at the top of the live stream detail page.
    • Click Start your live stream now in the Video Thumbnail on the Overview tab.
  2. On the Overview tab, under WebRTC Publish Page, click the publish page link.
     
    Note: The WebRTC hosted publish page is supported on the latest versions of Chrome and Safari, as well as Edge version 79 and later.

    The WebRTC publish page opens in a new tab. Grant access to your camera and microphone when prompted.

    • Settings – Wowza Streaming Cloud automatically configures the settings for the live stream. To view or edit the settings, click the Settings button.
    • Microphone – Mute/unmute your microphone. To change which microphone to use, click the arrow next to the microphone icon.
    • Video camera – Enable/disable the video source. To change the video source, click the arrow next to the video camera icon. To share your screen, select Screen Share.
       
      Notes:
      • The video source can’t be changed after the broadcast is started.
      • Screen share functionality isn't supported on mobile devices or Safari.
  3. Click Publish.

Play the WebRTC stream


You can give the WebRTC playback page URL to your viewers so they can watch the live stream. This page can also be used for testing purposes. To test the connection using the WebRTC hosted playback page, do the following:

  1. On the Overview tab, under WebRTC Playback Page, click the playback page link.
     
    Note: The WebRTC hosted playback page is supported on the latest versions of Chrome and Safari, as well as Edge version 79 and later.


     

    The playback page opens in a new tab. Wowza Streaming Cloud automatically configures the settings for the live stream. To view or edit the settings, click the Settings button.

  2. Click Play.

Stop the WebRTC stream


To avoid incurring additional billing charges, remember to stop the live stream after the stream broadcast is over. In Wowza Streaming Cloud, click Stop Live Stream at the top of the live stream details page.

More resources


Transcoder workflow

Contents


About WebRTC playback
Create a transcoder
Publish the WebRTC stream
Play the WebRTC stream
Stop the WebRTC stream
More resources

About WebRTC playback


Wowza Streaming Cloud provides direct playback URLs for RTMP, RTSP, WebRTC, and WOWZ that you can use to deliver live streams to viewers or other video services directly from the transcoder. Egress costs for direct playback are typically greater than the costs associated with delivering streams to viewers through a CDN. For more information about cost, audience size, and other workflow considerations, see WebRTC workflows in Wowza Streaming Cloud.

WebRTC lets you capture video from your browser without installing plug-ins or downloading third-party software. To deliver a WebRTC stream to viewers for direct playback, create a transcoder, publish the stream using the WebRTC hosted publish page, and then provide the WebRTC hosted playback page URL to your viewers.

Create a transcoder


  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. For Transcoder Type, use the default setting, Adaptive bitrate.

    Although we recommend that you use an adaptive bitrate transcoder when performing direct playback of a WebRTC stream for maximum viewer connections and a larger feature set, the transcoder workflow allows you to select Passthrough. The transcoder type affects how many viewers can connect to your stream directly through the transcoder:
    • Adaptive bitrate results in a larger transcoder that can handle more viewer connections.
    • Passthrough results in a smaller transcoder which can result in lower overall costs, but also means fewer viewer connections and other limitations. If you choose passthrough, make sure you do sufficient testing to ensure your streaming goals are met.
  3. For Broadcast Location, select the region that's closest to where your stream will originate.
  4. For Closed Captions, use the default setting, None. Closed Captions aren't available for WebRTC.
  5. For Source Protocol, select WebRTC.
  6. (Optional) The default buffer size for a live stream is 4 seconds. To decrease the latency of the stream and get closer to real-time, change Buffer Size to 0.
  7. Configure the remaining transcoder settings, and then click Add.
     
    Note: For more information about transcoder settings, see the Help panel on the right side of the page.

    Wowza Streaming Cloud creates the transcoder and displays the Outputs & Targets tab of the transcoder details page.

Publish the WebRTC stream


Next, start the transcoder in Wowza Streaming Cloud, and then use the WebRTC hosted publish page to begin broadcasting to your viewers.

  1. In Wowza Streaming Cloud, start the transcoder by doing one of the following:
     
    • Click Start Transcoder at the top of the transcoder details page.
    • Click Start your transcoder now in the Video Thumbnail on the Overview tab.
  2. On the Overview tab, under WebRTC, click the Publish Page link.
     
    Note: The WebRTC hosted publish page is supported on the latest versions of Chrome and Safari, as well as Edge version 79 and later.

    The WebRTC publish page opens in a new tab. Grant access to your camera and microphone when prompted.

    • Settings – Wowza Streaming Cloud automatically configures the settings for the live stream. To view or edit the settings, click the Settings button.
    • Microphone – Mute/unmute your microphone. To change which microphone to use, click the arrow next to the microphone icon.
    • Video camera – Enable/disable the video source. To change the video source, click the arrow next to the video camera icon. To share your screen, select Screen Share.
       
      Note:
      • The video source can’t be changed after the broadcast is started.
      • Screen share functionality isn't supported on mobile devices or Safari.
  3. Click Publish.

Play the WebRTC stream


You can give the WebRTC playback page URL to your viewers so they can watch the live stream. This page can also be used for testing purposes. To test the connection using the WebRTC hosted playback page, do the following:

  1. On the Overview tab, under WebRTC, click the Playback Page link.
     
    Note: The WebRTC hosted playback page is supported on the latest versions of Chrome and Safari, as well as Edge version 79 and later.

    The playback page opens in a new tab. Wowza Streaming Cloud automatically configures the settings for the live stream. To view or edit the settings, click the Settings button.

  2. Click Play.

Stop the WebRTC stream


To avoid incurring additional billing charges, remember to stop the transcoder after the stream broadcast is over. In Wowza Streaming Cloud, click Stop Transcoder at the top of the transcoder details page.

More resources