You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: Add muted, loop, and controls as options in video_file() #444
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.
Activity
thomasp85 commentedon Sep 5, 2023
The switch resides in
as_html_video()- do you envision the other features to be there as well?mccarthy-m-g commentedon Sep 5, 2023
Yeah, I think they would make sense there too
Fix thomasp85#444