mirror of
https://github.com/pion/webrtc.git
synced 2025-10-05 23:26:58 +08:00

Use simple XOR Cipher on both sides. In the Web UI you can flip a checkbox and watch decoding fail when decryption is disabled.
19 lines
661 B
HTML
19 lines
661 B
HTML
<div id="no-support-banner" style="background-color: red">
|
|
<h1> Browser does not support insertable streams </h1>
|
|
</div>
|
|
|
|
Browser base64 Session Description<br />
|
|
<textarea id="localSessionDescription" readonly="true"></textarea> <br />
|
|
|
|
Golang base64 Session Description<br />
|
|
<textarea id="remoteSessionDescription"> </textarea> <br/>
|
|
<button onclick="window.startSession()"> Start Session </button> Decrypt Video <input type="checkbox" checked="checked" onclick="window.toggleDecryption()"/> <br />
|
|
|
|
<br />
|
|
|
|
Video<br />
|
|
<video id="remote-video" playsinline autoplay controls style="width: 640; height: 480"></video> <br />
|
|
|
|
Logs<br />
|
|
<div id="div"></div>
|