-
Notifications
You must be signed in to change notification settings - Fork 22
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
Proposal: Specify ability to pause and resume between adding and removing MediaStreamTracks to an active MediaStream #147
Comments
Related #4 |
@YellowDoge cc @Pehrsons Re this issue and w3c/mediacapture-main#575, one solution would be to provide an option, e.g.,
or
where the stream does not change state to
and/or
Created a proof of concept for Chromium. Will dive into Mozilla Firefox version within a day or so. |
@YellowDoge cc @Pehrsons Some code
|
Similar at Firefox 68 (Nightly) using the same code. |
@YellowDoge cc @Pehrsons Reading the relevant specifications Media Capture from DOM Elements
WebRTC 1.0: Real-time Communication Between Browsers 5.2 RTCRtpSender Interface
(issues re
(issues re
et al., the language in MediaStream Recording does not specifically state that a video track cannot be replaced by another video track. To that end
can be used to "seamlessly" replace a video track having the same codecs and constraints. This issue should be construed as a request for an enhancement of Composed a proof of concept using two WebRTC
|
It is presently possible to record multiple video or audio to a single
webm
Blob
usingcanvas.captureStream()
andAudioContext.createMediaStreamDestination()
. This functionality should be possibleMediaStreamTrack
s to anactive
MediaStream
;src
attribute of anHTMLMediaElement
where an activeMediaStream
is set atsrcObject
For 1. the
MediaStream
does not reach aninactive
state; video or audio tracks are added to the stream and video and/or audio tracks previously rendered at the element are removed from theMediaStream
.For 2. the
MediaStream
becomesinactive
momentarily while the media element loads the new media.For either case the developer should have some means to pause and resume recording of the media while the tracks are being added and removed, or only added to the
MediaStream
. TheMediaRecorder
instance should resume recording the newly added tracks to the previously recorded data when the newMediaStreamTrack
s are active.Currently, when a
MediaStreamTrack
is added to an activeMediaStream
, only the initialMediaStreamTrack
s are recorded; though if tried enough there could be cases where parts of audio or video from subsequentMediaStreamTrack
s are recorded. This behaviour should be consistent; with the user having the clear ability to pause and resumeMediaRecorder
between adding and removing multipleMediaStreamTrack
s, with the result being a single file comprising the totality of recorded media.The text was updated successfully, but these errors were encountered: