Skip to content

Commit

Permalink
Fix simulcast example.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwashi committed May 2, 2018
1 parent 918b8d1 commit bd98952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webrtc.html
Expand Up @@ -11468,7 +11468,7 @@ <h3>Simulcast Example</h3>
// let the "negotiationneeded" event trigger offer generation
pc.onnegotiationneeded = async () =&gt; {
try {
await pc.setLocalDescription(pc.createOffer());
await pc.setLocalDescription(await pc.createOffer());
// send the offer to the other peer
signaling.send(JSON.stringify({desc: pc.localDescription}));
} catch (err) {
Expand Down

0 comments on commit bd98952

Please sign in to comment.