Live HLS

In this topic, you will learn how to play a live HLS video stream through the Brightcove Player.

Source assignment

Implementation follows normal procedures. You create a player and specify the live HLS URL as a source, as the following sample shows. Note: the source has a .m3u8, and the type is application/x-mpegURL.

curl \
  --header "Content-Type: application/json" \
  --user $EMAIL \
  --request POST \
  --data '{
      "name": "MySamplePlayer",
      "configuration": {
        "media": {
          "sources": [{
            "src":"http://bcoveliveios-i.akamaihd.net/hls/live/215102/master_english/398/master.m3u8?playerId=1111&lineupId=&affiliateId=&pubId=3333&videoId=2222",
            "type":"application/x-mpegURL"
          }]
        }
      }
    }' \
    https://players.api.brightcove.com/v2/accounts/$ACCOUNT_ID/players

Live UI

The Live UI hides the progress bar and current time, but does show a LIVE badge in the control bar.

hls live playing

Known issues

The following are known issues with live HLS and the new player:

  • iOS uses its native player to stream live HLS.
  • On iOS, when you hit play on the live stream it goes into fullscreen. The new player cannot control that.
  • Currently the new player does not detect if an HLS stream is live or not, hence the Live UI will not be applied on Android.