forked from galligator/RealtimeAvatarDemoV2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (40 loc) · 1.42 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="index.css" />
<link rel="icon" href="./favicon.ico" />
</head>
<body>
<h1>WebRTC Demo</h1>
<div class="container">
<div class="left">
<h2>Choose Talking Photo</h2>
<input type="file" class="chooser" id="chooser">
<div class="button-container">
<button id="uploadBtn">Upload</button>
<button id="silentVideoBtn">Generate Silent Video</button>
</div>
<h2>Params</h2>
<input id="photarID" type="text" placeholder="Photar ID">
<input id="voiceID" type="text" placeholder="Voice ID">
<input id="dimensionWidth" type="text" placeholder="Video Width">
<input id="dimensionHeight" type="text" placeholder="Video Height">
<input id="silentVideoURL" type="text" placeholder="Silent Video URL">
<h2>Connect WebRTC</h2>
<div class="button-container">
<button id="connBtn">Connect</button>
<button id="talkBtn">Talk</button>
<button id="closeBtn">Close</button>
<input id="taskInput" type="text" placeholder="Text to Talk">
</div>
</div>
<div class="right">
<p id="status"></p>
<div class="videoWrap">
<video id="silentMediaElement" class="visible" autoplay loop preload="yes"></video>
<video id="mediaElement" autoplay preload="yes"></video>
</div>
</div>
</div>
<script type="module" src="index.js"></script>
</body>