W3C home > Mailing lists > Public > public-media-capture-logs@w3.org > June 2018

Re: [mediacapture-main] Get raw data from MediaStream

From: Alexander Embiricos via GitHub <sysbot+gh@w3.org>
Date: Tue, 19 Jun 2018 05:27:32 +0000
To: public-media-capture-logs@w3.org
Message-ID: <issue_comment.created-398278465-1529386051-sysbot+gh@w3.org>
Hey @alvestrand, sorry to resuscitate an old thread, but I currently have a use case for getting the raw data, and a scenario that doesn't seem to be currently covered:

I have an application with fairly long-lived streams (e.g. 1 hour long at a time), and I'd like to provide users with a way to capture short clips of the most recent, say, 15 seconds.

Currently it seems that creating a buffer of the most recent data directly from the MediaStream is not supported.
Also, it seems that keeping a buffer of the most recent blobs from MediaRecorder doesn't work, due to the spec stating that
> When multiple Blobs are returned (because of timeslice or requestData()), the individual Blobs need not be playable, but the combination of all the Blobs from a completed recording MUST be playable.

What do you think of supporting this scenario, or is there an interface I'm missing? Thank you!

-- 
GitHub Notification of comment by embirico
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/327#issuecomment-398278465 using your GitHub account
Received on Tuesday, 19 June 2018 05:28:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:27:33 UTC