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

Where do I put the HD Quality Toggling embed code


Hi, I understand that there is a tutorial for how to add a video quality selector to your video player and it gives you an embed code example for you to modify. I've modified it and added the information that is specific to my video but I don't know where I'm supposed to add this piece of code. I used the embed code for a video player in my website (iframe, mivprofit.com/video) but I want to add the quality selector and I tried putting the code right after the iframe (after the iframe closing tag, "</iframe>") like so:

<iframe src="//content.jwplatform.com/players/RUWONgkw-Ck5HCg68.html" width="640" height="360" frameborder="0" scrolling="auto" allowfullscreen>
</iframe>
<script>
var playerInstance = jwplayer("myElement");
playerInstance.setup({
image: "http://www.mivprofit.com/video/thumbnail.jpg",
sources: [{
file: "http://www.mivprofit.com/video/video.mp4",
label: "1080p"
},{
file: "http://www.mivprofit.com/video/video720.mp4",
label: "720p"
},{
file: "http://www.mivprofit.com/video/video480.mp4",
label: "480p"
},{
file: "http://www.mivprofit.com/video/video360.mp4",
label: "360p",
"default": "true"
}]
});
</script>

But that doesn't seem to do anything so I guess that's not where that's supposed to go. Thanks in advance for any help.

Best regards.

1 Community Answers

Randy

JW Player Support Agent  
0 rated :

Hello,

You might consider placing the above code within the jwplayer setup block. Also, the following webpage might be of use as well: https://support.jwplayer.com/customer/portal/articles/1428524-hd-quality-toggling

Randy

This question has received the maximum number of answers.