mirror of
https://github.com/pion/webrtc.git
synced 2025-10-05 23:26:58 +08:00
28 lines
738 B
HTML
28 lines
738 B
HTML
<!--
|
|
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
|
|
SPDX-License-Identifier: MIT
|
|
-->
|
|
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
|
|
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>
|
|
Browser stream<br />
|
|
<video id="browserVideo" width="200" height="200" autoplay muted></video>
|
|
</div>
|
|
|
|
<div id="serverVideos">
|
|
Video from server<br />
|
|
</div>
|