Using HLS Streaming

To access these features, Upgrade Now

Embedding a Stream

Embedding an HLS stream using JW Player is a matter of providing the location to the stream's M3U8 manifest file. This is essentially the same as using an MP4 as mentioned on our embedding topic, however we'll instead be pointing to an M3U8:

var playerInstance = jwplayer("myElement");
    file: "/assets/myVideoStream.m3u8",
    image: "/assets/myPoster.jpg"

You all know what time it is! It is... stream time.

Customizing Quality Labels

Sometimes it is necessary to adjust the quality labels inside the HD menu. You can do this with hlslabels configuration option.

By default, the JW Player will set video quality levels using information from the manifest files. Use this configuration option to apply a custom quality label to a desired bandwidth in kbps. For example:

Using HLS on Android

HLS playback quality and performance varies widely across Android versions and devices. For this reason, by default JW Player disables HLS playback on Android devices. For Android devices running 4.1 and higher, you can enable HLS streams to be played with the androidhls configuration option.

Did you find this article helpful?

Please log in to rate this article.