Open ArmorDarks opened 4 years ago
According to the specs, sender.replaceTrack should return a Promise which will resolve when track replacement has finished.
sender.replaceTrack
SimplePeer, on the contrary, returns void which makes it harder to await track replacement completion.
SimplePeer
void
This one is similar to #593, most APIs should actually return values and be async to allow for advanced use cases.
According to the specs,
sender.replaceTrack
should return a Promise which will resolve when track replacement has finished.SimplePeer
, on the contrary, returnsvoid
which makes it harder to await track replacement completion.