- From: guest271314 via GitHub <sysbot+gh@w3.org>
- Date: Sat, 17 Mar 2018 16:10:06 +0000
- To: public-media-capture-logs@w3.org
Why cannot `MediaRecorder` record the `MediaStream` as long as the stream is `active`? If `MediaRecorder` cannot record an array of multiple `MediaStreamTrack`s, `MediaRecorder` should at least be able to record the only existing video and audio tracks within an `active` `MediaStream`.
Currently the behaviour is that `MediaRecorder` only records the first video or audio track, not the tracks added subsequently with `.addTrack()`.
For example
```
video.addEventListener("playing", e => {
let stream = captureStream(video);
let tracks = stream.getTracks();
for (let track of tracks) {
mediaStream.addTrack(track)
}
for (let track of mediaStream.getTracks()) {
if (tracks.find(({
id
}) => track.id === id) === undefined) {
mediaStream.removeTrack(track);
}
}
..
})
```
the `MediaStream` is `active` throughout the procedure, though only the first video and audio track are recorded; tried enough times `MediaRecorder` might record only portions of one of the added tracks.
--
GitHub Notification of comment by guest271314
Please view or discuss this issue at https://github.com/w3c/mediacapture-record/issues/4#issuecomment-373931800 using your GitHub account
Received on Saturday, 17 March 2018 16:10:12 UTC