Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: !webrtc
- Manifest: dom/media/tests/crashtests/crashtests.list
<html>
<head>
<script>
window.addEventListener('load', async () => {
const peer = new RTCPeerConnection({})
await peer.createOffer({ 'offerToReceiveVideo': true })
const receivers = peer.getReceivers()
const sender = peer.addTrack(receivers[0].track)
peer.close()
await sender.getStats()
await sender.replaceTrack(receivers[0].track)
})
</script>
</head>
</html>