@flowplayer/player 3.14.1 → 3.15.0-rc.10

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.
Files changed (81) hide show
  1. package/core/events.d.ts +575 -68
  2. package/core/events.js +286 -34
  3. package/core.js +1 -1
  4. package/default.js +1 -1
  5. package/embed.js +2 -2
  6. package/flowplayer.css +1 -1
  7. package/index.d.ts +1480 -91
  8. package/package.json +1 -1
  9. package/plugins/ads.d.ts +3744 -112
  10. package/plugins/ads.js +1 -1
  11. package/plugins/airplay.d.ts +1440 -116
  12. package/plugins/airplay.js +1 -1
  13. package/plugins/analytics.d.ts +1409 -82
  14. package/plugins/analytics.js +1 -1
  15. package/plugins/asel.d.ts +1409 -82
  16. package/plugins/asel.js +1 -1
  17. package/plugins/audio.d.ts +1409 -82
  18. package/plugins/audio.js +1 -1
  19. package/plugins/chapters.d.ts +1409 -82
  20. package/plugins/chapters.js +1 -1
  21. package/plugins/chromecast.d.ts +1464 -80
  22. package/plugins/chromecast.js +1 -1
  23. package/plugins/comscore.d.ts +1409 -82
  24. package/plugins/consent.d.ts +1409 -82
  25. package/plugins/consent.js +1 -1
  26. package/plugins/context-menu.d.ts +1443 -116
  27. package/plugins/cuepoints.d.ts +1443 -116
  28. package/plugins/cuepoints.js +1 -1
  29. package/plugins/dash.d.ts +1445 -115
  30. package/plugins/dash.js +1 -1
  31. package/plugins/drm.d.ts +1409 -82
  32. package/plugins/drm.js +1 -1
  33. package/plugins/endscreen.d.ts +1442 -115
  34. package/plugins/endscreen.js +1 -1
  35. package/plugins/fas.d.ts +1409 -82
  36. package/plugins/float-on-scroll.d.ts +1443 -116
  37. package/plugins/float-on-scroll.js +1 -1
  38. package/plugins/ga4.d.ts +1409 -82
  39. package/plugins/gemius.d.ts +1439 -112
  40. package/plugins/google-analytics.d.ts +1409 -82
  41. package/plugins/health.d.ts +1435 -107
  42. package/plugins/health.js +1 -1
  43. package/plugins/hls.d.ts +1431 -104
  44. package/plugins/hls.js +1 -1
  45. package/plugins/id3.d.ts +1409 -82
  46. package/plugins/id3.js +1 -1
  47. package/plugins/iframe.d.ts +1440 -116
  48. package/plugins/iframe.js +1 -1
  49. package/plugins/keyboard.d.ts +1409 -82
  50. package/plugins/media-session.d.ts +1409 -82
  51. package/plugins/message.d.ts +1409 -82
  52. package/plugins/message.js +1 -1
  53. package/plugins/ovp.d.ts +1435 -110
  54. package/plugins/ovp.js +1 -1
  55. package/plugins/playlist.d.ts +1409 -82
  56. package/plugins/playlist.js +1 -1
  57. package/plugins/preview.d.ts +1409 -82
  58. package/plugins/preview.js +1 -1
  59. package/plugins/qsel.d.ts +1409 -82
  60. package/plugins/qsel.js +1 -1
  61. package/plugins/qul.d.ts +1441 -114
  62. package/plugins/qul.js +1 -1
  63. package/plugins/rts.d.ts +1409 -82
  64. package/plugins/rts.js +1 -1
  65. package/plugins/share.d.ts +1409 -82
  66. package/plugins/share.js +1 -1
  67. package/plugins/speed.d.ts +1434 -107
  68. package/plugins/speed.js +1 -1
  69. package/plugins/ssai.d.ts +1412 -82
  70. package/plugins/ssai.js +1 -1
  71. package/plugins/subtitles.d.ts +1426 -102
  72. package/plugins/thumbnails.d.ts +1434 -107
  73. package/plugins/thumbnails.js +1 -1
  74. package/plugins/tizen.d.ts +1409 -82
  75. package/plugins/tizen.js +1 -1
  76. package/plugins/vtsel.d.ts +1409 -82
  77. package/plugins/vtsel.js +1 -1
  78. package/plugins/webos.d.ts +1409 -82
  79. package/plugins/webos.js +1 -1
  80. package/util/loader.d.ts +1436 -101
  81. package/util/loader.js +13 -2
@@ -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.airplay=t())}(this,(function(){"use strict";const e=(e,t)=>new(((e,t)=>{const i=e.get(t);if(!i)throw new Error(`no flowplayer component with the name ${t} exists`);const r=window.customElements.get(t);if(!r)throw new Error(`no default flowplayer component with the name ${t} exists`);const n=window.customElements.get(i);return"function"!=typeof n?r:n})(e._customElements,t))(e);class FlowplayerComponent extends HTMLElement{constructor(e){super(),this.player=e}}class FlowplayerIcon extends FlowplayerComponent{constructor(e,t){super(e),this.classList.add("fp-icon",t.name),t.title&&this.setAttribute("title",t.title),t.title&&this.setAttribute("aria-label",t.title),t.translation_key&&this.setAttribute("aria-label",e.i18n(t.translation_key)),this.setAttribute("tabindex","0"),this.setAttribute("focusable","true")}}var t=Object.freeze({__proto__:null,START:"airplay:start",STOP:"airplay:stop"});const i={name:"fp-airplay"};class Airplay{constructor(e){((e,t,i)=>{window.customElements.get(t)||window.customElements.define(t,i),e.customElements.get(t)||e.customElements.set(t,t)})(e,"flowplayer-airplay-icon",class extends FlowplayerIcon{constructor(e){super(e,i),this.addEventListener("click",(function(){e.webkitShowPlaybackTargetPicker()}))}})}static unsupported(){return!("WebKitPlaybackTargetAvailabilityEvent"in window)}static update(e,t){const i=t.availability===Airplay.AVAILABLE&&!!e.currentSrc&&0!==e.currentSrc.indexOf("blob");e.setState(Airplay.AVAILABLE_CLASS,i)}static render(t){var i;const r=e(t,"flowplayer-airplay-icon");null===(i=function(e,t){const i=e._customElements.get(t);return i&&e.root.querySelector(i)||void 0}(t,"flowplayer-header-right-zone"))||void 0===i||i.prepend(r)}init({airplay:e,hls:t},i,r){Airplay.unsupported()||!1===e||(r.setOpts({hls:Object.assign({},{native:!0},t)}),Airplay.render(r),r.setAttribute("x-webkit-airplay","allow"),r.on(Airplay.AVAILABILITY_CHANGE,(function(e){Airplay.update(r,e)})),r.on(Airplay.WIRELESS_CHANGE,(function(){return r.emit(r.webkitCurrentPlaybackTargetIsWireless?Airplay.events.START:Airplay.events.STOP),r.setState(Airplay.ACTIVE_CLASS,r.webkitCurrentPlaybackTargetIsWireless)})))}}Airplay.ACTIVE_CLASS="is-airplay",Airplay.AVAILABLE_CLASS="is-airplay-available",Airplay.AVAILABILITY_CHANGE="webkitplaybacktargetavailabilitychanged",Airplay.WIRELESS_CHANGE="webkitcurrentplaybacktargetiswirelesschanged",Airplay.AVAILABLE="available",Airplay.events=t;return function(e,t){if("object"==typeof exports&&"undefined"!=typeof module)return t;if(null===document.currentScript)return t;"flowplayer"in e||(e.flowplayer={extensions:[]});const i=e.flowplayer;return"function"==typeof i?(i(t),t):(Array.isArray(i.extensions)||(i.extensions=[]),~i.extensions.indexOf(t)||i.extensions.push(t),t)}(window,Airplay)}));
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.airplay=t())}(this,(function(){"use strict";const e=(e,t)=>new(((e,t)=>{const n=e.get(t);if(!n)throw new Error(`no flowplayer component with the name ${t} exists`);const r=window.customElements.get(t);if(!r)throw new Error(`no default flowplayer component with the name ${t} exists`);const i=window.customElements.get(n);return"function"!=typeof i?r:i})(e._customElements,t))(e);class FlowplayerComponent extends HTMLElement{constructor(e){super(),this.player=e}}class FlowplayerIcon extends FlowplayerComponent{constructor(e,t){super(e),this.classList.add("fp-icon",t.name),t.title&&this.setAttribute("title",t.title),t.title&&this.setAttribute("aria-label",t.title),t.translation_key&&this.setAttribute("aria-label",e.i18n(t.translation_key)),this.setAttribute("tabindex","0"),this.setAttribute("focusable","true")}}var t=Object.freeze({__proto__:null,START:"airplay:start",STOP:"airplay:stop"});const n={name:"fp-airplay"};var r;const i=((r=class Airplay{constructor(e){((e,t,n)=>{window.customElements.get(t)||window.customElements.define(t,n),e.customElements.get(t)||e.customElements.set(t,t)})(e,"flowplayer-airplay-icon",class extends FlowplayerIcon{constructor(e){super(e,n),this.addEventListener("click",(function(){e.webkitShowPlaybackTargetPicker()}))}})}static unsupported(){return!("WebKitPlaybackTargetAvailabilityEvent"in window)}static update(e,t){const n=t.availability===Airplay.AVAILABLE&&!!e.currentSrc&&0!==e.currentSrc.indexOf("blob");e.setState(Airplay.AVAILABLE_CLASS,n)}static render(t){var n;const r=e(t,"flowplayer-airplay-icon");null===(n=function(e,t){const n=e._customElements.get(t);return n&&e.root.querySelector(n)||void 0}(t,"flowplayer-header-right-zone"))||void 0===n||n.prepend(r)}init({airplay:e,hls:t},n,r){Airplay.unsupported()||!1===e||(r.setOpts({hls:Object.assign({},{native:!0},t)}),Airplay.render(r),r.setAttribute("x-webkit-airplay","allow"),r.on(Airplay.AVAILABILITY_CHANGE,(function(e){Airplay.update(r,e)})),r.on(Airplay.WIRELESS_CHANGE,(function(){return r.emit(r.webkitCurrentPlaybackTargetIsWireless?Airplay.events.START:Airplay.events.STOP),r.setState(Airplay.ACTIVE_CLASS,r.webkitCurrentPlaybackTargetIsWireless)})))}}).ACTIVE_CLASS="is-airplay",r.AVAILABLE_CLASS="is-airplay-available",r.AVAILABILITY_CHANGE="webkitplaybacktargetavailabilitychanged",r.WIRELESS_CHANGE="webkitcurrentplaybacktargetiswirelesschanged",r.AVAILABLE="available",r.events=t,r);return function(e,t){if("object"==typeof exports&&"undefined"!=typeof module)return t;if(null===document.currentScript)return t;"flowplayer"in e||(e.flowplayer={extensions:[]});const n=e.flowplayer;return"function"==typeof n?(n(t),t):(Array.isArray(n.extensions)||(n.extensions=[]),~n.extensions.indexOf(t)||n.extensions.push(t),t)}(window,i)}));