guest271314

Results 602 comments of guest271314

See https://github.com/davedoesdev/webm-muxer.js.

[WHATWG File System](https://fs.spec.whatwg.org/) is now implemented in Chromium (Chrome), Firefox, Safari, which unlike WICG File System Access which writes directly to user-selected directories and files, writes `File` objects to the...

You can utilize [`ts-ebml`](https://github.com/legokichi/ts-ebml), e.g., see https://github.com/guest271314/MediaFragmentRecorder/issues/8#issuecomment-520281126.

@bevand10 The resulting .webm files has issues: No frames appear to be written. Are you sure WebCodecs implementation of VP8 and VP9 are consistent with what is expected per Matroska...

You can pass the `Blob` from `convertToBlob()` to `FileReader` or `FileReaderSync` `readAsDataURL()`, then pass the `data URL` to `addFrame()` ``` (async _ => { const osc = new OffscreenCanvas(1,1); const...

You can use File System Access API https://wicg.github.io/file-system-access/ in an extension. What are you trying to achieve?

> I want WebMWrite to save the file as it has been recorded to optimize RAM consumption. Imagine a very long recording. I did a storage quota error message before...

Instead of creating a new `Blob` using the constructor, which can reside in memory (https://stackoverflow.com/a/56419176), we can write `newEntry.data` directly `return Promise.all([writer.write(newEntry.data), writer]);`

Tested running this code https://plnkr.co/edit/Inb676?preview at localhost, with only 4 seconds of data.

You can try. If not file an issue for that capability. Note, technically it is possible to read files written to disk written by FileSystem API https://stackoverflow.com/a/36098618. An alterative approach...