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

set video quality/label from youtube


How to set video quality/label from youtube videos? i use skin seven
Screenshoot => http://prntscr.com/altclq

1 Community Answers

Todd

JW Player Support Agent  
0 rated :

I am not sure if YouTube is using HLS or not for their streaming as I cannot see a manifest being requested in the browser, so the usual hlslabels: {} block method of altering our players HD list will not work. Here is a short code example demonstrating how to manipulate the HD menu directly via Javascript:

<script>
var playerInstance = jwplayer("player");
playerInstance.setup({
	file: "https://www.youtube.com/watch?v=OPf0YbXqDm0",
	primary: 'flash',
	height: '360',
	width: '640',
});

playerInstance.once('play',function(){
	document.getElementsByClassName('jw-menu')[0].childNodes[1].innerHTML = 'YouTube Autoselect';
	document.getElementsByClassName('jw-menu')[0].childNodes[3].innerHTML = 'This used to say Tiny';
	document.getElementsByClassName('jw-menu')[0].childNodes[13].innerHTML = '1080p HD - Best';
})
</script>

Hope this helps,
Todd

This question has received the maximum number of answers.