blob: c7ba824041ec3f5fc1af95f688b0c76ce19d03f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<script>
document.addEventListener('DOMContentLoaded', async () => {
const peer = new RTCPeerConnection()
const stream = await navigator.mediaDevices.getUserMedia({
video: true,
audio: true,
fake: true,
peerIdentity: 'name',
})
stream.getTracks().forEach((track) => peer.addTrack(track, stream))
const offer = await peer.createOffer({})
await peer.setLocalDescription(offer)
await peer.setRemoteDescription(offer)
document.documentElement.removeAttribute("class");
})
</script>
</head>
</html>
|