Skip to content

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

Closed

Description

@mccarthy-m-g

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

  1. thomasp85 commented on Sep 5, 2023

    @thomasp85
    Owner

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

  2. mccarthy-m-g commented on Sep 5, 2023

    @mccarthy-m-g
    Author

    Yeah, I think they would make sense there too

  3. added a commit that references this issue on Feb 15, 2025
    108b40b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions