@flowplayer/player 3.35.0-rc → 3.36.0-rc

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 (137) hide show
  1. package/core.js +1 -1
  2. package/default.js +1 -1
  3. package/embed.js +2 -2
  4. package/flowplayer.css +1 -1
  5. package/index.d.ts +0 -6
  6. package/package.json +1 -2364
  7. package/plugins/ads.d.ts +7 -8
  8. package/plugins/ads.js +2 -2
  9. package/plugins/airplay.d.ts +0 -6
  10. package/plugins/analytics.d.ts +0 -6
  11. package/plugins/analytics.js +1 -1
  12. package/plugins/asel.d.ts +0 -6
  13. package/plugins/audio.d.ts +0 -6
  14. package/plugins/chapters.d.ts +0 -6
  15. package/plugins/chromecast.d.ts +0 -6
  16. package/plugins/comscore.d.ts +0 -6
  17. package/plugins/consent.d.ts +0 -6
  18. package/plugins/context-menu.d.ts +0 -6
  19. package/plugins/cuepoints.d.ts +0 -6
  20. package/plugins/dash.d.ts +0 -6
  21. package/plugins/drm.d.ts +0 -6
  22. package/plugins/endscreen.d.ts +0 -6
  23. package/plugins/fas.d.ts +0 -6
  24. package/plugins/float-on-scroll.d.ts +0 -6
  25. package/plugins/ga4.d.ts +0 -6
  26. package/plugins/gemius.d.ts +0 -6
  27. package/plugins/google-analytics.d.ts +0 -6
  28. package/plugins/hls.d.ts +0 -6
  29. package/plugins/id3.d.ts +0 -6
  30. package/plugins/iframe.d.ts +0 -6
  31. package/plugins/keyboard.d.ts +0 -6
  32. package/plugins/media-session.d.ts +0 -6
  33. package/plugins/message.d.ts +0 -6
  34. package/plugins/ovp.d.ts +0 -6
  35. package/plugins/playlist.d.ts +0 -6
  36. package/plugins/preview.d.ts +0 -6
  37. package/plugins/qsel.d.ts +0 -6
  38. package/plugins/qul.d.ts +0 -6
  39. package/plugins/rts.d.ts +0 -6
  40. package/plugins/rts.js +3 -3
  41. package/plugins/share.d.ts +0 -6
  42. package/plugins/speed.d.ts +0 -6
  43. package/plugins/ssai.d.ts +0 -6
  44. package/plugins/ssai.js +1 -1
  45. package/plugins/subtitles.d.ts +0 -6
  46. package/plugins/thumbnails.d.ts +0 -6
  47. package/plugins/tizen.d.ts +0 -6
  48. package/plugins/vtsel.d.ts +0 -6
  49. package/plugins/webos.d.ts +0 -6
  50. package/util/loader.d.ts +0 -6
  51. package/package/core/events.d.ts +0 -710
  52. package/package/core/events.js +0 -403
  53. package/package/core.js +0 -1
  54. package/package/default.js +0 -1
  55. package/package/embed.js +0 -7
  56. package/package/flowplayer.css +0 -1
  57. package/package/index.d.ts +0 -2238
  58. package/package/plugins/ads.d.ts +0 -4468
  59. package/package/plugins/ads.js +0 -7
  60. package/package/plugins/airplay.d.ts +0 -2152
  61. package/package/plugins/airplay.js +0 -1
  62. package/package/plugins/analytics.d.ts +0 -2146
  63. package/package/plugins/analytics.js +0 -1
  64. package/package/plugins/asel.d.ts +0 -2293
  65. package/package/plugins/asel.js +0 -1
  66. package/package/plugins/audio.d.ts +0 -2146
  67. package/package/plugins/audio.js +0 -1
  68. package/package/plugins/chapters.d.ts +0 -2155
  69. package/package/plugins/chapters.js +0 -1
  70. package/package/plugins/chromecast.d.ts +0 -2221
  71. package/package/plugins/chromecast.js +0 -1
  72. package/package/plugins/comscore.d.ts +0 -2146
  73. package/package/plugins/comscore.js +0 -1
  74. package/package/plugins/consent.d.ts +0 -2194
  75. package/package/plugins/consent.js +0 -1
  76. package/package/plugins/context-menu.d.ts +0 -2160
  77. package/package/plugins/context-menu.js +0 -1
  78. package/package/plugins/cuepoints.d.ts +0 -2270
  79. package/package/plugins/cuepoints.js +0 -1
  80. package/package/plugins/dash.d.ts +0 -2302
  81. package/package/plugins/dash.js +0 -2
  82. package/package/plugins/drm.d.ts +0 -2271
  83. package/package/plugins/drm.js +0 -1
  84. package/package/plugins/endscreen.d.ts +0 -2165
  85. package/package/plugins/endscreen.js +0 -1
  86. package/package/plugins/fas.d.ts +0 -2200
  87. package/package/plugins/fas.js +0 -1
  88. package/package/plugins/float-on-scroll.d.ts +0 -2234
  89. package/package/plugins/float-on-scroll.js +0 -1
  90. package/package/plugins/ga4.d.ts +0 -2146
  91. package/package/plugins/ga4.js +0 -1
  92. package/package/plugins/gemius.d.ts +0 -2171
  93. package/package/plugins/gemius.js +0 -1
  94. package/package/plugins/google-analytics.d.ts +0 -2146
  95. package/package/plugins/google-analytics.js +0 -1
  96. package/package/plugins/hls.d.ts +0 -2271
  97. package/package/plugins/hls.js +0 -1
  98. package/package/plugins/id3.d.ts +0 -2212
  99. package/package/plugins/id3.js +0 -1
  100. package/package/plugins/iframe.d.ts +0 -2147
  101. package/package/plugins/iframe.js +0 -1
  102. package/package/plugins/keyboard.d.ts +0 -2146
  103. package/package/plugins/keyboard.js +0 -1
  104. package/package/plugins/media-session.d.ts +0 -2146
  105. package/package/plugins/media-session.js +0 -1
  106. package/package/plugins/message.d.ts +0 -2205
  107. package/package/plugins/message.js +0 -1
  108. package/package/plugins/ovp.d.ts +0 -2208
  109. package/package/plugins/ovp.js +0 -1
  110. package/package/plugins/playlist.d.ts +0 -2465
  111. package/package/plugins/playlist.js +0 -1
  112. package/package/plugins/preview.d.ts +0 -2236
  113. package/package/plugins/preview.js +0 -1
  114. package/package/plugins/qsel.d.ts +0 -2236
  115. package/package/plugins/qsel.js +0 -1
  116. package/package/plugins/qul.d.ts +0 -2161
  117. package/package/plugins/qul.js +0 -1
  118. package/package/plugins/rts.d.ts +0 -2551
  119. package/package/plugins/rts.js +0 -25
  120. package/package/plugins/share.d.ts +0 -2181
  121. package/package/plugins/share.js +0 -1
  122. package/package/plugins/speed.d.ts +0 -2173
  123. package/package/plugins/speed.js +0 -1
  124. package/package/plugins/ssai.d.ts +0 -2502
  125. package/package/plugins/ssai.js +0 -7
  126. package/package/plugins/subtitles.d.ts +0 -2287
  127. package/package/plugins/subtitles.js +0 -1
  128. package/package/plugins/thumbnails.d.ts +0 -2164
  129. package/package/plugins/thumbnails.js +0 -1
  130. package/package/plugins/tizen.d.ts +0 -2152
  131. package/package/plugins/tizen.js +0 -1
  132. package/package/plugins/vtsel.d.ts +0 -2250
  133. package/package/plugins/vtsel.js +0 -1
  134. package/package/plugins/webos.d.ts +0 -2152
  135. package/package/plugins/webos.js +0 -1
  136. package/package/util/loader.d.ts +0 -2163
  137. package/package/util/loader.js +0 -63
@@ -1 +0,0 @@
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.fas=t())}(this,function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var t=function(e){var t={exports:{}};return e(t,t.exports),t.exports}(function(t,r){var o,s;o=e,(s=function(e,t,r){if(!(this instanceof s))return new s(e,t,r);if(void 0===t)this.frameRate=29.97;else{if(!("number"==typeof t&&t>0))throw new Error("Number expected as framerate");this.frameRate=t}if(23.976!==this.frameRate&&24!==this.frameRate&&25!==this.frameRate&&29.97!==this.frameRate&&30!==this.frameRate&&50!==this.frameRate&&59.94!==this.frameRate&&60!==this.frameRate)throw new Error("Unsupported framerate");if(this.dropFrame="boolean"==typeof r?r:29.97===this.frameRate||59.94===this.frameRate,"number"==typeof e)this.frameCount=Math.round(e),this._frameCountToTimeCode();else if("string"==typeof e){var o=e.match("^([012]\\d):(\\d\\d):(\\d\\d)(:|;|\\.)(\\d\\d)$");if(!o)throw new Error("Timecode string expected as HH:MM:SS:FF or HH:MM:SS;FF");this.hours=parseInt(o[1]),this.minutes=parseInt(o[2]),this.seconds=parseInt(o[3]),"boolean"!=typeof r&&(this.dropFrame=":"!==o[4]),this.frames=parseInt(o[5]),this._timeCodeToFrameCount()}else if("object"==typeof e&&e instanceof Date){var i=new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),a=60*i.getTimezoneOffset()*1e3,n=60*e.getTimezoneOffset()*1e3;this.frameCount=Math.round((e-i+(a-n))*this.frameRate/1e3),this._frameCountToTimeCode()}else if("object"==typeof e&&e.hours>=0)this.hours=e.hours,this.minutes=e.minutes,this.seconds=e.seconds,this.frames=e.frames,this._timeCodeToFrameCount();else{if(void 0!==e)throw new Error("Timecode() constructor expects a number, timecode string, or Date()");this.frameCount=0}return this._validate(e),this}).prototype._validate=function(e){if(this.dropFrame&&29.97!==this.frameRate&&59.94!==this.frameRate)throw new Error("Drop frame is only supported for 29.97 and 59.94 fps");if(this.hours>23||this.minutes>59||this.seconds>59||this.frames>=this.frameRate||this.dropFrame&&0===this.seconds&&this.minutes%10&&this.frames<this.frameRate/29.97*2)throw new Error("Invalid timecode"+JSON.stringify(e))},s.prototype._frameCountToTimeCode=function(){var e=this.frameCount;if(this.dropFrame){var t=29.97===this.frameRate?2:4,r=Math.floor(this.frameCount/(17982*t/2)),o=this.frameCount%(17982*t/2);o<t&&(o+=t),e+=9*t*r+t*Math.floor((o-t)/(1798*t/2))}var s=Math.round(this.frameRate);this.frames=e%s,this.seconds=Math.floor(e/s)%60,this.minutes=Math.floor(e/(60*s))%60,this.hours=Math.floor(e/(3600*s))%24},s.prototype._timeCodeToFrameCount=function(){if(this.frameCount=(3600*this.hours+60*this.minutes+this.seconds)*Math.round(this.frameRate)+this.frames,this.dropFrame){var e=60*this.hours+this.minutes,t=29.97===this.frameRate?2:4;this.frameCount-=t*(e-Math.floor(e/10))}},s.prototype.toString=function(e){var t=this.frames,r="";if("string"==typeof e){if("field"!==e)throw new Error("Unsupported string format");this.frameRate<=30?r=".0":(t=Math.floor(t/2),r=".".concat((this.frameCount%2).toString()))}return"".concat(this.hours<10?"0":"",this.hours.toString(),":",this.minutes<10?"0":"",this.minutes.toString(),":",this.seconds<10?"0":"",this.seconds.toString(),this.dropFrame?";":":",t<10?"0":"",t.toString(),r)},s.prototype.valueOf=function(){return this.frameCount},s.prototype.add=function(e,t,r){if("number"!=typeof e)return e instanceof s||(e=new s(e,this.frameRate,this.dropFrame)),this.add(e.frameCount,t,r);var o=this.frameCount+Math.round(e)*(t?-1:1);if(o<0&&r>0&&(o=Math.round(86400*this.frameRate)+o)/this.frameRate/3600>r)throw new Error("Rollover arithmetic exceeds max permitted");if(o<0)throw new Error("Negative timecodes not supported");return this.frameCount=o,this.frameCount=this.frameCount%Math.round(86400*this.frameRate),this._frameCountToTimeCode(),this},s.prototype.subtract=function(e,t){return this.add(e,!0,t)},s.prototype.toDate=function(){var e=this.frameCount/this.frameRate*1e3,t=new Date;t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0);var r=new Date(t.valueOf()+e),o=60*t.getTimezoneOffset()*1e3,s=60*r.getTimezoneOffset()*1e3;return new Date(t.valueOf()+e+(s-o))},"string"!=typeof r.nodeName?t.exports=s:o&&(o.Timecode=s)});function r(e,r,o){o=o||0;const s=new Date;s.setHours(0),s.setMinutes(0),s.setSeconds(0),e=Math.max(parseFloat(e.toFixed(3))+.001+1*o/r,0),s.setMilliseconds(1e3*e);return new t(s,r).toString()}var o;const s=30,i=0,a=((o=class FAS{constructor(e,t){this.player=t,this.frame_rate=s,this.frame_offset=i}init(e,t,r){0!=r.reaper&&(r.on("loadstart",function(){r.hls&&r.setOpts({fas:{frame_offset:-1}})}),r.on("config",e=>{var t,r,o,s;this.frame_rate=(null===(r=null===(t=e.data)||void 0===t?void 0:t.fas)||void 0===r?void 0:r.frame_rate)||this.frame_rate,this.frame_offset=(null===(s=null===(o=e.data)||void 0===o?void 0:o.fas)||void 0===s?void 0:s.frame_offset)||this.frame_offset}),r.fas=this)}current_frame(){return e=r(this.player.currentTime,this.frame_rate,this.frame_offset),o=this.frame_rate,new t(e,o).frameCount;var e,o}seek_to(e){this.player.currentTime=function(e,r,o){o=o||0;const s=1*(new t(e,r).frameCount+o)/r;return Number((s+.001).toFixed(5))}(e,this.frame_rate,-this.frame_offset)}current_timecode(){return r(this.player.currentTime,this.frame_rate,this.frame_offset)}jump(e){this.seek_to(this.current_frame()+e)}}).pluginName="fas",o);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 r=e.flowplayer;return"function"==typeof r?(r(t),t):(Array.isArray(r.extensions)||(r.extensions=[]),~r.extensions.indexOf(t)||r.extensions.push(t),t)}(window,a)});