2013-03-11 79 views

回答

0
+0

如何在同一個視頻中使用兩者? – 2013-03-11 18:05:21

+0

不確定你在問什麼。 – emaxsaun 2013-03-11 19:01:28

+0

我會說,高清的第一個視頻以及字幕選項,不能同時使用對不對? – 2013-03-11 19:48:05

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> 
+0

是的,它的工作原理。但字幕顏色))) – 2013-03-11 20:14:07

+0

http://www.trlr.us/crash-bernstein-s1-e07-motorcycle-crash/ – 2013-03-11 20:15:18

+0

字幕顏色怎麼樣?你需要更具體。 – emaxsaun 2013-03-11 20:20:23