forked from pabloFuente/mediasoup-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (45 loc) · 2.66 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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="mobile-web-app-capable" content="yes">
<title>Mediasoup app</title>
</head>
<body>
<div>
<button onclick="myBundle.connectWebSocket()">connectWebSocket</button>
<button onclick="myBundle.joinSession()">joinSession</button>
<button onclick="myBundle.publish()">publish</button>
<button onclick="myBundle.subscribe()">subscribe</button>
<button onclick="myBundle.pauseVideoPublisher()">pauseVideoPublisher</button>
<button onclick="myBundle.pauseAudioPublisher()">pauseAudioPublisher</button>
<button onclick="myBundle.pauseVideoSubscriber()">pauseVideoSubscriber</button>
<button onclick="myBundle.pauseAudioSubscriber()">pauseAudioSubscriber</button>
<button onclick="myBundle.resumeVideoPublisher()">resumeVideoPublisher</button>
<button onclick="myBundle.resumeAudioPublisher()">resumeAudioPublisher</button>
<button onclick="myBundle.resumeVideoSubscriber()">resumeVideoSubscriber</button>
<button onclick="myBundle.resumeAudioSubscriber()">resumeAudioSubscriber</button>
<button onclick="myBundle.closePublisher()">closePublisher</button>
<button onclick="myBundle.closeSubscriber()">closeSubscriber</button>
<button onclick="myBundle.videoPublisherStats()">videoPublisherStats</button>
<button onclick="myBundle.audioPublisherStats()">audioPublisherStats</button>
<button onclick="myBundle.videoSubscriberStats()">videoSubscriberStats</button>
<button onclick="myBundle.audioSubscriberStats()">audioSubscriberStats</button>
<button onclick="myBundle.recordAudio()">recordAudio</button>
<button onclick="myBundle.recordVideo()">recordVideo</button>
<button onclick="myBundle.recordAudioVideo()">recordAudioVideo</button>
<button onclick="myBundle.stopRecord()">stopRecord</button>
<button onclick="myBundle.changeSimulcast()">changeSimulcast</button>
<input id="spatial-layer" style="width: 70px" type="number" name="spatial" placeholder="spatial">
<input id="temporal-layer" style="width: 70px" type="number" name="temporal" placeholder="temporal">
</div>
<div>
<video id="local-video" style="width: 500px" autoplay muted></video>
<video id="remote-video" style="width: 500px" autoplay></video>
</div>
<div>
<textarea id="textarea" style="width: 100%; height: 400px" readonly></textarea>
</div>
</body>
<script type="text/javascript" src="./client-bundle.js"></script>