• Resolved Tommy

    (@baptistej)


    Hello,

    Since Gutenberg, we can add videos in posts that look like gifs (autoplay, loop, muted, playinline, no controls)

    I think it will be nice to have an option to show these videos in the lightbox with other photos when these attribute are enabled.

    Let me know what you think of the idea.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Arno Welzel

    (@awelzel)

    What exactly do you mean with “add videos that look like gifs”? You can insert GIF images (which also may contain an animation). GIF images are already supported – just use them.

    The plugin uses links to images. In fact you don’t even need a visible image – only the link matters, as in this example:

    https://wordpress-demo.arnowelzel.de/lightbox-with-photoswipe-external-images/

    See the “Click here to open the image.” link.

    So what exactly do you want? Having a GIF in the page which links to the video and then play the video in the lightbox?

    Well – PhotoSwipe does not support playing videos and this also makes little sense since videos can be embedded already to WordPress and usally also provide a fullscreen view.

    • This reply was modified 3 years, 1 month ago by Arno Welzel.
    • This reply was modified 3 years, 1 month ago by Arno Welzel.
    Thread Starter Tommy

    (@baptistej)

    I mean videos that are looped without controls, it is often used to replace gif as mp4 files are way smaller than gifs. Gutenberg have the options to do this with any videos.

    Example:
    https://www.dannyguo.com/blog/serve-videos-instead-of-gifs/#serving-videos

    The website GYPHY is also using this instead of real gif.

    Personally it will allow me to embed more content in my post since they are way smaller and I think it will just be perfect if we could swipe between these videos in the Lightbox just like they are real GIFS.

    Plugin Author Arno Welzel

    (@awelzel)

    Well – as I already explained: Adding this would require a lot of work as Photoswipe can not display videos at all. It is just not possible to display a video in the lightbox.

    Plugin Author Arno Welzel

    (@awelzel)

    Another thing: you can not link a video like an image. So this will not work at all:

    <a href="dancing-baby-big.mp4">
        <video autoplay loop muted playsinline>
            <source src="dancing-baby.webm" type="video/webm">
            <source src="dancing-baby.mp4" type="video/mp4">
            <p>Your browser doesn't support this embedded video.</p>
        </video>
    </a>

    Also the link can only link to one file and not choose automatically if MP4 or WEBM needs to be used depending on whatever the browser supports.

    So the whole idea makes no sense at all.

    • This reply was modified 3 years, 1 month ago by Arno Welzel.
    Thread Starter Tommy

    (@baptistej)

    The idea makes sense for me.

    I did not know it was to much work to implement.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Video support’ is closed to new replies.