-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (45 loc) · 1.42 KB
/
index.html
File metadata and controls
49 lines (45 loc) · 1.42 KB
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
<html>
<script>
PPeasy_Config={
//server:"ws://ppeasy.p2pdownload.cn:8185/",
server:"wss://ppeasy.p2pdownload.cn:8180/",
stun1:"stun:stun.freeswitch.org",
stun2:"stun:stun.xten.com"
};
</script>
<script type="text/javascript" src="ppeasy.js"></script>
<script src="flv.js"></script>
<script>
var urlstring=null;
var chromev=window.navigator.userAgent;
chromev=parseInt(chromev.split(" Chrome/")[1].split(".")[0]);
function start(){
urlstring=document.getElementById("url").value;
if (flvjs.isSupported()) {
var videoElement = document.getElementById('videoElement');
var flvPlayer = flvjs.createPlayer({
type: 'flv',
isLive: 'true',
url:urlstring
},{
enableStashBuffer: false,
stashInitialSize: 128,
isLive: true,
}
);
flvPlayer.attachMediaElement(videoElement);
flvPlayer.load();
flvPlayer.play();
}
}
window.onload=function(){
if(chromev<66 );
};
</script>
<body onclick=''>
url:<input id=url style="width:620px" type=text value="https://v-2aec0328.71edge.com:444/liveshow/rbd_hwgpzrz1.flv?ip=221.15.216.19&ssl=1&ran=255" /><input type=button onclick="start();" value=play /><br>
<video id="videoElement" controls=controls autoplay="autoplay" webkit-playsinline=true playsinline=true x5-playsinline style="width:600px;height:400px;" onclick='start()'></video>
<div id=log>
</div>
</body>
</html>