/
Aiueo.html
66 lines (59 loc) · 1.4 KB
/
Aiueo.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
<!DOCTYPE html>
<html>
<head>
<title>Aiueo</title>
<style type="text/css">
body {
background: url("nico.png") no-repeat;
}
#selfView {
position: absolute;
top: 20px;
right: 30px;
width: 200px;
height: 200px;
}
#localCanvas {
position: absolute;
top: 240px;
right: 30px;
width: 200px;
height: 200px;
}
#cover {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
visibility: hidden;
background: url("nikkei.png") no-repeat;
}
#error {
visibility: hidden;
background: #999999;
padding: 5px;
color: red;
font-weight: bold;
font-size: 2em;
}
</style>
<script type="application/dart" src="Aiueo.dart"></script>
<script src="http://dart.googlecode.com/svn/branches/bleeding_edge/dart/client/dart.js"></script>
</head>
<body>
<div id="cover"></div>
<div id="status"></div>
<video id="selfView" autoplay="autoplay" audio="muted"></video>
<canvas width="200" height="200" id="localCanvas"></canvas>
<div id="error" align="center">
<p>
MediaStream(WebRTC) is not active.
</p>
<img src="mediastream.png" />
<p>
You should enable MediaStream by "chrome://flags" page and restart Chrome...
</p>
</div>
</body>
</html>