-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
44 lines (36 loc) · 1.4 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous">
<title>WebRTC</title>
</head>
<body>
<div id="app">
<nav class="navbar navbar-light bg-light justify-content-between">
<span class="navbar-brand mb-0 h1">WebRTC</span>
<a href="https://github.com/mornir/webrtc-firebase" target="_blank">
<img src="github.png" alt="github" width="25px">
</a>
</nav>
<div class="container">
<div class="row">
<div class="col-sm-6">
<h2>Envoi</h2>
<video id="emitter-video" autoplay playsinline muted width="100%" height="400px"></video>
<p>
<button id="start" class="btn btn-primary btn-sm">Share my video</button>
</p>
</div>
<div class="col-sm-6">
<h2>Réception</h2>
<video id="receiver-video" autoplay playsinline width="100%" height="400px"></video>
</div>
</div>
<script src="vendor/firebase.js"></script>
<script src="vendor/simplePeer.js"></script>
<script type="module" src="firebase-init.js"></script>
<script type="module" src="app.js"></script>
</body>
</html>