feross / feross/simple-peer

`replaceTrack` should return a Promise

Open
#596 1 comment 4 reactions 0 assignees View on GitHub
feature request
Dominant language
JavaScript
Stars
7.8k
Forks
983
PR merge metrics
No merged PRs in 30d

Description

According to the specs, `sender.replaceTrack` [should return a Promise](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/replaceTrack) which will resolve when track replacement has finished.

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.