@flowplayer/player 3.0.2 → 3.0.3-rc.0

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.2",
3
+ "version": "3.0.3-rc.0",
4
4
  "description": "video player for the future",
5
5
  "license": "https://flowplayer.com/commercial-license",
6
6
  "main": "default.js",
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e="undefined"!=typeof globalThis?globalThis:e||self).flowplayer=e.flowplayer||{},e.flowplayer.cuepoints=t())}(this,(function(){"use strict";return class Cuepoints{init(e,t,n){if(!n.reaper)return;const o=n.addTextTrack("metadata","fp-cuepoints");n.reaper.set("cuepoints",[]),n.on("config",(function(t){var o;if(!n.reaper)return;(null===(o=t.data)||void 0===o?void 0:o.cuepoints)!==n.reaper.get("cuepoints")&&n.emit("cuepoints",{cuepoints:e.cuepoints})})),n.on("cuepoints",(function(e){var t;if(!n.reaper)return;const i=(null===(t=e.data)||void 0===t?void 0:t.cuepoints)||[];n.reaper.set("cuepoints",i),Array.from(o.cues||{length:0}).forEach(e=>o.removeCue(e)),i.map((function(e){return function(e,t){try{const n=new VTTCue(t.startTime,t.endTime,t.text||"");return n.id=t.id||"",n.onenter=e.emit.bind(e,"cuepointstart",{cuepoint:t}),n.onexit=e.emit.bind(e,"cuepointend",{cuepoint:t}),n}catch(e){if(t.startTime===t.endTime)return console.warn("Cue(:error)> startTime cannot equal endTime on this platform");throw e}}(n,e)})).forEach((function(e){e&&o.addCue(e)}))}))}}}));
1
+ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):((e="undefined"!=typeof globalThis?globalThis:e||self).flowplayer=e.flowplayer||{},e.flowplayer.cuepoints=n())}(this,(function(){"use strict";return function(e,n){if("object"==typeof exports&&"undefined"!=typeof module)return n;"flowplayer"in e||(e.flowplayer={extensions:[]});const t=e.flowplayer;return"function"==typeof t?(t(n),n):(Array.isArray(t.extensions)||(t.extensions=[]),~t.extensions.indexOf(n)||t.extensions.push(n),n)}(window,class Cuepoints{init(e,n,t){if(!t.reaper)return;const o=t.addTextTrack("metadata","fp-cuepoints");t.reaper.set("cuepoints",[]),t.on("config",(function(n){var o;if(!t.reaper)return;(null===(o=n.data)||void 0===o?void 0:o.cuepoints)!==t.reaper.get("cuepoints")&&t.emit("cuepoints",{cuepoints:e.cuepoints})})),t.on("cuepoints",(function(e){var n;if(!t.reaper)return;const i=(null===(n=e.data)||void 0===n?void 0:n.cuepoints)||[];t.reaper.set("cuepoints",i),Array.from(o.cues||{length:0}).forEach(e=>o.removeCue(e)),i.map((function(e){return function(e,n){try{const t=new VTTCue(n.startTime,n.endTime,n.text||"");return t.id=n.id||"",t.onenter=e.emit.bind(e,"cuepointstart",{cuepoint:n}),t.onexit=e.emit.bind(e,"cuepointend",{cuepoint:n}),t}catch(e){if(n.startTime===n.endTime)return console.warn("Cue(:error)> startTime cannot equal endTime on this platform");throw e}}(t,e)})).forEach((function(e){e&&o.addCue(e)}))}))}})}));