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

Feature request: Add muted, loop, and controls as options in video_file() #444

Closed
mccarthy-m-g opened this issue Jun 23, 2021 · 2 comments
Closed

Comments

@mccarthy-m-g
Copy link

Autoplay is currently switchable in video_file(), but muted, loop, and controls are not. Adding these switches would allow users to include videos in HTML documents that behave like GIFs by using a video tag with autoplay, muted, and loop, but no controls.

The main benefit of this is that videos tend to be much smaller and of higher quality than a GIF of the same content, which would be useful for users sharing their animations on the web. This article has some interesting history and discussion on the topic, noting that videos masquerading as GIFs are commonplace on the web now.

@thomasp85
Copy link
Owner

The switch resides in as_html_video() - do you envision the other features to be there as well?

@mccarthy-m-g
Copy link
Author

Yeah, I think they would make sense there too

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

No branches or pull requests

2 participants