Deliver WebRTC streams to viewers for HLS playback using Wowza Streaming Cloud

Learn how to use the Wowza Streaming Cloud™ service to deliver WebRTC streams to viewers through a CDN for playback over HLS.

Live stream workflow

Contents


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

About HLS playback


With Wowza Streaming Cloud, you can ingest a single-bitrate WebRTC source stream, transcode the stream into multiple output renditions, and then deliver the stream to viewers through a CDN for playback over HLS. WebRTC lets you capture video from your browser without installing plug-ins or downloading third-party software.

Note: As an alternative, Wowza Streaming Cloud also 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. For more information, see WebRTC workflows in Wowza Streaming Cloud.

To deliver a WebRTC stream to viewers for playback over HLS, create an adaptive bitrate live stream, give the hosted player page URL to your viewers, and then publish the stream using the WebRTC hosted publish page.

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. Specify the playback settings, and then click Next.
  5. Customize the hosted page that your viewers can use to watch the live stream, and then click Next. For more information, see Create and manage live streams in Wowza Streaming Cloud
  6. 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 details 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 details 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, Safari, and Microsoft Edge version 79 and later.

    The 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.
    • Live Streaming URL – The address of the hosted player page, if you created one.
  3. Click Publish.

Play the live stream


You can give the Hosted 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 hosted player, do the following:

  1. On the Overview tab, under Hosted Page URL, click the hosted page link.

  2. Click the Play button.

Stop the live 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 HLS playback
Create a transcoder
Test the connection
More resources

About HLS playback


With Wowza Streaming Cloud, you can ingest a single-bitrate WebRTC source stream, transcode the stream into multiple output renditions, and then deliver the stream to viewers through a CDN for playback over HLS. WebRTC lets you capture video from your browser without installing plug-ins or downloading third-party software.

Note: As an alternative, Wowza Streaming Cloud also 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. For more information, see WebRTC workflows in Wowza Streaming Cloud.

To deliver a WebRTC stream to viewers for playback over HLS, create an adaptive bitrate transcoder, use the stream target's HLS Playback URL to configure the stream for playback in an HLS-compatible player, and then publish the stream using the WebRTC hosted publish page.

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, select Adaptive bitrate. Alternatively, select Passthrough to send the source video directly to a target without performing transcoding.
     
    Note: To include audio in recordings and VOD streams, the Transcoder Type must be set to Adaptive bitrate.
  3. Select a Broadcast Location that's as close as possible 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. Specify the other transcoder settings.
     
    Note: For more information about transcoder settings, see the Help panel on the right side of the page.
  7. Click Add.

    Wowza Streaming Cloud creates the transcoder and displays the Outputs & Targets tab of the transcoder details page. An output for WebRTC playback is created automatically, but you'll create additional output renditions in the next step to use for HLS playback.
  8. Complete the transcoder by adding output renditions and stream targets. Make note of the HLS Playback URL on the stream target's details page for testing playback in the next step.
    For more information, see Create a custom transcoder with many outputs and targets in Wowza Streaming Cloud.

Test the connection


  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, Safari, and Microsoft Edge version 79 and later.

    The 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.
  4. In Wowza Streaming Cloud, confirm that the stream is working by looking at the Video Thumbnail on the Overview tab of the transcoder details page.

    The Video Thumbnail displays a frame from the stream every five seconds. The started date and time appear at the bottom of the thumbnail. Connection, transcoding, and delivery metrics begin to update in the Statistics panel.

    Alternatively, you can use the HLS Playback URL to configure the stream for playback in an HLS-compatible player. The URL is located on the stream target's details page.

  5. Click Stop Transcoder at the top of the transcoder details page to end your test stream.
    Note: Billing charges are incurred while the transcoder is running.

More resources