simple-peer icon indicating copy to clipboard operation
simple-peer copied to clipboard

`replaceTrack` should return a Promise

Open ArmorDarks opened this issue 6 years ago • 1 comments

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.

ArmorDarks avatar Mar 16 '20 16:03 ArmorDarks

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

nazar-pc avatar Mar 16 '20 16:03 nazar-pc