-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
75 lines (69 loc) · 1.9 KB
/
index.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html>
<head>
<title>index</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" media="screen">
html,
body {
height: 100%;
}
body {
margin: 0;
padding: 0;
overflow: hidden;
}
#flashContent {
width: 1200px;
height: 675px;
}
</style>
</head>
<body>
<div id="flashContent">
<object
type="application/x-shockwave-flash"
data="index.swf"
width="100%"
height="100%"
id="app"
bgcolor="#000000"
>
<param name="allowScriptAccess" value="always" />
<param name="allowNetworking" value="all" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="wmode" value="opaque" />
<param name="menu" value="false" />
</object>
</div>
<script>
const Ouzzplayer = {
status(code) {
console.log(code);
}
};
const app = document.getElementById("app");
// function a() {
// app.startLive(
// "rtmp://cyberplayerplay.kaywang.cn/cyberplayer/",
// "demo201711-L1"
// );
// }
// function a() {
// app.startLive("rtmp://192.168.0.216:1935/vod", "mp4:sample.mp4");
// }
// function a() {
// app.startLive(
// "rtmp://stream.morecanai.com/stage/",
// "92516865050060?morecantokenendtime=1564128270&morecantokenstarttime=1564127670&morecantokenhash=4ROT9Xui9LiYcGJtgZUVysjLYFdNpIh11JdOWpljUeI="
// );
// }
function b() {
var be = app.snapshot();
const bs64 = `data:image/jpeg;base64,${be}`;
console.log(bs64);
}
</script>
</body>
</html>