Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Embed Multibitrate Stream


Hi,

I have live stream (actually over 2 protocols)

RTMP
rtmp://xxxxx.com/live_480
rtmp://xxxxx.com/live_720

HLS
http://xxxxx.com/live_480/playlist.m3u8
http://xxxxx.com/live_720/playlist.m3u8

How can I embed (I would like to know the way for both RTMP and HLS, but separately - RTMP or HLS)
these 2 streams to JWP to have option to select bitrate?


Thank you!

1 Community Answers

Cooper Reid

JW Player Support Agent  
0 rated :

Hi,

Basic embedding is always done like this:

(hls)
jwplayer(“player”).setup({
file: ‘http://domain.com/stream.m3u8’,
title: ‘Bunny’,
image: ‘bunny.jpg’,
width:‘100%’
});

You can use the exact same setup for RTMP. To provide multiple sources, you can use a sources parameter like so:
jwplayer(“player”).setup({
sources: [
{file: ‘hls.m3u8’},
{file: ‘rtmp://stream:mp4’}
],
title: ‘Bunny’,
image: ‘bunny.jpg’,
width:‘100%’
});

To enable quality switching, you’ll have to use a SMIL file for RTMP.
http://support.jwplayer.com/customer/portal/articles/1430398-dynamic-rtmp-streaming

To enable automatic quality switching with HLS, you’ll have to build a manifest with multiple bitrates.

Best Regards,
Cooper

This question has received the maximum number of answers.