forked from jackzhang1204/sewise-player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subtitles.html
61 lines (59 loc) · 2.49 KB
/
subtitles.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sewise Player-Subtitles</title>
<script charset="utf-8" type="text/javascript" language="JavaScript" src="../player/js/swfobject.js"></script>
<script language="JavaScript" charset="utf-8" type="text/javascript">
var player;
var host = "http://219.232.161.206/";
var video_url = "http://219.232.161.206:5080/flvseek/data/userdata/vismam/downfile/201307/02005220p.flv";
var subtitles_id = "2UtWdAUZ";
var subtitles_lang = "en"; //显示字幕语言, 英文: en, 中文: zh_CN
var flashvars = {
serverPath : host + 'flashservice/gateway.php',
serverApi : 'ServerApi.execute',
autoStart : 'true',
logo : 'http://onvod.sewise.com/libs/swfplayer/skin/images/logo.png',
title : 'Subtitles Test',
clarityButton : 'disable',
lang : 'en_US',
skin : '../player/flash/skins/vodWhite.swf',
type : 'flv',
videoUrl : video_url,
subtitlesPlayer : '../player/flash/plugins/SubtitlesPlayer.swf',
subtitlesId : subtitles_id,
subtitlesLang : subtitles_lang
};
var params = {
allowfullscreen : true,
wmode : "transparent",
allowscriptaccess : 'always'
};
var attributes = {
id : 'sewise_x_player',
name : 'sewise_x_player'
};
window.onload = function() {
swfobject.embedSWF("../player/flash/SewisePlayer.swf", "swf-container", "100%", "100%", "9.0.115", false, flashvars, params, attributes);
}
function playerReady() {
player = document.getElementById("sewise_x_player");
}
function switchVideo(){
player.toPlay("http://219.232.161.206:5080/flvseek/data/userdata/vismam/downfile/201307/020058352.flv", 'test toPlay', 0, true, '', 'xMRgJgIP', 'en');
}
</script>
</head>
<body>
<div style="width: 600px;height: 400px;">
<div id="swf-container">
加载播放器......
</div>
<div style="padding-top: 20px;">
<div style="padding-right: 20px;float: left;"><a href="javascript:switchVideo();">Switch Video</a></div>
</div>
</div>
</body>
</html>