diff --git a/dist/lightgallery.es5.js b/dist/lightgallery.es5.js index 1e81493cc..3315250d0 100644 --- a/dist/lightgallery.es5.js +++ b/dist/lightgallery.es5.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/lightgallery.min.js b/dist/lightgallery.min.js index 456034ec3..c8ebbeaf4 100644 --- a/dist/lightgallery.min.js +++ b/dist/lightgallery.min.js @@ -1,5 +1,5 @@ /** - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/lightgallery.umd.js b/dist/lightgallery.umd.js index 672a86a36..8672b8833 100644 --- a/dist/lightgallery.umd.js +++ b/dist/lightgallery.umd.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/autoplay/lg-autoplay.es5.js b/dist/plugins/autoplay/lg-autoplay.es5.js index 72eeb256d..7ee7da982 100644 --- a/dist/plugins/autoplay/lg-autoplay.es5.js +++ b/dist/plugins/autoplay/lg-autoplay.es5.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/autoplay/lg-autoplay.min.js b/dist/plugins/autoplay/lg-autoplay.min.js index 7d3a81a9f..7e813a9cd 100644 --- a/dist/plugins/autoplay/lg-autoplay.min.js +++ b/dist/plugins/autoplay/lg-autoplay.min.js @@ -1,5 +1,5 @@ /** - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/autoplay/lg-autoplay.umd.js b/dist/plugins/autoplay/lg-autoplay.umd.js index 89bd502b8..abdf37f6b 100644 --- a/dist/plugins/autoplay/lg-autoplay.umd.js +++ b/dist/plugins/autoplay/lg-autoplay.umd.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/comment/lg-comment.es5.js b/dist/plugins/comment/lg-comment.es5.js index bb2df4ae0..dfdba4945 100644 --- a/dist/plugins/comment/lg-comment.es5.js +++ b/dist/plugins/comment/lg-comment.es5.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/comment/lg-comment.min.js b/dist/plugins/comment/lg-comment.min.js index 6b94cd6ca..28564d439 100644 --- a/dist/plugins/comment/lg-comment.min.js +++ b/dist/plugins/comment/lg-comment.min.js @@ -1,5 +1,5 @@ /** - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/comment/lg-comment.umd.js b/dist/plugins/comment/lg-comment.umd.js index efb4e8ca9..03311f134 100644 --- a/dist/plugins/comment/lg-comment.umd.js +++ b/dist/plugins/comment/lg-comment.umd.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/fullscreen/lg-fullscreen.es5.js b/dist/plugins/fullscreen/lg-fullscreen.es5.js index a5a775bd6..809422c37 100644 --- a/dist/plugins/fullscreen/lg-fullscreen.es5.js +++ b/dist/plugins/fullscreen/lg-fullscreen.es5.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/fullscreen/lg-fullscreen.min.js b/dist/plugins/fullscreen/lg-fullscreen.min.js index 633938573..3633272e4 100644 --- a/dist/plugins/fullscreen/lg-fullscreen.min.js +++ b/dist/plugins/fullscreen/lg-fullscreen.min.js @@ -1,5 +1,5 @@ /** - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/fullscreen/lg-fullscreen.umd.js b/dist/plugins/fullscreen/lg-fullscreen.umd.js index 7fc531bd1..ef6d84bb7 100644 --- a/dist/plugins/fullscreen/lg-fullscreen.umd.js +++ b/dist/plugins/fullscreen/lg-fullscreen.umd.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/hash/lg-hash.es5.js b/dist/plugins/hash/lg-hash.es5.js index f06ad9012..e62364e97 100644 --- a/dist/plugins/hash/lg-hash.es5.js +++ b/dist/plugins/hash/lg-hash.es5.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/hash/lg-hash.min.js b/dist/plugins/hash/lg-hash.min.js index 3fa924431..c668e1e6b 100644 --- a/dist/plugins/hash/lg-hash.min.js +++ b/dist/plugins/hash/lg-hash.min.js @@ -1,5 +1,5 @@ /** - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/hash/lg-hash.umd.js b/dist/plugins/hash/lg-hash.umd.js index c7fdbf38f..34a002bf5 100644 --- a/dist/plugins/hash/lg-hash.umd.js +++ b/dist/plugins/hash/lg-hash.umd.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/mediumZoom/lg-medium-zoom.es5.js b/dist/plugins/mediumZoom/lg-medium-zoom.es5.js index 53c681f1d..8ba1ffe21 100644 --- a/dist/plugins/mediumZoom/lg-medium-zoom.es5.js +++ b/dist/plugins/mediumZoom/lg-medium-zoom.es5.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/mediumZoom/lg-medium-zoom.min.js b/dist/plugins/mediumZoom/lg-medium-zoom.min.js index 936ffc8b6..30b9eb4d9 100644 --- a/dist/plugins/mediumZoom/lg-medium-zoom.min.js +++ b/dist/plugins/mediumZoom/lg-medium-zoom.min.js @@ -1,5 +1,5 @@ /** - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/mediumZoom/lg-medium-zoom.umd.js b/dist/plugins/mediumZoom/lg-medium-zoom.umd.js index 5166e0718..cd5387be0 100644 --- a/dist/plugins/mediumZoom/lg-medium-zoom.umd.js +++ b/dist/plugins/mediumZoom/lg-medium-zoom.umd.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/pager/lg-pager.es5.js b/dist/plugins/pager/lg-pager.es5.js index 6f650e99e..86d5905e2 100644 --- a/dist/plugins/pager/lg-pager.es5.js +++ b/dist/plugins/pager/lg-pager.es5.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/pager/lg-pager.min.js b/dist/plugins/pager/lg-pager.min.js index ef7a43508..6718ad1c2 100644 --- a/dist/plugins/pager/lg-pager.min.js +++ b/dist/plugins/pager/lg-pager.min.js @@ -1,5 +1,5 @@ /** - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/pager/lg-pager.umd.js b/dist/plugins/pager/lg-pager.umd.js index 19a0e8502..0672e7997 100644 --- a/dist/plugins/pager/lg-pager.umd.js +++ b/dist/plugins/pager/lg-pager.umd.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/relativeCaption/lg-relative-caption.es5.js b/dist/plugins/relativeCaption/lg-relative-caption.es5.js index c9f3e7b8d..38a1b7661 100644 --- a/dist/plugins/relativeCaption/lg-relative-caption.es5.js +++ b/dist/plugins/relativeCaption/lg-relative-caption.es5.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/relativeCaption/lg-relative-caption.min.js b/dist/plugins/relativeCaption/lg-relative-caption.min.js index ed304bb54..da3b8ccdd 100644 --- a/dist/plugins/relativeCaption/lg-relative-caption.min.js +++ b/dist/plugins/relativeCaption/lg-relative-caption.min.js @@ -1,5 +1,5 @@ /** - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/relativeCaption/lg-relative-caption.umd.js b/dist/plugins/relativeCaption/lg-relative-caption.umd.js index b45147071..859444088 100644 --- a/dist/plugins/relativeCaption/lg-relative-caption.umd.js +++ b/dist/plugins/relativeCaption/lg-relative-caption.umd.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/rotate/lg-rotate.es5.js b/dist/plugins/rotate/lg-rotate.es5.js index 2c03a9df0..761ff5c14 100644 --- a/dist/plugins/rotate/lg-rotate.es5.js +++ b/dist/plugins/rotate/lg-rotate.es5.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/rotate/lg-rotate.min.js b/dist/plugins/rotate/lg-rotate.min.js index 05d8690db..20df5dd47 100644 --- a/dist/plugins/rotate/lg-rotate.min.js +++ b/dist/plugins/rotate/lg-rotate.min.js @@ -1,5 +1,5 @@ /** - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/rotate/lg-rotate.umd.js b/dist/plugins/rotate/lg-rotate.umd.js index ac3ec0cbf..deccf0f7e 100644 --- a/dist/plugins/rotate/lg-rotate.umd.js +++ b/dist/plugins/rotate/lg-rotate.umd.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/share/lg-share.es5.js b/dist/plugins/share/lg-share.es5.js index f47491554..3821b7316 100644 --- a/dist/plugins/share/lg-share.es5.js +++ b/dist/plugins/share/lg-share.es5.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/share/lg-share.min.js b/dist/plugins/share/lg-share.min.js index 481ec0603..a9b605d85 100644 --- a/dist/plugins/share/lg-share.min.js +++ b/dist/plugins/share/lg-share.min.js @@ -1,5 +1,5 @@ /** - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/share/lg-share.umd.js b/dist/plugins/share/lg-share.umd.js index 97ad59c11..c9917c4fe 100644 --- a/dist/plugins/share/lg-share.umd.js +++ b/dist/plugins/share/lg-share.umd.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/thumbnail/lg-thumbnail.es5.js b/dist/plugins/thumbnail/lg-thumbnail.es5.js index 8477f85a3..7433975f4 100644 --- a/dist/plugins/thumbnail/lg-thumbnail.es5.js +++ b/dist/plugins/thumbnail/lg-thumbnail.es5.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/thumbnail/lg-thumbnail.min.js b/dist/plugins/thumbnail/lg-thumbnail.min.js index a1712300b..3ba503c38 100644 --- a/dist/plugins/thumbnail/lg-thumbnail.min.js +++ b/dist/plugins/thumbnail/lg-thumbnail.min.js @@ -1,5 +1,5 @@ /** - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/thumbnail/lg-thumbnail.umd.js b/dist/plugins/thumbnail/lg-thumbnail.umd.js index 1699eebb1..b04c1a1af 100644 --- a/dist/plugins/thumbnail/lg-thumbnail.umd.js +++ b/dist/plugins/thumbnail/lg-thumbnail.umd.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/video/lg-video.es5.js b/dist/plugins/video/lg-video.es5.js index ffcb7b1aa..e1716429e 100644 --- a/dist/plugins/video/lg-video.es5.js +++ b/dist/plugins/video/lg-video.es5.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 @@ -39,6 +39,7 @@ var videoSettings = { gotoNextSlideOnVideoEnd: true, autoplayVideoOnSlide: false, videojs: false, + videojsTheme: '', videojsOptions: {}, }; @@ -316,7 +317,9 @@ var Video = /** @class */ (function () { Object.keys(videoAttributes_1 || {}).forEach(function (key) { html5VideoAttrs_1 += key + "=\"" + videoAttributes_1[key] + "\" "; }); - video = ""; + video = ""; } return video; }; diff --git a/dist/plugins/video/lg-video.min.js b/dist/plugins/video/lg-video.min.js index 2ff5a2a18..1cebab72e 100644 --- a/dist/plugins/video/lg-video.min.js +++ b/dist/plugins/video/lg-video.min.js @@ -1,8 +1,8 @@ /** - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 */ -!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e="undefined"!=typeof globalThis?globalThis:e||self).lgVideo=o()}(this,(function(){"use strict";var e=function(){return(e=Object.assign||function(e){for(var o,i=1,t=arguments.length;i"}else if(n.vimeo){c="lg-vimeo"+i,u=function(e,o){if(!o||!o.vimeo)return"";var i=o.vimeo[2]||"",t=e&&0!==Object.keys(e).length?"&"+r(e):"",s=((o.vimeo[0].split("/").pop()||"").split("?")[0]||"").split("#")[0],n=o.vimeo[1]!==s;return n&&(i=i.replace("/"+s,"")),"?autoplay=0&muted=1"+(n?"&h="+s:"")+t+("?"==i[0]?"&"+i.slice(1):i||"")}(this.settings.vimeoPlayerParams,n);s='"}else if(n.wistia){var f="lg-wistia"+i;u=(u=r(this.settings.wistiaPlayerParams))?"?"+u:"",s='"}else if(n.html5){for(var h="",y=0;y';if(t.tracks){var g=function(e){var o="",i=t.tracks[e];Object.keys(i||{}).forEach((function(e){o+=e+'="'+i[e]+'" '})),h+=""};for(y=0;y\n "+h+"\n Your browser does not support HTML5 video.\n "}return s},d.prototype.appendVideos=function(e,o){var i,t=this.getVideoHtml(o.src,o.addClass,o.index,o.html5Video);e.find(".lg-video-cont").append(t);var s=e.find(".lg-video-object").first();if(o.html5Video&&s.on("mousedown.lg.video",(function(e){e.stopPropagation()})),this.settings.videojs&&(null===(i=this.core.galleryItems[o.index].__slideVideoInfo)||void 0===i?void 0:i.html5))try{return videojs(s.get(),this.settings.videojsOptions)}catch(e){console.error("lightGallery:- Make sure you have included videojs")}},d.prototype.gotoNextSlideOnVideoEnd=function(e,o){var i=this,t=this.core.getSlideItem(o).find(".lg-video-object").first(),s=this.core.galleryItems[o].__slideVideoInfo||{};if(this.settings.gotoNextSlideOnVideoEnd)if(s.html5)t.on("ended",(function(){i.core.goToNextSlide()}));else if(s.vimeo)try{new Vimeo.Player(t.get()).on("ended",(function(){i.core.goToNextSlide()}))}catch(e){console.error("lightGallery:- Make sure you have included //github.com/vimeo/player.js")}else if(s.wistia)try{window._wq=window._wq||[],window._wq.push({id:t.attr("id"),onReady:function(e){e.bind("end",(function(){i.core.goToNextSlide()}))}})}catch(e){console.error("lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}},d.prototype.controlVideo=function(e,o){var i=this.core.getSlideItem(e).find(".lg-video-object").first(),t=this.core.galleryItems[e].__slideVideoInfo||{};if(i.get())if(t.youtube)try{i.get().contentWindow.postMessage('{"event":"command","func":"'+o+'Video","args":""}',"*")}catch(e){console.error("lightGallery:- "+e)}else if(t.vimeo)try{new Vimeo.Player(i.get())[o]()}catch(e){console.error("lightGallery:- Make sure you have included //github.com/vimeo/player.js")}else if(t.html5)if(this.settings.videojs)try{videojs(i.get())[o]()}catch(e){console.error("lightGallery:- Make sure you have included videojs")}else i.get()[o]();else if(t.wistia)try{window._wq=window._wq||[],window._wq.push({id:i.attr("id"),onReady:function(e){e[o]()}})}catch(e){console.error("lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}},d.prototype.loadVideoOnPosterClick=function(e,o){var i=this;if(e.hasClass("lg-video-loaded"))o&&this.playVideo(this.core.index);else if(e.hasClass("lg-has-video"))this.playVideo(this.core.index);else{e.addClass("lg-has-video");var t=void 0,s=this.core.galleryItems[this.core.index].src,n=this.core.galleryItems[this.core.index].video;n&&(t="string"==typeof n?JSON.parse(n):n);var l=this.appendVideos(e,{src:s,addClass:"",index:this.core.index,html5Video:t});this.gotoNextSlideOnVideoEnd(s,this.core.index);var r=e.find(".lg-object").first().get();e.find(".lg-video-cont").first().append(r),e.addClass("lg-video-loading"),l&&l.ready((function(){l.on("loadedmetadata",(function(){i.onVideoLoadAfterPosterClick(e,i.core.index)}))})),e.find(".lg-video-object").first().on("load.lg error.lg loadedmetadata.lg",(function(){setTimeout((function(){i.onVideoLoadAfterPosterClick(e,i.core.index)}),50)}))}},d.prototype.onVideoLoadAfterPosterClick=function(e,o){e.addClass("lg-video-loaded"),this.playVideo(o)},d.prototype.destroy=function(){this.core.LGel.off(".lg.video"),this.core.LGel.off(".video")},d}()})); +!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e="undefined"!=typeof globalThis?globalThis:e||self).lgVideo=o()}(this,(function(){"use strict";var e=function(){return(e=Object.assign||function(e){for(var o,i=1,t=arguments.length;i"}else if(n.vimeo){c="lg-vimeo"+i,u=function(e,o){if(!o||!o.vimeo)return"";var i=o.vimeo[2]||"",t=e&&0!==Object.keys(e).length?"&"+r(e):"",s=((o.vimeo[0].split("/").pop()||"").split("?")[0]||"").split("#")[0],n=o.vimeo[1]!==s;return n&&(i=i.replace("/"+s,"")),"?autoplay=0&muted=1"+(n?"&h="+s:"")+t+("?"==i[0]?"&"+i.slice(1):i||"")}(this.settings.vimeoPlayerParams,n);s='"}else if(n.wistia){var h="lg-wistia"+i;u=(u=r(this.settings.wistiaPlayerParams))?"?"+u:"",s='"}else if(n.html5){for(var f="",g=0;g';if(t.tracks){var y=function(e){var o="",i=t.tracks[e];Object.keys(i||{}).forEach((function(e){o+=e+'="'+i[e]+'" '})),f+=""};for(g=0;g\n "+f+"\n Your browser does not support HTML5 video.\n "}return s},d.prototype.appendVideos=function(e,o){var i,t=this.getVideoHtml(o.src,o.addClass,o.index,o.html5Video);e.find(".lg-video-cont").append(t);var s=e.find(".lg-video-object").first();if(o.html5Video&&s.on("mousedown.lg.video",(function(e){e.stopPropagation()})),this.settings.videojs&&(null===(i=this.core.galleryItems[o.index].__slideVideoInfo)||void 0===i?void 0:i.html5))try{return videojs(s.get(),this.settings.videojsOptions)}catch(e){console.error("lightGallery:- Make sure you have included videojs")}},d.prototype.gotoNextSlideOnVideoEnd=function(e,o){var i=this,t=this.core.getSlideItem(o).find(".lg-video-object").first(),s=this.core.galleryItems[o].__slideVideoInfo||{};if(this.settings.gotoNextSlideOnVideoEnd)if(s.html5)t.on("ended",(function(){i.core.goToNextSlide()}));else if(s.vimeo)try{new Vimeo.Player(t.get()).on("ended",(function(){i.core.goToNextSlide()}))}catch(e){console.error("lightGallery:- Make sure you have included //github.com/vimeo/player.js")}else if(s.wistia)try{window._wq=window._wq||[],window._wq.push({id:t.attr("id"),onReady:function(e){e.bind("end",(function(){i.core.goToNextSlide()}))}})}catch(e){console.error("lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}},d.prototype.controlVideo=function(e,o){var i=this.core.getSlideItem(e).find(".lg-video-object").first(),t=this.core.galleryItems[e].__slideVideoInfo||{};if(i.get())if(t.youtube)try{i.get().contentWindow.postMessage('{"event":"command","func":"'+o+'Video","args":""}',"*")}catch(e){console.error("lightGallery:- "+e)}else if(t.vimeo)try{new Vimeo.Player(i.get())[o]()}catch(e){console.error("lightGallery:- Make sure you have included //github.com/vimeo/player.js")}else if(t.html5)if(this.settings.videojs)try{videojs(i.get())[o]()}catch(e){console.error("lightGallery:- Make sure you have included videojs")}else i.get()[o]();else if(t.wistia)try{window._wq=window._wq||[],window._wq.push({id:i.attr("id"),onReady:function(e){e[o]()}})}catch(e){console.error("lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}},d.prototype.loadVideoOnPosterClick=function(e,o){var i=this;if(e.hasClass("lg-video-loaded"))o&&this.playVideo(this.core.index);else if(e.hasClass("lg-has-video"))this.playVideo(this.core.index);else{e.addClass("lg-has-video");var t=void 0,s=this.core.galleryItems[this.core.index].src,n=this.core.galleryItems[this.core.index].video;n&&(t="string"==typeof n?JSON.parse(n):n);var l=this.appendVideos(e,{src:s,addClass:"",index:this.core.index,html5Video:t});this.gotoNextSlideOnVideoEnd(s,this.core.index);var r=e.find(".lg-object").first().get();e.find(".lg-video-cont").first().append(r),e.addClass("lg-video-loading"),l&&l.ready((function(){l.on("loadedmetadata",(function(){i.onVideoLoadAfterPosterClick(e,i.core.index)}))})),e.find(".lg-video-object").first().on("load.lg error.lg loadedmetadata.lg",(function(){setTimeout((function(){i.onVideoLoadAfterPosterClick(e,i.core.index)}),50)}))}},d.prototype.onVideoLoadAfterPosterClick=function(e,o){e.addClass("lg-video-loaded"),this.playVideo(o)},d.prototype.destroy=function(){this.core.LGel.off(".lg.video"),this.core.LGel.off(".video")},d}()})); diff --git a/dist/plugins/video/lg-video.umd.js b/dist/plugins/video/lg-video.umd.js index 725d7eb7e..42f28c125 100644 --- a/dist/plugins/video/lg-video.umd.js +++ b/dist/plugins/video/lg-video.umd.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 @@ -45,6 +45,7 @@ gotoNextSlideOnVideoEnd: true, autoplayVideoOnSlide: false, videojs: false, + videojsTheme: '', videojsOptions: {}, }; @@ -322,7 +323,9 @@ Object.keys(videoAttributes_1 || {}).forEach(function (key) { html5VideoAttrs_1 += key + "=\"" + videoAttributes_1[key] + "\" "; }); - video = ""; + video = ""; } return video; }; diff --git a/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js b/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js index a8ca9afe5..fee10e75a 100644 --- a/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js +++ b/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.min.js b/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.min.js index cc75e9967..98d3afab6 100644 --- a/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.min.js +++ b/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.min.js @@ -1,5 +1,5 @@ /** - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js b/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js index a622c954b..0aec757a0 100644 --- a/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js +++ b/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/zoom/lg-zoom.es5.js b/dist/plugins/zoom/lg-zoom.es5.js index 7fb5eb03a..0b8e31af3 100644 --- a/dist/plugins/zoom/lg-zoom.es5.js +++ b/dist/plugins/zoom/lg-zoom.es5.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/zoom/lg-zoom.min.js b/dist/plugins/zoom/lg-zoom.min.js index 62c54d111..a47a5393a 100644 --- a/dist/plugins/zoom/lg-zoom.min.js +++ b/dist/plugins/zoom/lg-zoom.min.js @@ -1,5 +1,5 @@ /** - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/dist/plugins/zoom/lg-zoom.umd.js b/dist/plugins/zoom/lg-zoom.umd.js index 408a868e7..0b40b323e 100644 --- a/dist/plugins/zoom/lg-zoom.umd.js +++ b/dist/plugins/zoom/lg-zoom.umd.js @@ -1,5 +1,5 @@ /*! - * lightgallery | 2.5.0-beta.1 | February 24th 2022 + * lightgallery | 2.5.0-beta.2 | March 6th 2022 * http://www.lightgalleryjs.com/ * Copyright (c) 2020 Sachin Neravath; * @license GPLv3 diff --git a/package.json b/package.json index 4c9dda35a..cbd4b5543 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lightgallery", - "version": "2.5.0-beta.1", + "version": "2.5.0-beta.2", "description": "lightGallery is a feature-rich, modular JavaScript gallery plugin for building beautiful image and video galleries for the web and the mobile", "keywords": [ "JavaScript",