Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add replaceTrack method to MediaStream #167
The primary use case for adding a
This https://github.com/guest271314/MediaFragmentRecorder/blob/webrtc-replacetrack/MediaFragmentRecorder.html is currently possible using
Filing this issue before filing a PR for changes to the respective specification(s).
It seems your use case is mostly about media recorder and the ability to switch tracks when recording.
Relevant specification language
The HTML specification mentions using
there is ambiguity present amidst the various specifications which use the term
Interestingly, Chromium 73 does not dispatch
Browsing the source code of
Similar issues and branches for code which set multiple video tracks that could be selected exist for Chromium; e.g., https://bugs.chromium.org/p/chromium/issues/detail?id=528523.
The relevant issues have already been filed at
Would not characterize the lack of support for recording multiple
Do not have a particular preference for how the functionality of using
from own minimal experimentation the primary issue appears to be setting
(https://github.com/guest271314/mkvparse; https://github.com/guest271314/webm-writer-js (uncompressed the resulting webm file is considerably greater size than Chromium or Firefox resulting webm files, which are each differ between each other as well, both in general and depending on the codec used,
@alvestrand In brief, the
The difference is that "replaceTrack()" defined as a method of
This seems like the right repo for it, since the justification for the function is strictly based on the MediaRecorder definition that "adding a track stops recording".