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

HD toggle with RTMP streaming


Hi,
I'm using a .smil file for the source. Here's the content:
<smil>
<head>
<meta base="rtmp://localhost/live/" />
</head>
<body>
<switch>
<video src="stream_540" height="540" system-bitrate="800000" width="960" />
<video src="stream_360" height="360" system-bitrate="400000" width="640" />
</switch>
</body>
</smil>
But the menu always displays, and adds a "Auto" level in the front. I just want to use the HD toggle. What have I done wrong?

5 Community Answers

jherrieven

User  
0 rated :

What version of JW player are you using?

Can you provide an example page link?

James

670292548

User  
0 rated :

I'm using JW6.

http://183.61.80.216/chat/index.html

I want to remove the "Auto" level in HD menu, and make it as a toggle button.

Todd

JW Player Support Agent  
0 rated :

If you want to remove the Auto and just have the HD button toggle, you can define two sources without a SMIL.

sources: [{
file: ‘rtmp://source_1.mp4’
},{
file: ‘rtmp://source_2.mp4’
}]

670292548

User  
0 rated :

Thank you for your replay, both of you.

The sources seems to work for http only. And the HD button will be hide while using rtmp. Here's the tests:

http://183.61.80.216/chat/src-http.html
http://183.61.80.216/chat/src-rtmp.html

I read somewhere that SMIL is needed. If I have to reedit RTMPMediaProvider.as, where I found the "Auto" comes from, could you give some advice?

Any help please?

670292548

User  
0 rated :

Forget it. I've handled this, by annotating the 600th line of RTMPMediaProvider.as:
//levels.push({label:'Auto'});

Thx

This question has received the maximum number of answers.