-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileWriter from Chrome extension #19
Comments
You can use File System Access API https://wicg.github.io/file-system-access/ in an extension. What are you trying to achieve? |
@guest271314 Can I generate a Do I have to pass a LockedFile.fileHandle as 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 running User action is required for In pertinent part
|
Instead of creating a new
|
Tested running this code https://plnkr.co/edit/Inb676?preview at localhost, with only 4 seconds of data. |
Maybe puppeteer can handle it? |
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 would be to take a series of screenshot in headless mode (Puppeteer) and when each screen shot is saved locally use Are you essentially trying to capture videos of remote sites programmatically at command line, without a GUI? What is the goal of the project? |
Cloud rendering for a video creator app. Sure, image sequence to video is an option, but not very optimized in terms of hard drive usage. |
webm-writer is not "optimized" for hard drive usage either. Compare resulting file size of 5 seconds of recordings from Since the application is online you can just use Why is a Chrome extension necessary to run create a video using multiple images? |
Note, Otherwise, as stated above, the prompt user for filesystem access, then write directly to the file at the website, no cloud necessary. |
@nuthinking In this case, where the browser is Chrome, File System Access API can be utilized directly in the browser to write one or more files or directories as webm-writer dynamically produces the output data without need for an extension or puppeteer. Any working code that you have can be included in a Chrome extension. An HTML page can be created for the extension, e.g., https://github.com/guest271314/native-messaging-mkvmerge. I am not sure why the Storage API is necessary? While Chrome Apps are deprecated, AFAIK Chrome extensions and Native Messaging are not slated for deprecation, where you can run nodejs, puppeteer, shell scripts, native applications. In this case an extension does not appear to be strictly necessary to achieve the requirement, though you can automate the process. |
@guest271314 I didn't know |
@nuthinking Willing to help where able when have the time. |
Will write to your gmail, thanks! |
Does the code at #19 (comment) resolve the issue? |
@guest271314 not yet, I will try and let you know. Thanks! 🙌 |
@nuthinking No worries. |
I'm trying to figure out if I can use webm-writer with a FileWriter using a chrome extension and puppeteer, but it looks like only Chrome apps can in fact use the Storage API, not an extension as mentioned in the Readme.md.
I currently have a web app that when running in Electron it leverages the filesystem to record videos. I'm trying to figure out how I could bring the rendering to the cloud. Thanks!
The text was updated successfully, but these errors were encountered: