-
Notifications
You must be signed in to change notification settings - Fork 884
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
Support taking video screenshots outside of Electron #6399
Conversation
VirtualBoxVM_P2ZaLZe4CD.mp4
|
Ah great, looks like just after I submitted this PR, all Invidious instances switched to blocking cross-origin requests: (CORS column on this page: https://api.invidious.io/). |
instance doesnt seem to work for me as im getting the same error |
If an Invidious instance is working, it's probably using iv-org/invidious#4985 which doesn't support proxying urls through the API so it will be almost impossible to test the web build at this time. I'll approve this since the electron build is working. Related: |
Support taking video screenshots outside of Electron
Pull Request Type
Description
At the moment taking video screenshots is a feature exclusive to the Electron build of FreeTube, which means that it is not usuable in the FreeTubeAndroid fork. This limitation is not so much an intentional limitation but more so because the existing implementation relied heavily on Node.js and Electron APIs.
This pull request add support for taking screenshots with prompting for the save location outside of Electron. I don't have access to a FreeTubeAndroid compatible device to test this but hopefully it should work, as it uses the same prompt and save function as the data export. Saving to a specific folder is not supported outside of Electron as writing files without prompting the user requires more power than the web APIs offer and would require changes to FreeTubeAndroid's Kotlin code to replicate what we do with the Electron and Node.js APIs.
Notable changes:
Saved screenshot
toast no longer shows the file path where the image was saved.Testing
Test that taking screenshots with the prompt for save path setting enabled works in both Electron and in Firefox (or FreeTubeAndroid if you have a compatible devices).
Also test that I didn't break saving to the default folder in Electron.
Desktop