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

Re: [mediacapture-record] Proposal: Specify ability to pause and resume between adding and removing MediaStreamTracks to an active MediaStream (#147)

From: guest271314 via GitHub <sysbot+gh@w3.org>
Date: Tue, 02 Apr 2019 14:54:58 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-479034879-1554216896-sysbot+gh@w3.org>
@yellowdoge cc @Pehrsons Re this issue and https://github.com/w3c/mediacapture-main/issues/575, one solution would be to provide an option, e.g., `{captureAsScreen:true}` else defaults to current implementation, at `HTMLMediaElement.captureStream()`, particularly `<video>` element media source and/or `MediaRecorder()` which would treat the `<video>` element as a _screen_ or _device_ in the same manner as 

`navigator.mediaDevices.getDisplayMedia({video}) // Chromium`


`navigator.mediaDevices.getUserMedia({video: {mediaSource: "screen"})`

where the stream does not change state to `"inactive"` when the `src` property of the `<video>` is changed or the media resource has ended playback.



`new MediaRecorder(stream, {captureAsScreen:true})`.

Created a proof of concept for Chromium. Will dive into Mozilla Firefox version within a day or so.

GitHub Notification of comment by guest271314
Please view or discuss this issue at https://github.com/w3c/mediacapture-record/issues/147#issuecomment-479034879 using your GitHub account
Received on Tuesday, 2 April 2019 14:55:00 UTC

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