W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > September 2019

Re: [mediacapture-record] Add replaceTrack method to MediaStream (#167)

From: henbos via GitHub <sysbot+gh@w3.org>
Date: Thu, 12 Sep 2019 18:04:33 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-530939491-1568311472-sysbot+gh@w3.org>
> it should be specified that the width and height of the new video track be checked and set as the current encoded width and height

That may make sense to avoid surprises, a good thing for the PR to resolve this issue. However, tracks can already change resolution on the fly (example: WebRTC remote tracks). What to do if resolution changes seems tangental to this issue, and I think should be handled in a separate issue. This spec currently seems a bit underspecified.

> @henbos How does the replaceStream approach intend to handle the case of replacing a stream that has AV with a stream that has only V or A?

In the spirit of existing text to stop recording if tracks are removed, I think the operation should fail if you attempt to replace it by a stream that does not have the same number of audio and video tracks.

I also wonder what to do if there are multiple tracks of the same kind, since the order of tracks is undefined and what does it mean to record multiple tracks when the output is a blob? But I think this is another tangent to the issue in question of being able to replace tracks.

GitHub Notification of comment by henbos
Please view or discuss this issue at https://github.com/w3c/mediacapture-record/issues/167#issuecomment-530939491 using your GitHub account
Received on Thursday, 12 September 2019 18:04:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:28 UTC