blob: a189f9ae2ef463919023d452ce7bc8424538aa68 [file] [log] [blame]
<html>
<script>
'use strict;'
let cnt = 0;
function causeIssue() {
youConnection = new RTCPeerConnection({});
youConnection.onsignalingstatechange = ev => {
if(cnt==1) {
parent.trigger();
}
cnt++;
};
var offerOptions = {
offerToReceiveVideo: 1
};
youConnection.createOffer(offerOptions)
.then(async function(offer) {
await youConnection.setLocalDescription(offer);
// Cause an implicit rollback.
youConnection.setRemoteDescription(offer);
});
}
causeIssue();
</script>
</html>