Subscribing with HLS

Subscribing with HLS

The HLS subscriber and ABR control is capable through subscribing to the m3u8 stream with the top-level GUID stream name. Within the m3u8 manifest, the variants are defined and the HLS playback element has the capability to switch to variants based on network conditions.

As with the WebRTC and Flash subscribers for ABR, you will start off requesting an Edge endpoint from the Stream Manager using one of the variant stream names.

Given that the response to the GET request at:


is the following:

  "serverAddress": "",
  "scope": "live",
  "name": "mystream_2"

Your initialization configuration for an HLSSubscriber will look like the following (in following with the above examples):

(function (red5prosdk) {

  var subscriber = new red5prosdk.HLSSubscriber()
    host: '',
    app: 'live',
    streamName: 'mystream',
    protocol: 'html',
    port: 5080
  .then(function () {
  .catch(function (e) {


Internally, the Red5 Pro SDK will then request to subscribe to the HLS stream at: