From ce82ed0ca6a5c015a9adcc5ffbc43402eb1b2e34 Mon Sep 17 00:00:00 2001 From: cyberwani Date: Sat, 12 May 2018 11:39:13 +0530 Subject: [PATCH 1/5] Version updated from source. --- js/jquery-modal-video.js | 2 +- js/jquery-modal-video.min.js | 2 +- js/modal-video.js | 2 +- js/modal-video.min.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/jquery-modal-video.js b/js/jquery-modal-video.js index dd1526d..f9c5f69 100644 --- a/js/jquery-modal-video.js +++ b/js/jquery-modal-video.js @@ -6,7 +6,7 @@ * license: appleple * author: appleple * homepage: http://developer.a-blogcms.jp - * version: 2.3.1 + * version: 2.3.2 * * custom-event-polyfill: * license: MIT (http://opensource.org/licenses/MIT) diff --git a/js/jquery-modal-video.min.js b/js/jquery-modal-video.min.js index 1a1e4f2..6d00df9 100644 --- a/js/jquery-modal-video.min.js +++ b/js/jquery-modal-video.min.js @@ -6,7 +6,7 @@ * license: appleple * author: appleple * homepage: http://developer.a-blogcms.jp - * version: 2.3.1 + * version: 2.3.2 * * custom-event-polyfill: * license: MIT (http://opensource.org/licenses/MIT) diff --git a/js/modal-video.js b/js/modal-video.js index 2ed2e4b..db18726 100644 --- a/js/modal-video.js +++ b/js/modal-video.js @@ -6,7 +6,7 @@ * license: appleple * author: appleple * homepage: http://developer.a-blogcms.jp - * version: 2.3.1 + * version: 2.3.2 * * custom-event-polyfill: * license: MIT (http://opensource.org/licenses/MIT) diff --git a/js/modal-video.min.js b/js/modal-video.min.js index fda3487..902e0f4 100644 --- a/js/modal-video.min.js +++ b/js/modal-video.min.js @@ -6,7 +6,7 @@ * license: appleple * author: appleple * homepage: http://developer.a-blogcms.jp - * version: 2.3.1 + * version: 2.3.2 * * custom-event-polyfill: * license: MIT (http://opensource.org/licenses/MIT) From 7caea54ff04c2decd742c8a5aed5fa7ffea8fb0d Mon Sep 17 00:00:00 2001 From: cyberwani Date: Sat, 12 May 2018 11:54:10 +0530 Subject: [PATCH 2/5] Added support to Wistia. --- js/jquery-modal-video.js | 28 ++++++++++++++++++++++++++++ js/jquery-modal-video.min.js | 2 +- js/modal-video.js | 28 ++++++++++++++++++++++++++++ js/modal-video.min.js | 2 +- lib/core/index.js | 28 ++++++++++++++++++++++++++++ src/core/index.js | 27 +++++++++++++++++++++++++++ 6 files changed, 113 insertions(+), 2 deletions(-) diff --git a/js/jquery-modal-video.js b/js/jquery-modal-video.js index f9c5f69..f2f5834 100644 --- a/js/jquery-modal-video.js +++ b/js/jquery-modal-video.js @@ -161,6 +161,27 @@ var assign = require('es6-object-assign').assign; var defaults = { channel: 'youtube', facebook: {}, + wistia: { + autoPlay: false, + controlsVisibleOnLoad: true, + doNotTrac: true, + endVideoBehavior: "default", + fullscreenButton: true, + googleAnalytics: false, + muted: false, + playbackRateControl: true, + playbar: true, + playButton: true, + playerColor: "5BB9FB", + qualityControl: true, + settingsControl: true, + silentAutoPlay: 'allow', + smallPlayButton: true, + videoFoam: true, + volume: 1, + volumeControl: true, + branding: false + }, youtube: { autoplay: 1, cc_load_policy: 1, @@ -294,6 +315,8 @@ var ModalVideo = function () { return this.getVimeoUrl(opt.vimeo, videoId); } else if (channel === 'facebook') { return this.getFacebookUrl(opt.facebook, videoId); + } else if (channel === 'wistia') { + return this.getWistiaUrl(opt.wistia, videoId); } return ''; } @@ -318,6 +341,11 @@ var ModalVideo = function () { value: function getFacebookUrl(facebook, videoId) { return '//www.facebook.com/v2.10/plugins/video.php?href=https://www.facebook.com/facebook/videos/' + videoId + '&' + this.getQueryString(facebook); } + }, { + key: 'getFacebookUrl', + value: function getFacebookUrl(wistia, videoId) { + return '//fast.wistia.com/embed/medias/' + videoId + '?' + this.getQueryString(wistia); + } }, { key: 'getHtml', value: function getHtml(opt, videoUrl, id) { diff --git a/js/jquery-modal-video.min.js b/js/jquery-modal-video.min.js index 6d00df9..da5e4fd 100644 --- a/js/jquery-modal-video.min.js +++ b/js/jquery-modal-video.min.js @@ -22,4 +22,4 @@ * * This header is generated by licensify (https://github.com/twada/licensify) */ -!function(){function e(t,n,o){function i(a,l){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!l&&u)return u(a,!0);if(r)return r(a,!0);var d=new Error("Cannot find module '"+a+"'");throw d.code="MODULE_NOT_FOUND",d}var s=n[a]={exports:{}};t[a][0].call(s.exports,function(e){var n=t[a][1][e];return i(n||e)},s,s.exports,e,t,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a\n
\n
\n
\n \n