Manage user authentication for Apple HLS streams in Wowza Streaming Cloud

When you broadcast an Apple HLS stream using the  Wowza  Streaming Cloud™ service, you have control over  whether the source encoder must use user authentication to publish an RTMP or RSTP stream. User authentication provides a secure connection from the source encoder into the ingest origin server for Wowza Streaming Cloud and prevents third parties from connecting to and altering your source stream.

This article shows you how to use the Wowza Streaming Cloud web manager to create a live stream with user authentication for RTMP or RTSP streams that are delivered to Wowza Streaming Cloud with a push connection or a pull connection. It also provides information on configuring a source encoder so that it can be authenticated for connection and suggests ways to secure Apple HLS streams during playback.

Create a live stream with user authentication


Follow these steps to create a live stream in the Wowza Streaming Cloud web manager with user authentication. For more information about specific configuration options, see Create and manage live streams in Wowza Streaming Cloud.

  1. Click Live Streams on the menu bar, and then click Add Live Stream.

  1. On the Live Stream Setup page, provide basic information about your stream and then click Next.
  2. On the Video Source and Transcoder Settings page, provide information about the source encoder or camera that you're using and how it will connect to Wowza Streaming Cloud. Refer to Push stream or Pull stream for next steps depending on your setup.

    Push stream

    A push stream indicates that your video source will push the stream to Wowza Streaming Cloud.

    1. Select one of these camera or encoder options that have source security enabled by default:
      • Wowza GoCoder
      • XSplit
      • Other RTMP (Push Stream)
      • Other RTSP (Push Stream)
      With source security enabled, Wowza Streaming Cloud secures the connection from the source encoder or camera by requiring a source username and password for authentication. Wowza Streaming Cloud generates source username and source password values for you when you create the live stream.
       
      Note: Select Disable authentication if you don't want to use authentication with your video source connection to a push stream.

    Pull stream

    A pull stream indicates Wowza Streaming Cloud pulls your stream from the encoder or IP camera.

    1. Select one of these camera or encoder options to configure user authentication for a RTMP or RTSP pull stream:
      • Axis
      • Sony
      • IP Camera
      • Other RTMP (Pull Stream)
      • Other RTSP (Pull Stream)
    2. Under What is the source URL of your camera or encoder?, enter a source URL value that includes authentication information for the source encoder or IP camera, such as username and password.

      Refer to documentation for your encoder or camera for information on the syntax of the source URL and available methods of source authentication. Authentication information included in the source URL can only contain alphanumeric, period (.), underscore (_), and hyphen (-) characters. The source URL for your camera or encoder must include a publicly accessible hostname or IP address.
       
      Note: If you don't want to use authentication with your video source connection to a pull stream, enter a source URL without authentication information and disable authentication on your source encoder or camera.
  3. When you have completed selecting and entering configuration information on the Video Source and Transcoder Settings page, click Next.
  4. On the Playback Settings page, configure the player that you want to use and then click Next.
  5. On the Hosted Page Settings page, configure the hosted webpage for your live stream, if you want one, and then click Next.
  6. Review your choices. If necessary, click Back or click the Live Stream Setup, Video Source and Transcoder Settings, Playback Settings, or Hosted Page Settings icon to edit your selections.
  7. Click Finish.

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

  1. (Optional for a push stream) To enter your own values for source username and source password instead of using the values generated by Wowza Streaming Cloud, do the following:
    1. Click Edit on the Video Source and Transcoder tab of the live stream detail page.
    2. Under Source Security, click Change source username and password, and enter new values. Source Username and Source Password values are case-sensitive and can only contain alphanumeric, period (.), underscore (_), and hyphen (-) characters.

Configure a source


  1. Make sure you have the latest firmware for your encoder installed or have upgraded to the latest software updates. See the encoder's user guide for details about how to update firmware as well as how to operate the encoder and how to specify settings such as resolution, bitrate, and frame rate.
  2. Do one of the following, depending on your stream type:

    Push stream

    • See the Source Connection Information on the Overview tab of the live stream detail page for server, port, and other details your encoder may need to connect to Wowza Streaming Cloud.
    • Use the Source Username and Source Password in the Source Connection Information to authenticate your encoder.

    Pull stream

    • For an RTMP or RTSP pull connection, such as an IP camera, you configure the source by determining and providing the source URL value when creating the live stream.

Test the connection


Start the live stream

  1. Select the stream on the Live Streams page.
  2. Do 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.
  • Confirm that you want to start the stream.
Important:
  • After starting the live stream, make sure to start your video source as well.
  • It may take about a minute for the stream to connect and the preview to start.
  • Charges begin to accrue as soon as you start your stream in Wowza Streaming Cloud, even if you haven't started your video source yet.

Stop the live stream

  1. Select the stream on the Live Streams page.
  2. Click Stop Live Stream at the top of the live stream detail page.

Configure secure playback


To increase security on the playback side, see these articles: