torchbox / wagtailmedia

A Wagtail module for managing video and audio files within the admin
https://pypi.org/project/wagtailmedia/
BSD 3-Clause "New" or "Revised" License
224 stars 70 forks source link

Feature Request: Video Attributes #209

Open cesaregarza opened 1 year ago

cesaregarza commented 1 year ago

wagtailmedia has been excellent to use and I'm a huge fan, the only thing I'm yearning for a little bit is the ability to specify attributes. Rather than using gifs, I've been using H264/Webm videos to display animations created with manim. However, the lack of ability to specify loop directly is a minor inconvenience. I figured I'd put this feature request in as it might be helpful to others as well. Thanks for the awesome extension!

zerolab commented 1 year ago

@cesaregarza it would be great to get a sense of how you're using it. The only place we're prescriptive, is in the VideoChooserBlock (https://github.com/torchbox/wagtailmedia/blob/0de54364fced110c3a8255bbb8e7e40bb652cccf/src/wagtailmedia/blocks.py#L124-L131)

You can define your own chooser block that extends VideoChooserBlock and overrides render_basic with whatever your would like.

How do you envision specifying the attributes?