-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVideoCall
100 lines (95 loc) · 3.77 KB
/
VideoCall
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
<html lang="en">
<head>
<title>Video Call</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="container-fluid p-0">
<div id="main-container">
<div id="screen-share-btn-container" class="col-2 float-right text-right mt-2">
<button id="screen-share-btn" type="button" class="btn btn-lg">
<i id="screen-share-icon" class="fas fa-desktop"></i>
</button>
</div>
<div id="buttons-container" class="row justify-content-center mt-3">
<div class="col-md-2 text-center">
<button id="mic-btn" type="button" class="btn btn-block btn-dark btn-lg">
<i id="mic-icon" class="fas fa-microphone"></i>
</button>
</div>
<div class="col-md-2 text-center">
<button id="video-btn" type="button" class="btn btn-block btn-dark btn-lg">
<i id="video-icon" class="fas fa-video"></i>
</button>
</div>
<div class="col-md-2 text-center">
<button id="exit-btn" type="button" class="btn btn-block btn-danger btn-lg">
<i id="exit-icon" class="fas fa-phone-slash"></i>
</button>
</div>
</div>
<div id="full-screen-video"></div>
<div id="lower-video-bar" class="row fixed-bottom mb-1">
<div id="remote-streams-container" class="container col-9 ml-1">
<div id="remote-streams" class="row">
<!-- insert remote streams dynamically -->
</div>
</div>
<div id="local-stream-container" class="col p-0">
<div id="mute-overlay" class="col">
<i id="mic-icon" class="fas fa-microphone-slash"></i>
</div>
<div id="no-local-video" class="col text-center">
<i id="user-icon" class="fas fa-user"></i>
</div>
<div id="local-video" class="col p-0"></div>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="modalForm">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header text-center">
<h4 class="modal-title w-100 font-weight-bold">Join Channel</h4>
<button type="button" class="close" data-dismiss="modal">
<span>×</span>
</button>
</div>
<div class="modal-body mx-3">
<div class="md-form mb-5">
<label for="form-appid">Agora AppId</label>
<input type="text" id="form-appid" name="fname" value="67bc6ee02e7341289549c330ff87c64d" class="form-control"readonly><br><br>
</div>
<div class="md-form mb-4">
<input type="text" id="form-channel" class="form-control">
<label for="form-channel">Channel</label>
</div>
</div>
<div class="modal-footer d-flex justify-content-center">
<button id="join-channel" class="btn btn-default">Join Channel</button>
</div>
</div>
</div>
</div>
</body>
<script src="AgoraRTCSDK-3.1.1.js"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js"></script>
<script type="text/javascript">
$("#mic-btn").prop("disabled", true);
$("#video-btn").prop("disabled", true);
$("#screen-share-btn").prop("disabled", true);
$("#exit-btn").prop("disabled", true);
$(document).ready(function(){
$("#modalForm").modal("show");
});
</script>
<script src="ui.js"></script>
<script src="agora-interface.js"></script>
<link rel="stylesheet" type="text/css" href="style.css"/>
</html>