-
Notifications
You must be signed in to change notification settings - Fork 1
/
external_subtitle.html
42 lines (29 loc) · 968 Bytes
/
external_subtitle.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html>
<head>
<link rel="icon" href="http://www.webchimera.org/favicon.ico">
<meta charset="UTF-8">
<link href="css/styles.css" rel="stylesheet" type="text/css">
<title>External Subtitle Demo - WebChimera Player</title>
</head>
<body>
<div id="close_wrapper"><a id="close_button" href="index.html"><img src="images/close_but.png"></a></div>
<div id="page_title"><h1>External Subtitle Demo</h1></div>
<div id="player_wrapper"></div>
<script src="player/webchimera.js" type="text/javascript"></script>
<script>
// create player
wjs("#player_wrapper").addPlayer({ id: "webchimera", theme: "sleek", autoplay: 1 });
// add video url with an external subtitle
myplaylist = [];
myplaylist.push({
url: "http://www.youtube.com/watch?v=ja1sjfnfjg0",
subtitles: {
"English": "http://www.webchimera.org/sub/the_last_belle_2011_eng.srt"
}
});
// add the playlist to the player
wjs("#webchimera").addPlaylist(myplaylist);
</script>
</body>
</html>