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

Select Stream resolution from menu like HD


I have two streaming links with JW 7

http://172.53.10.5/live/1/playlist.m3u8
http://172.53.10.5/live/1_sd/playlist.m3u8

I want user to choose one of them from menu like HD toggle
my setup like this

jwplayer('player').setup({
sources: [{
file: "http://172.53.10.5/live/1/playlist.m3u8"
},{
file: "http://172.53.10.5/live/1_sd/playlist.m3u8"
}],

title: 'Sample Video',
width: '100%',
androidhls: true,
hlshtml :true,
aspectratio: '16:9',
skin: 'glow',
fallback: 'false',
autostart: 'true',
primary: 'flash'
});

but no button shown and bar
but when using MP4 files its working fine.

1 Community Answers

George

JW Player Support Agent  
0 rated :

That is because HLS is designed to have all alternative renditions declared in a master manifest.
ex.
http://content.jwplatform.com/manifests/Y5UQq0fG.m3u8

Contains:
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=490000,RESOLUTION=480×270,CODECS=“mp4a.40.2,avc1.77.30”,CLOSED-CAPTIONS=NONE
http://videos-f.jwpsrv.com/content/conversions/WuLZ6wZE/videos/Y5UQq0fG-21914600.mp4.m3u8?token=0_59c0295c_0x7415e511690efaaa2000e5ed7a423c7054357cc9
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1370000,RESOLUTION=1280×720,CODECS=“mp4a.40.2,avc1.77.30”,CLOSED-CAPTIONS=NONE
http://videos-f.jwpsrv.com/content/conversions/WuLZ6wZE/videos/Y5UQq0fG-21914602.mp4.m3u8?token=0_59c0295c_0x8afe336a02ead73f0f9e295aabc82f6f50db16ee
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=630000,RESOLUTION=720×406,CODECS=“mp4a.40.2,avc1.77.30”,CLOSED-CAPTIONS=NONE
http://videos-f.jwpsrv.com/content/conversions/WuLZ6wZE/videos/Y5UQq0fG-21914601.mp4.m3u8?token=0_59c0295c_0x5a7cc23b13b337e164f12e05af887afa57126786
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=340000,RESOLUTION=320×180,CODECS=“mp4a.40.2,avc1.77.30”,CLOSED-CAPTIONS=NONE
http://videos-f.jwpsrv.com/content/conversions/WuLZ6wZE/videos/Y5UQq0fG-21914599.mp4.m3u8?token=0_59c0295c_0x6250d066e0e8b1629703ff02434bcb02c2f3fad9
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=120000,CODECS=“mp4a.40.2”
http://videos-f.jwpsrv.com/content/conversions/WuLZ6wZE/videos/Y5UQq0fG-21914604.m4a.m3u8?token=0_59c0295c_0xb3350d59201c3b38280a212f066ac45667ab692c

This question has received the maximum number of answers.