Skip to content
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

Add timelapse preview to file browser #669

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

ssendev
Copy link

@ssendev ssendev commented Jan 16, 2021

Implementation copied from

https://github.com/OctoPrint/OctoPrint/blob/f67c15a9a47794a68be9aed4f2d5a12a87e70179/src/octoprint/static/js/app/viewmodels/timelapse.js#L308-L318

https://github.com/OctoPrint/OctoPrint/blob/f67c15a9a47794a68be9aed4f2d5a12a87e70179/src/octoprint/templates/dialogs/timelapse.jinja2

There were some access checks in the original file browser which the download in Octolapse didn't have so i didn't add one to the preview

also there were quite some variations for function() { so i choose my preferred style

@FormerLurker
Copy link
Owner

Cool! I will check this out asap.

@FormerLurker
Copy link
Owner

Question: What formats does the player support? I see you have reused the OctoPrint player template, which isn't working for the default video type for me (.mp4) for some reason.

@ssendev
Copy link
Author

ssendev commented Jan 18, 2021

It depends on your browser H264 is supported by most

@mawoka-myblock
Copy link

It depends on your browser H264 is supported by most

https://caniuse.com/mpeg4

@FormerLurker
Copy link
Owner

I'm going to reexamine this PR ASAP. Working on a new release, so it's a good time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants