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

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

From: Andreas Pehrson via GitHub <sysbot+gh@w3.org>
Date: Fri, 13 Sep 2019 15:07:09 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-531275051-1568387228-sysbot+gh@w3.org>
> I've been pondering whether this is going to work right with resolution changes. Does Chrome let you record a remote track that changes resolution?

Tracks change resolution all the time, so there are no new problems surfacing from adding an API like this.

> AFAIK Firefox doesn't allow recording of remote tracks period.

We have allowed and supported recording remote tracks for years. [Bug 1212237](https://bugzilla.mozilla.org/show_bug.cgi?id=1212237) makes it a bit annoying though.

> I also did this [demo page](https://jan-ivar.github.io/dummy/replace-track.html) where I remove a stream's video track and add a different video track on the same event loop (the API alternative I mentioned). This causes `UnknownError` from MediaRecorder in Firefox. In Chrome there's no error, but I don't see a recording (maybe autoplay restrictions interfering?) cc @Pehrsons

Right, we don't fire InvalidModificationError for track set changes yet. I filed [bug 1581139](https://bugzilla.mozilla.org/show_bug.cgi?id=1581139).

> Just wanted to share what I'd tried.

GitHub Notification of comment by Pehrsons
Please view or discuss this issue at https://github.com/w3c/mediacapture-record/issues/167#issuecomment-531275051 using your GitHub account
Received on Friday, 13 September 2019 15:07:10 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:48 UTC