W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > October 2018

Re: [mediacapture-fromelement] define behaviors of the common ConstrainablePattern Interfaces

From: Elias Hasle via GitHub <sysbot+gh@w3.org>
Date: Thu, 25 Oct 2018 09:20:08 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-432977913-1540459208-sysbot+gh@w3.org>
A use case of captureStream is to record video of rendered graphics on a canvas. Naturally, with graphics rendering the FPS may be variable. For realtime graphics a variable output FPS is acceptable, but for graphics rendered on given time steps, but with variable processing time, such as for a movie (could be using raytracing or other expensive techniques), it should be possible to render frames one by one and specify a fixed framerate. I actually expected this behavior for captureStream(0), but found no way to control the output framerate. Maybe requestFrame could take a dt or timestamp parameter, to override the realtime default? Or maybe there could be a way to apply constraints?

Syncing with an audio stream would then be another challenge.

I understand that realtime streams may be prioritized, but then maybe the output framerate control belongs in MediaRecorder.

GitHub Notification of comment by EliasHasle
Please view or discuss this issue at https://github.com/w3c/mediacapture-fromelement/issues/48#issuecomment-432977913 using your GitHub account
Received on Thursday, 25 October 2018 09:20:10 UTC

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