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?
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.