JWPlayer 我在哪里放置高清质量切换嵌入代码
JWPlayer Where do I put the HD Quality Toggling embed code
我知道有一个 tutorial for how to add a video quality selector to your JWPlayer 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) 但我想添加质量选择器,我尝试将代码放在 iframe 之后(在 iframe 结束标记“</iframe>
”之后)像这样:
<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>
但这似乎没有任何作用,所以我想那不是应该去的地方。在此先感谢您的帮助。
此致。
您必须在打开视频的 html 中添加此代码,即
//content.jwplatform.com/players/RUWONgkw-Ck5HCg68.html
我知道有一个 tutorial for how to add a video quality selector to your JWPlayer 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) 但我想添加质量选择器,我尝试将代码放在 iframe 之后(在 iframe 结束标记“</iframe>
”之后)像这样:
<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>
但这似乎没有任何作用,所以我想那不是应该去的地方。在此先感谢您的帮助。
此致。
您必须在打开视频的 html 中添加此代码,即
//content.jwplatform.com/players/RUWONgkw-Ck5HCg68.html