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

rtmp and toggle quality


Hi
When i use simple code:
jwplayer("player94ac7b43396c").setup({
playlist: [{
image: "file.jpg",
sources: [
{
file: "file1.m4",
label: "HQ"
}, {
file: "file2.m4",
label: "LQ"
}]
}] });

it works ok. But when I change file1.mp4 to rtmp://54.76.22.203:1935/ and file2.mp4 to rtmp://54.76.22.203:1935/live/low player still work but I can't change quality. It happend with all rtmp streams. Why?
Thanks!
Regards, Piter

3 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

This has to be done with a SMIL manifest – http://support.jwplayer.com/customer/portal/articles/1430398-adaptive-rtmp-streaming

sebastian.gorajek

User  
0 rated :

Hi
It works, thanks!
But it works only when "base" is same for 2 sources [low/high quality]:

<smil>
<head>
<meta base="rtmp://44.34.54.192:1935/live/"/>
</head>
<body>
<switch>
<video src="mystream1" system-bitrate="1600000" />
<video src="mystream2" system-bitrate="1200000" />
</switch>
</body>
</smil>

What should I do when I've got 2 different sources, like:
low quality:
rtmp://1.2.3.4:1234/live-lq/
high quality:
rtmp://5.6.7.8:5678/live-hq/

I didn't find the answer..
Thanks!
Regards, Piter

sebastian.gorajek

User  
0 rated :

Sir!
Did you see my question? Thanks!
Regards

This question has received the maximum number of answers.