-
Notifications
You must be signed in to change notification settings - Fork 60
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
use promise version of API #98
Conversation
this.pc.addStream(stream); | ||
stream.getTracks().forEach( | ||
function(track) { | ||
this.pc.addTrack( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC this was problematic in chrome. It only allows calling addTrack once? It's been a while since I used this. @jensengar do you remember?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i've been using this in production for over a year
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping? Since I heard (from a random person on the street) you're still using this in production
self.pc.setRemoteDescription(new RTCSessionDescription(offer), | ||
self.pc.setRemoteDescription( | ||
new RTCSessionDescription(offer) | ||
).then( | ||
function () { | ||
cb(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we can just pass cb here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find this highly confusing:
.then(cb, cb)
it works because the success has arguments and the error uses the first one but...
ping? |
publishes as 8.4.0. Now updating simplewebrtc.js to use this. |
done using https://github.com/fippo/webrtc-codemods