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

HD Quality Toggling labels causing player to not load


Here is the JWPlayer script that i am using including the label tags that will not load for me.


<div id="myElement"></div>

<script>
jwplayer("myElement").setup({
image: "/uploads/myPoster.jpg",
sources: [{
file: "http://wrestling-network.us/wp-assets/uploads/126609622_mp4_h264_aac_hd.mp4",
label: "720p"
},{
file: "http://wrestling-network.us/wp-assets/uploads/126609622_mp4_h264_aac_hq.mp4",
label: "480p"
},{
file: "http://wrestling-network.us/wp-assets/uploads/126609622_mp4_h264_aac_ld.mp4",
label: "240p"
}]
});
</script>

2 Community Answers

jherrieven

User  
1 rated :

"sources" option is a setting that applies to the "playlist" block. Try:

<script>
jwplayer("myElement").setup({
playlist:[{
image: "/uploads/myPoster.jpg",
sources: [{
file: "http://wrestling-network.us/wp-assets/uploads/126609622_mp4_h264_aac_hd.mp4",
label: "720p"
},{
file: "http://wrestling-network.us/wp-assets/uploads/126609622_mp4_h264_aac_hq.mp4",
label: "480p"
},{
file: "http://wrestling-network.us/wp-assets/uploads/126609622_mp4_h264_aac_ld.mp4",
label: "240p"
}]
}]
});
</script>

christopherferron

User  
0 rated :

Thanks man, worked like a charm.

This question has received the maximum number of answers.