This repository has been archived by the owner on Jan 7, 2019. It is now read-only.
forked from MouMou/EWP
-
Notifications
You must be signed in to change notification settings - Fork 32
/
index.php
149 lines (122 loc) · 5.55 KB
/
index.php
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!doctype html>
<html>
<head>
<title>WebRTC</title>
<!-- Stylesheet Ressources -->
<link rel="stylesheet" href="css/global.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- JavaScript Ressources -->
<script src="js/jquery-1.7.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/global.js" type="text/javascript" charset="utf-8"></script>
<script src="js/adapt.js" type="text/javascript" charset="utf-8"></script>
<script src="js/webrtc.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<!-- Modal Connection -->
<div class="modal hide fade" id="ModalConnection">
<div class="modal-header">
<h3>WebRTC Sample Connection</h3>
</div>
<div class="modal-body">
<div class="control-group">
<label>Nickname :</label>
<input id="nickname" type="text" class="span2">
<span class="help-inline hide">Not empty !</span>
</div>
</div>
<div class="modal-footer">
<button id="loginSub" class="btn btn-primary">Login</button>
</div>
</div>
<!-- End of the Modal Connection -->
<!-- Modal About -->
<div class="modal hide fade" id="ModalAbout">
<div class="modal-header">
<h3>About WebRTC</h3>
</div>
<div class="modal-body">
<blockquote>
<p align="justify">WebRTC is an open source project that allows web browsers to communicate with one another using the protocol Real-Time Communications (RTC) via a simple Javascript API. WebRTC components were optimized to better serve this purpose.</p>
<p align="justify">WebRTC initiative is a project supported primarily by Google, Mozilla and Opera.</p>
<small class="pull-right">Project WebRTC</small>
</blockquote>
</div>
<div class="modal-footer">
<button id="close" class="btn btn-primary">Close</button>
<a class="btn btn-small btn-info" target="_blank" href="http://www.webrtc.org/">
<i class="icon-info-sign icon-white"></i>More Info</a>
</div>
</div>
<!-- End of the Modal About -->
<!-- Navbar -->
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="./index.php">WebRTC Sample</a>
<div class="nav-collapse">
<ul class="nav">
<li class="active"><a href="./index.php">Home</a></li>
<li><a href="https://github.com/ltribolet/webrtc-example" target="_blank">Project GitHub</a></li>
<li><a href="http://wiki.tribolet.fr/" target="_blank">Wiki</a></li>
<li><span id="about" class="about">About webRTC</span></li>
</ul>
<p class="navbar-text pull-right">Logged in as <a id="username" href="#">username</a></p>
</div>
</div>
</div>
</div>
<!-- End of the Navbar -->
<!-- Content -->
<div class="container-fluid">
<!-- Introduction -->
<div class="hero-unit">
<p>This is a demo for testing WebRTC in a LAN between two clients with WebRTC support.</p>
</div>
<!-- End of Introduction -->
<div class="row-fluid">
<div class="span6">
<!-- Local Video -->
<div class="row-fluid">
<div style="position: relative;" class="span12">
<h2 align="left">Local</h2>
<span id="locallive" class="live hide">LIVE</span>
<video width="100%" height="100%" id="localVideo" autoplay="autoplay"
style="opacity: 0;
-webkit-transition-property: opacity;
-webkit-transition-duration: 2s;">
</video>
</div>
</div>
<!-- End of Local Video -->
</div>
<div class="span6">
<!-- Remote Video -->
<div class="row-fluid">
<div style="position: relative;" class="span12">
<h2 align="left">Remote</h2>
<span id="remotelive" class="live hide">LIVE</span>
<video width="100%" height="100%" id="remoteVideo" autoplay="autoplay"
style="opacity: 0;
-webkit-transition-property: opacity;
-webkit-transition-duration: 2s;">
</video>
</div>
</div>
<!-- End of Remote Video -->
</div>
</div>
<!-- Statut of the visio call -->
<div id="footer"></div>
<hr>
<!-- Footer -->
<footer><p>© Atos Worldline 2012</p></footer>
</div>
<!-- End of the Content -->
</body>
</html>