如何在JW Player 6中同时使用HD和CC的组合?
答案 0 :(得分:0)
基本上,您需要结合使用以下两个示例:
http://www.longtailvideo.com/support/jw-player/29248/sd-and-hd-qualities
http://www.longtailvideo.com/support/jw-player/29360/basic-vtt-captions
希望有所帮助!
答案 1 :(得分:0)
以下是一些实际工作的代码。我所做的就是结合我上面提供的两个例子,所以是的,如果你真的尝试的话,它是有效的。
<html>
<head>
<title>Test Page</title>
</head>
<body>
<script type="text/javascript" src="http://www.longtailvideo.com/jwplayer/jwplayer.js"></script>
<p><div id="container"></div></p>
<script>
jwplayer("container").setup({
playlist: [{
image: "http://content.bitsontherun.com/thumbs/i8oQD9zd-640.jpg",
sources: [{
file: "http://content.bitsontherun.com/videos/i8oQD9zd-DZ7jSYgM.mp4",
width: 1280,
height: 720
},{
file: "http://content.bitsontherun.com/videos/i8oQD9zd-kNspJqnJ.mp4",
width: 640,
height: 360
}],
captions: [{
file: 'http://www.longtailvideo.com/sites/default/files/jw6-captions.vtt',
label: 'English'
}]
}]
});
</script>
</body>
</html>