Support for embedded Youtube and Vimeo videos is available in latest release Files Gallery 0.8.0.
[See demo]
Instructions
Simply create a shortcut file linkname.url
and populate it with a link to the Youtube or Vimeo video. Example:
[InternetShortcut]
URL=https://www.youtube.com/watch?v=8jT9ygmMvMg
Advanced Config
You can modify options from _files/js/custom.js
.
www.files.gallery/docs/javascript-config/
_c.config = {
embed: {
// disable entirely / will work like normal .url file
enabled: true,
// Youtube enabled
youtube: true,
// Vimeo enabled
vimeo: true,
// load preview image into layout
preview: true,
// display video in files modal on click
modal: true,
// add optional parameters to the embeded player:
params: 'autoplay=1&modestbranding=1',
}
}