blob: 67bce74b183d82894d040b2ba72af4ced44d09a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<html>
<head>
<script>
document.addEventListener('DOMContentLoaded', async () => {
const peer = new RTCPeerConnection({ 'iceServers': [{ 'urls': 'stun:23.21.150.121' }] })
const offer = await peer.createOffer({ 'offerToReceiveVideo': true })
await peer.setRemoteDescription(offer)
const senders = peer.getSenders()
setTimeout(async () => await senders[1].setParameters({}), 334)
await peer.setRemoteDescription(offer)
})
</script>
</head>
</html>
|