-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjibri.html
33 lines (33 loc) · 1.02 KB
/
jibri.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root">
<iframe allow="camera *;microphone *;" src="devices.html" width="100%" height="500px"></iframe>
</div>
<button onclick="test()">Test</button>
</body>
<script type="text/javascript" >
function test() {
var root = document.getElementById('root');
root.innerHTML = '';
var iframe = document.createElement('iframe');
iframe.width = '100%';
iframe.height = '500px';
iframe.allow = "camera *;microphone *;";
iframe.src = "devices.html";
root.appendChild(iframe);
}
</script>
</html>