forked from video-dev/clappr-rtmp-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
27 lines (26 loc) · 774 Bytes
/
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
<html>
<head>
<script type="text/javascript" src="node_modules/clappr/dist/clappr.js"></script>
<script type="text/javascript" src="dist/rtmp.js"></script>
</head>
<body>
<div id="player"></div>
<script>
var player = new Clappr.Player({
source: "rtmp://fms.12E5.edgecastcdn.net/0012E5/mp4:videos/8Juv1MVa-485.mp4",
parentId: "#player",
autoPlay: true,
rtmpConfig: {
swfPath: 'dist/assets/RTMP.swf',
scaling:'stretch',
playbackType: 'vod',
bufferTime: 1,
startLevel: 0
},
plugins: {
playback: [RTMP]
},
});
</script>
</body>
</html>