- From: guest271314 via GitHub <sysbot+gh@w3.org>
- Date: Tue, 02 Apr 2019 14:54:58 +0000
- To: public-webrtc-logs@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`
or
`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.
`video.captureStream({captureAsScreen:true})`
and/or
`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