@flowplayer/player 3.0.3-rc.2 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowplayer/player",
3
- "version": "3.0.3-rc.2",
3
+ "version": "3.0.4",
4
4
  "description": "video player for the future",
5
5
  "license": "https://flowplayer.com/commercial-license",
6
6
  "main": "default.js",
package/plugins/audio.js CHANGED
@@ -1 +1 @@
1
- !function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((n="undefined"!=typeof globalThis?globalThis:n||self).flowplayer=n.flowplayer||{},n.flowplayer.audio=t())}(this,(function(){"use strict";function n(n,t,o){const e=function(n){return Array.isArray(n)?n.slice(0):n.split(".")}(t);for(;e.length;){if(null==n)return o;const t=e.shift();if("string"!=typeof t)return o;n=n[t]}return null==n?o:n}return function(n,t){if("object"==typeof exports&&"undefined"!=typeof module)return t;"flowplayer"in n||(n.flowplayer={extensions:[]});const o=n.flowplayer;return"function"==typeof o?(o(t),t):(Array.isArray(o.extensions)||(o.extensions=[]),~o.extensions.indexOf(t)||o.extensions.push(t),t)}(window,class Audio{constructor(n){this.umd=n}init(t,o,e){let s=t.poster,i=!1,r=!1,f=!1;function u(){e.setState("is-audio-player",!r&&i),e.setState("show-controls-only",!r&&!s)}e.on("config",(function(t){s=n(t,"data.poster",s);const o=n(t,"data.ui",{});f=!!(8192&o)})),e.on("audioonlysource",(function(){i=!0,u()})),e.on("src",(function(){i=f||!1,u()})),e.on("loadstart",u),e.ads&&this.umd.ads&&(e.ads.on(this.umd.ads.events.AD_STARTED,(function(){r=!0,u()})),e.ads.on(this.umd.ads.events.AD_BREAK_COMPLETED,(function(){r=!1,u()})))}})}));
1
+ !function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((n="undefined"!=typeof globalThis?globalThis:n||self).flowplayer=n.flowplayer||{},n.flowplayer.audio=t())}(this,(function(){"use strict";function n(n,t,e){const o=function(n){return Array.isArray(n)?n.slice(0):n.split(".")}(t);for(;o.length;){if(null==n)return e;const t=o.shift();if("string"!=typeof t)return e;n=n[t]}return null==n?e:n}return function(n,t){if("object"==typeof exports&&"undefined"!=typeof module)return t;"flowplayer"in n||(n.flowplayer={extensions:[]});const e=n.flowplayer;return"function"==typeof e?(e(t),t):(Array.isArray(e.extensions)||(e.extensions=[]),~e.extensions.indexOf(t)||e.extensions.push(t),t)}(window,class Audio{constructor(n){this.umd=n}init(t,e,o){let s=t.poster,i=!1,r=!1,u=!1;function f(){o.setState("is-audio-player",!r&&i),o.setState("show-controls-only",!r&&!s)}o.setOpts({muted:!1}),o.on("config",(function(t){s=n(t,"data.poster",s);const e=n(t,"data.ui",{});u=!!(8192&e)})),o.on("audioonlysource",(function(){i=!0,f()})),o.on("src",(function(){i=u||!1,f()})),o.on("loadstart",f),o.ads&&this.umd.ads&&(o.ads.on(this.umd.ads.events.AD_STARTED,(function(){r=!0,f()})),o.ads.on(this.umd.ads.events.AD_BREAK_COMPLETED,(function(){r=!1,f()})))}})}));