-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdemo.html
36 lines (36 loc) · 1.03 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<title>RTMP Publisher</title>
<meta charset='utf-8'>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashVars = {
streamer: 'rtmp://localhost/myapp',
file:'mystream',
onStopRecord:'stopRecord',
onError:'error',
publishType: 'record',
labelRecord: 'Записать',
labelStop: 'Остановить запись'
};
swfobject.embedSWF("RtmpPublisher.swf", "rtmp-publisher", "500", "400", "9.0.0", null, flashVars);
</script>
</head>
<body>
<div id="rtmp-publisher">
<p>Flash not installed</p>
</div>
<script type="text/javascript">
var stopRecord = function(ok) {
console.log('ok', ok);
return "vasya";
}
var error = function(ok) {
console.log('err', ok);
return "kolya";
}
</script>
</body>
</html>