Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes step06 according to latest specs: sdpParams in RTCIceCandidate constructor and use promises #121

Merged
merged 2 commits into from
Nov 4, 2020

Conversation

notmariazoe
Copy link
Contributor

The lack of sdpParams in the RTCIceCandidate constructor was throwing a newly created TypeError as per the latest spec draft and .

Moreover, the usage of callbacks in createOffer was causing a race condition that sometimes led to sending a null offer that caused an error on the other peer.

…callback to fix TypeError thrown as per latest spec
… deprecated. Fixes sending first offer null description.
@notmariazoe
Copy link
Contributor Author

notmariazoe commented Nov 3, 2020

@samdutton Here are the changes I mentioned yesterday, thanks for looking into it!
Should fix Issue #102 as well.

@samdutton
Copy link
Contributor

Thanks Maria! Merged.

@samdutton samdutton merged commit c96ce33 into googlecodelabs:master Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants