-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
77 lines (72 loc) · 3.52 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Twilio Video Demo</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
</head>
<body>
<div class="container-fluid">
<div class="row p-1" id="room-controls" style="box-shadow: 1px 1px rgba(0,0,0,0.15); background-color: rgba(0,0,0,0.1);">
<div class="col align-self-center" >
<input type="text" class="form-control" id="room-name" placeholder="Enter a room name">
</div>
<div class="col col-md-offset-1 align-self-center" >
<input type="checkbox" class="form-check-input" id="screen-share-checkbox">
<label class="form-check-label" id="screen-share-checkbox-label" for="screen-share-checkbox">Share my screen</label>
<button id="button-join" type="button" class="btn btn-primary">Join</button>
<button id="button-leave" type="button" class="btn btn-danger" style="display: none">Leave Room</button>
</div>
<div class="col col-md-offset-1 align-self-center" >
</div>
<div class="col col-md-offset-1 align-self-center" >
<!-- Preview Video in a modal -->
<button type="button" class="btn btn-info" data-toggle="modal" relatedTarget='preview-modal' data-target="#preview-modal">
Preview
</button>
</div>
</div>
<div class="row">
</div>
<div class="row justify-content-center">
<div class="col-2 border-right">
<div id="preview">
<div id="local-media"></div>
</div>
</div>
<div class="col-6 border-right">
<div id="remote-media"></div>
</div>
<div class="col-4">
<div style=' height: 180px; width:400px; background-color:rgba(0,0,0,0.0.05)'>
<h4>Log</h4>
<div id="log" style='overflow: scroll; width:100%; height: 100%; box-shadow: 1px 1px rgba(0,0,0,0.15); background-color:rgba(0,0,0,0.1)'></div>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="preview-modal" tabindex="-1" role="dialog" aria-labelledby="preview-modal-label" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="preview-modal-label">Video Preview</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div id="preview-local-media">
</div>
</div>
</div>
</div>
</div>
<!-- You can also require other files to run in this process -->
<script>window.$ = window.jQuery = require('jquery');</script>
<script src="./renderer.js"></script>
<script src="./video.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>