Video-Link-Gallery

plugin banner

Video-Gallery defined by shortcodes for youtube, vimeo and direct links, opening videos in a lightbox (default-lightbox: "PhotoSwipe")

Author:Martin Bergann (profile at wordpress.org)
WordPress version required:4.7
WordPress version tested:5.3.8
Plugin version:1.0.2
Added to WordPress repository:25-02-2020
Last updated:25-02-2020
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:https://www.coderey.de/wordpress-plugins/vide...
Total downloads:1 276
plugin download
Click to start download

This plugin creates a video-gallery for youtube- or vimeo-videos or direct video-file-links by simply defining the gallery with shortcodes.
The Videos will be opened in a lightbox.

By default the “PhotoSwipe“-Lightbox of Dmitry Semenov is used.
(at the moment it is the only one)

This plugin is really simple and clean designed to be easily extendable.
* there is a “src/VideoProvider”-directory where every Video-Platform (like youtube or vimeo) is defined in an own php-class implementing a class-interface.
* there is a “src/Lightbox”-directory where every lightbox is defined in an own php-class, implementing a class-interface
* there is a “src/Shortcodes”-directory where the “[video-gallery]”-Shortcode is defined – that is where the magic happenes – but there is no need to edit this file.

Parameters and video-provider-specific specials

All parameters – general parameters and also video-provider-specific parameters are set directly in the [[video-gallery]]-Shortcode.

general

parameter
description
default

lightbox
name of the lightbox-class that should be used
PhotoSwipe

Youtube

parameter
description
default

yt_nocookie
use youtube-nocookie.com instead of youtube.com in video-links to be GDPR(DSGVO)-save
true

Vimeo

In vimeo the preview-image-URL doesn’t use the video-ID – so you need to make an API-request to get the image-URL.
In this API-call we also get the original title of the video.
For this reason we need the php CURL extension.
The thumbnail will be taken from the API-response.
When no manual video-title is defined, the video-provider-class uses also the original video-title from API-response automaticly.

Extending the Plugin

You can easily extend the Plugin by writing your own classes for Video-Platforms or other Lightboxes – you just have to implement the Interfaces.


Screenshots
FAQ
ChangeLog