File: demo.html

package info (click to toggle)
golang-github-pion-webrtc.v3 3.1.56-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,392 kB
  • sloc: javascript: 595; sh: 28; makefile: 5
file content (31 lines) | stat: -rw-r--r-- 845 bytes parent folder | download | duplicates (2)
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
Browser base64 Session Description<br />
<textarea id="localSessionDescription" readonly="true"></textarea> <br />
<button onclick="window.copySDP()">
  Copy browser SDP to clipboard
</button>
<br />
<br />

Golang base64 Session Description<br />
<textarea id="remoteSessionDescription"></textarea> <br/>
<button onclick="window.startSession()"> Start Session </button><br />

<br />

<div style="display: flex">
  <div>
    Browser stream 1<br />
    <canvas id="canvasOne" height="200" width="200"></canvas>
  </div>
  <div>
    Browser stream 2<br />
    <canvas id="canvasTwo" height="200" width="200"></canvas>
  </div>
  <div>
    Browser stream 3<br />
    <canvas id="canvasThree" height="200" width="200"></canvas>
  </div>
</div>

Video from server<br />
<video id="serverVideo" width="200" height="200" autoplay muted></video> <br />