clappr-pip-plugin
Advanced tools
Comparing version 1.0.1-0 to 2.0.0
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("Clappr")):"function"==typeof define&&define.amd?define(["Clappr"],t):"object"==typeof exports?exports.ClapprPIPPlugin=t(require("Clappr")):e.ClapprPIPPlugin=t(e.Clappr)}(this,function(e){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(2),p=n(1),c=o(p),s=function(e){function t(e){r(this,t);var n=i(this,Object.getPrototypeOf(t).call(this,e));return n._pipSupported=!1,n._currentPlayback=null,n.$el.addClass("media-control-button media-control-icon").css({"float":"right",height:"100%"}).append(c["default"]),n.$el.click(function(){var e=n._playback.el;e.webkitSetPresentationMode("picture-in-picture"===e.webkitPresentationMode?"inline":"picture-in-picture")}),n}return a(t,e),u(t,[{key:"name",get:function(){return"pip-plugin"}},{key:"tagName",get:function(){return"button"}},{key:"attributes",get:function(){return{"class":this.name}}}]),u(t,[{key:"bindEvents",value:function(){this.listenTo(this.core.mediaControl,l.Events.MEDIACONTROL_RENDERED,this._init),this.listenTo(this.core.mediaControl,l.Events.MEDIACONTROL_CONTAINERCHANGED,this._onContainerChanged)}},{key:"_onContainerChanged",value:function(){this._updatePlayback(),this._renderPlugin()}},{key:"_updatePlayback",value:function(e){var e=this.core.mediaControl.container.playback;this._playback!==e&&(this._playback=e,this._checkPipSupport())}},{key:"_checkPipSupport",value:function(){var e=this._playback.el;this._pipSupported=e&&"video"===e.nodeName.toLowerCase()&&e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode}},{key:"_init",value:function(){this._updatePlayback(),this._checkPipSupport(),this.core.mediaControl.$el.find(".media-control-layer .media-control-right-panel .media-control-button[data-fullscreen]").first().after(this.el),this._renderPlugin()}},{key:"_renderPlugin",value:function(){this._pipSupported?this.$el.show():this.$el.hide()}}]),t}(l.UICorePlugin);t["default"]=s,e.exports=t["default"]},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#010101" d="M7.156 8L4 11.156V8.5H3V13h4.5v-1H4.844L8 8.844 7.156 8zM8.5 3v1h2.657L8 7.157 8.846 8 12 4.844V7.5h1V3H8.5z"></path></svg>'},function(t,n){t.exports=e}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("Clappr")):"function"==typeof define&&define.amd?define(["Clappr"],t):"object"==typeof exports?exports.ClapprPIPPlugin=t(require("Clappr")):e.ClapprPIPPlugin=t(e.Clappr)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(2),c=n(1),p=r(c),s=function(e){function t(e){i(this,t);var n=o(this,Object.getPrototypeOf(t).call(this,e));return n._pipSupported=!1,n._currentPlayback=null,n.$el.addClass("media-control-button media-control-icon").css({"float":"right",height:"100%"}).append(p["default"]),n.$el.click(function(){var e=n._playback.el;e.webkitSetPresentationMode("picture-in-picture"===e.webkitPresentationMode?"inline":"picture-in-picture")}),n}return a(t,e),l(t,[{key:"name",get:function(){return"pip-plugin"}},{key:"tagName",get:function(){return"button"}},{key:"attributes",get:function(){return{"class":this.name}}}]),l(t,[{key:"bindEvents",value:function(){this.listenTo(this.core.mediaControl,u.Events.MEDIACONTROL_RENDERED,this._init),this.listenTo(this.core.mediaControl,u.Events.MEDIACONTROL_CONTAINERCHANGED,this._onContainerChanged)}},{key:"_onContainerChanged",value:function(){this._updatePlayback(),this._renderPlugin()}},{key:"_updatePlayback",value:function(e){var e=this.core.mediaControl.container.playback;this._playback!==e&&(this._playback=e,this._checkPipSupport())}},{key:"_checkPipSupport",value:function(){var e=this._playback.el;this._pipSupported=e&&"video"===e.nodeName.toLowerCase()&&e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode}},{key:"_init",value:function(){this._updatePlayback(),this._checkPipSupport(),this.core.mediaControl.$el.find(".media-control-layer .media-control-right-panel .media-control-button[data-fullscreen]").first().after(this.el),this._renderPlugin()}},{key:"_renderPlugin",value:function(){this._pipSupported?this.$el.show():this.$el.hide()}}]),t}(u.UICorePlugin);t["default"]=s,e.exports=t["default"]},function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 35 22" enable-background="new 0 0 35 22" xml:space="preserve"><rect x="0.5" y="0.5" fill="none" stroke="#FFFFFF" stroke-miterlimit="10" width="34" height="21"></rect><rect x="16.5" y="11.5" fill="#FFFFFF" stroke="#FFFFFF" stroke-miterlimit="10" width="16" height="8"></rect></svg>'},function(t,n){t.exports=e}])}); |
{ | ||
"name": "clappr-pip-plugin", | ||
"version": "1.0.1-0", | ||
"version": "2.0.0", | ||
"description": "A plugin for clappr which adds support for picture-in-picture on devices which support it.", | ||
@@ -5,0 +5,0 @@ "main": "dist/clappr-pip-plugin.js", |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
161235
2