mirror of
https://github.com/pion/webrtc.git
synced 2025-10-13 02:43:48 +08:00

copySessionDescription adds a button to all examples that copies the local Session Description. This makes it easier for users to copy the values. Resolves #2092
21 lines
576 B
HTML
21 lines
576 B
HTML
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 />
|
|
|
|
Message<br />
|
|
<textarea id="message">This is my DataChannel message!</textarea> <br/>
|
|
<button onclick="window.sendMessage()">Send Message</button> <br />
|
|
|
|
<br />
|
|
Logs<br />
|
|
<div id="logs"></div> |