nanostudio-org / nanogallery2

a modern photo / video gallery and lightbox [JS library]
https://nanogallery2.nanostudio.org
760 stars 112 forks source link

GIFV / mp4 support #324

Open yeupou opened 3 years ago

yeupou commented 3 years ago

A few platforms like tumblr or mastodon now support some alternative to animated GIF in the form or a specific mp4 (sometimes referred to as GIFV).

nanogallery2 already supports mp4 but it does not behave as you would expect from a GIF/GIFV, it load a classic video player instead of simply displaying the video in a loop.

Any plans regarding this, or is there maybe some option I missed?

Regards,

Kris-B commented 3 years ago

From my understanding, GIFV files have a .mp4 extension. MP4 files are videos and as such are displayed with the browser video player.

Would you expect MP4 files to be displayed without any control, so it would look like animated GIF?

philipstratford commented 3 years ago

Would you expect MP4 files to be displayed without any control, so it would look like animated GIF?

As long as this is optional - I very much need MP4s to continue to show controls!

DannyBen commented 2 years ago

I am also curious about this, and if there is a way to do it now.

Using a self hosted mp4, it would help if we can control its video tag - specifically, to ask it to have no controls, be muted and autoplay (since autoplay only works when muted).

If this is not possible now, is it possible to specify custom HTML instead of an image/video link?

Possible? I have seen a couple of issues mentioning autoplay, but they are closed without a solution