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

replaceTrack should return a Promise #596

Open
ArmorDarks opened this issue Mar 16, 2020 · 1 comment
Open

replaceTrack should return a Promise #596

ArmorDarks opened this issue Mar 16, 2020 · 1 comment

Comments

@ArmorDarks
Copy link

According to the specs, sender.replaceTrack should return a Promise which will resolve when track replacement has finished.

SimplePeer, on the contrary, returns void which makes it harder to await track replacement completion.

@nazar-pc
Copy link
Collaborator

This one is similar to #593, most APIs should actually return values and be async to allow for advanced use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants