W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > December 2022

Re: [mediacapture-record] More information about timing of recording (start event, blob event, stop event) (#208)

From: Michiel Westerbeek via GitHub <sysbot+gh@w3.org>
Date: Wed, 14 Dec 2022 18:49:37 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-1351973315-1671043776-sysbot+gh@w3.org>
Right now I start the mediarecorders (1 for screen, 1 for cam), wait for both to be started, show a 3s countdown, then mark that actual start point as a "cut" to remove from the start. I check the onStarted on the mediarecorders and use that to remove ~3s from each of the videos.
So quick example:
Start recording, check onStarted, took 500ms to start the mediarecorder, so we want to remove 3s (countdown) - 500ms from the start of that video. I do the same for cam.

It's not ideal and there is definitely a chance for things to get out of sync but it's the most accurate I've been able to make it.

Been also working with a mac app recently and the CMSampleBuffers there have presentationTimestamps which are great because they do contain timing info. Would be great if browsers also get that.

GitHub Notification of comment by happylinks
Please view or discuss this issue at https://github.com/w3c/mediacapture-record/issues/208#issuecomment-1351973315 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 14 December 2022 18:49:39 UTC

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