alpha1ct commited on
Commit
b7340e7
·
verified ·
1 Parent(s): 5531fa2

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +13 -46
index.html CHANGED
@@ -1,51 +1,18 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <title>Daily Call Example</title>
6
- <link href="style.css" rel="stylesheet" />
7
- </head>
8
- <body>
9
- <div>
10
- <label for="room-url">Room URL:</label>
11
- <input
12
- type="text"
13
- id="room-url"
14
- size="50"
15
- placeholder="https://yourcompany.daily.co/hello"
16
- />
17
- </div>
18
- <div>
19
- <input type="text" id="join-token" size="50" placeholder="Optional" />
20
- </div>
21
 
22
- <div class="controls">
23
- <button id="join-btn">Join Room</button>
24
- <button id="leave-btn" disabled>Leave</button>
25
- <button id="toggle-camera" disabled="true">Toggle Camera</button>
26
- <button id="toggle-mic" disabled="true">Toggle Microphone</button>
27
- </div>
28
 
29
- <div class="controls">
30
- <select id="camera-selector">
31
- <option value="" disabled selected>Select a camera</option>
32
- </select>
33
- <select id="mic-selector">
34
- <option value="" disabled selected>Select a microphone</option>
35
- </select>
36
- </div>
37
 
38
- <div id="status">
39
- <div id="camera-state">Camera: Off</div>
40
- <div id="mic-state">Mic: Off</div>
41
- <div id="participant-count">Participants: 0</div>
42
- <div id="active-speaker">Active Speaker: None</div>
43
- </div>
44
 
45
- <div id="videos"></div>
46
-
47
- <script src="https://unpkg.com/@daily-co/daily-js"></script>
48
- <script src="index.js"></script>
49
- </body>
50
- </html>
51
 
 
 
1
+ import gradio as gr
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
+ # Embed the webcam tests with their respective URLs
4
+ def embed_webcam_test(iframe_url):
5
+ return f"<iframe src='{iframe_url}' width='100%' height='600' allow='fullscreen'></iframe>"
 
 
 
6
 
7
+ # Create the Gradio app with multiple tabs for each test
8
+ with gr.Blocks() as app:
9
+ with gr.Tab("WebcamTests.com"):
10
+ gr.HTML(embed_webcam_test("https://webcamtests.com"))
 
 
 
 
11
 
12
+ with gr.Tab("Clideo"):
13
+ gr.HTML(embed_webcam_test("https://clideo.com/tools/webcam-test"))
 
 
 
 
14
 
15
+ with gr.Tab("Direec"):
16
+ gr.HTML(embed_webcam_test("https://direec.com/tools/webcam-test"))
 
 
 
 
17
 
18
+ app.launch()