@flowplayer/player 3.16.1-rc → 3.17.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 (53) hide show
  1. package/core/events.d.ts +0 -43
  2. package/core/events.js +2 -19
  3. package/core.js +1 -1
  4. package/default.js +1 -1
  5. package/embed.js +2 -2
  6. package/index.d.ts +0 -68
  7. package/package.json +1 -1
  8. package/plugins/ads.d.ts +0 -68
  9. package/plugins/ads.js +1 -1
  10. package/plugins/airplay.d.ts +0 -68
  11. package/plugins/analytics.d.ts +0 -68
  12. package/plugins/analytics.js +1 -1
  13. package/plugins/asel.d.ts +0 -68
  14. package/plugins/audio.d.ts +0 -68
  15. package/plugins/chapters.d.ts +3 -78
  16. package/plugins/chromecast.d.ts +0 -68
  17. package/plugins/comscore.d.ts +0 -68
  18. package/plugins/consent.d.ts +0 -68
  19. package/plugins/context-menu.d.ts +0 -68
  20. package/plugins/cuepoints.d.ts +77 -44
  21. package/plugins/cuepoints.js +1 -1
  22. package/plugins/dash.d.ts +0 -68
  23. package/plugins/drm.d.ts +0 -68
  24. package/plugins/endscreen.d.ts +0 -68
  25. package/plugins/fas.d.ts +0 -68
  26. package/plugins/float-on-scroll.d.ts +0 -68
  27. package/plugins/ga4.d.ts +0 -68
  28. package/plugins/gemius.d.ts +0 -68
  29. package/plugins/google-analytics.d.ts +0 -68
  30. package/plugins/health.d.ts +0 -68
  31. package/plugins/health.js +1 -1
  32. package/plugins/hls.d.ts +0 -68
  33. package/plugins/id3.d.ts +0 -68
  34. package/plugins/iframe.d.ts +0 -68
  35. package/plugins/keyboard.d.ts +0 -68
  36. package/plugins/media-session.d.ts +0 -68
  37. package/plugins/message.d.ts +0 -68
  38. package/plugins/ovp.d.ts +0 -68
  39. package/plugins/playlist.d.ts +0 -68
  40. package/plugins/preview.d.ts +0 -68
  41. package/plugins/qsel.d.ts +0 -68
  42. package/plugins/qul.d.ts +0 -68
  43. package/plugins/rts.d.ts +0 -68
  44. package/plugins/share.d.ts +0 -68
  45. package/plugins/speed.d.ts +0 -68
  46. package/plugins/ssai.d.ts +0 -68
  47. package/plugins/ssai.js +1 -1
  48. package/plugins/subtitles.d.ts +0 -68
  49. package/plugins/thumbnails.d.ts +0 -68
  50. package/plugins/tizen.d.ts +0 -68
  51. package/plugins/vtsel.d.ts +0 -68
  52. package/plugins/webos.d.ts +0 -68
  53. package/util/loader.d.ts +0 -68
@@ -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.analytics=t())}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){var t={exports:{}};return e(t,t.exports),t.exports}var n,r=t((function(t,n){var r=e&&e.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};n.__esModule=!0,n.remove=n.downcase=n.pluck=n.merge=void 0,n.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce((function(e,t){return r(r({},e),t)}),{})},n.pluck=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Object.keys(e).filter((function(e){return~t.indexOf(e)})).reduce((function(t,r){var i;return n.merge(t,((i={})[r]=e[r],i))}),{})},n.downcase=function(e){return(e||"").toString().toLowerCase()},n.remove=function(e,t){var n=e.lastIndexOf(t);return~n&&e.splice(n,1),e}})),i=t((function(t,n){var i=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};n.__esModule=!0;var u=a(r),s=function(){function e(){this.pending=[],this.open=[],this.stats={failures:0,ttl:0}}return e.of=function(){return new e},e.is_empty=function(e){return 0==e.pending.length},e.is_high_water=function(t){return t.open.length==e.MAX_OPEN_REQUESTS},e.maybe_spawn_req=function(t){if(e.is_empty(t))return t;if(e.is_high_water(t))return t;try{var n=e.lpop(t);n&&e.request(t,n)}catch(e){}},e.increment_failures=function(t){return t.stats.failures++,t.stats.failures>e.MAX_FAILURE_COUNT&&(t.stats.ttl=Date.now()+e.REQUEST_TTL_MS),t},e.handle_error=function(t,n){e.rm(t,n),e.increment_failures(t)},e.request=function(t,n){var r=n[0],i=n[1],o=n[2];if(!(Date.now()<t.stats.ttl)){var a=new XMLHttpRequest;t.open.push(a),a.timeout=e.REQUEST_TIMEOUT_MS,a.ontimeout=function(){e.handle_error(t,a)},a.onerror=function(n){e.handle_error(t,a)},a.onreadystatechange=function(){a.readyState==XMLHttpRequest.DONE&&e.rm(t,a),Math.floor(a.status/100)},a.onload=function(){e.rm(t,a),t.stats.failures&&t.stats.failures--},a.open(i,r),a.setRequestHeader("Content-Type","text/plain;charset=UTF-8");try{a.send(JSON.stringify(o))}catch(e){}}},e.rpush=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return n.forEach((function(n){t.pending.length>=e.MAX_PENDING||(t.pending.push(n),e.maybe_spawn_req(t))})),t},e.lpop=function(e){return e.pending.shift()},e.rm=function(e,t){return u.remove(e.open,t),e},e.MAX_OPEN_REQUESTS=3,e.MAX_PENDING=5,e.REQUEST_TIMEOUT_MS=4e3,e.REQUEST_TTL_MS=5e3,e.MAX_FAILURE_COUNT=3,e}();n.default=s})),o=t((function(t,n){var r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n.__esModule=!0;var o=r(i);n.default=o.default.of()})),a=t((function(e,t){t.__esModule=!0,t.prepare_url=t.URL_PARAM=void 0,t.URL_PARAM=/:([a-zA-Z_]+)/g,t.prepare_url=function(e,n){return e.url.replace(t.URL_PARAM,(function(t){if((t=t.slice(1,t.length))in n)return n[t].toString();e.log.error(new Error("\n preparing url["+e.url+"] failed\n \n parameter["+t+"] not detected in params:\n \n "+JSON.stringify(n,null,2)+"\n "))}))}})),u=t((function(e,t){t.__esModule=!0,t.Log=void 0;var n=function(){function e(e){this.emitter=e}return e.prepare=function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!0),n.ns=e,n.data=t,n},e.of=function(t){return new e(t)},e.prototype.info=function(t){this.emitter.dispatchEvent(e.prepare(e.NAMESPACE.INFO,t))},e.prototype.error=function(t){this.emitter.dispatchEvent(e.prepare(e.NAMESPACE.ERROR,t))},e.prototype.warn=function(t){this.emitter.dispatchEvent(e.prepare(e.NAMESPACE.WARN,t))},e.NAMESPACE={INFO:"tracker:info",ERROR:"tracker:err",WARN:"tracker:warn"},e}();t.Log=n})),s=t((function(e,t){var n;t.__esModule=!0,t.Verb=void 0,(n=t.Verb||(t.Verb={})).POST="POST",n.PUT="PUT",n.GET="GET"})),d=t((function(t,n){var d=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),c=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),f=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&d(t,e,n);return c(t,e),t},l=e&&e.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)r[i]=o[a];return r},p=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n.__esModule=!0;var _=p(o),v=p(i),m=f(a),h=f(r),y=function(){function e(t,n){var r=this;void 0===n&&(n={});var i=this;if(this.emitter=t,this.url=n.url,this.log=u.Log.of(this.emitter),this.verb=n.verb,this.metadata=h.merge({},n.metadata||{}),this.rq=n.rq||_.default,this.events=n.events||[],this.required_keys=n.required_keys||[],this.optional_keys=n.optional_keys||[],this.listeners=[],this.valid_keys=this.required_keys.slice(0).concat(this.optional_keys),e.assert_emitter_api(this.emitter),void 0===e.verb[this.verb])throw new Error("invalid HTTP verb["+this.verb+"] passed");if("string"!=typeof this.url)throw new Error("invalid API url["+this.url+"] passed");e.TRACKERS.push(this),i.events.forEach((function(t){e.create_listener(r,t,(function(n){void 0===n&&(n={});var o=h.merge(i.metadata,{event_type:t},n.data||n),a=m.prepare_url(i,o),u=e.pluck_valid_keys(i,o),s=e.ensure_required_keys(i,u);if(s.length)return i.log.error("Tracker.validate_metadata() failed for \n Event["+t+"]\n missing keys: "+s+"\n payload:\n "+JSON.stringify(u,null,2));v.default.rpush(r.rq,[a,r.verb,u])}))}))}return e.of=function(t,n){return new e(t,n)},e.ensure_required_keys=function(e,t){return e.required_keys.filter((function(e){return!(e in t)}))},e.pluck_valid_keys=function(e,t){return h.pluck.apply(h,l([t],e.valid_keys))},e.merge_metadata=function(t,n){return void 0===n&&(n={}),t.metadata=e.pluck_valid_keys(t,h.merge(t.metadata,n)),t},e.assert_emitter_api=function(e){if("function"!=typeof(e||{}).addEventListener)throw new Error("Tracker() received an emitter that does not implement the addEventListener method");if("function"!=typeof(e||{}).removeEventListener)throw new Error("Tracker() received an emitter that does not implement the removeEventListener method")},e.create_listener=function(e,t,n){e.listeners.push([t,n]),e.emitter.addEventListener(t,n)},e.prototype.destroy=function(){var t=this;this.listeners.forEach((function(e){var n=e[0],r=e[1];return t.emitter.removeEventListener(n,r)})),delete this.rq,delete this.emitter,h.remove(e.TRACKERS,this)},e.prototype.put=function(t){return void 0===t&&(t={}),e.merge_metadata(this,t),this},e.TRACKERS=[],e.QUEUE=_.default,e.verb=s.Verb,e}();n.default=y})),c=t((function(t,n){var r=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},u=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n.__esModule=!0,n.API=n.Tracker=void 0;var s=u(d);n.Tracker=s.default;var c=o(a);n.API=c}));!function(e){e[e.ADS=2]="ADS",e[e.ANALYTICS=4]="ANALYTICS",e[e.NO_METERING=8]="NO_METERING",e[e.DEVELOPER_PLAN=16]="DEVELOPER_PLAN",e[e.WOWZA_VIDEO=32]="WOWZA_VIDEO"}(n||(n={}));const f=["localhost","127.0.0.1","0.0.0.0","s.codepen.io","cdpn.io","try.flowplayer.com"];function l(e,t){return!!~f.indexOf(e)||e.indexOf(t)===e.length-t.length}l.check_whitelist=function(e){return!!~f.indexOf(e)};function p(e){this.message=e}p.prototype=new Error,p.prototype.name="InvalidCharacterError";var _="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new p("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,a="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?a+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};var v=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(_(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return _(t)}};function m(e){this.message=e}m.prototype=new Error,m.prototype.name="InvalidTokenError";var h=function(e,t){if("string"!=typeof e)throw new m("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(v(e.split(".")[n]))}catch(e){throw new m("Invalid token specified: "+e.message)}};h.InvalidTokenError=m;const y="production";function g(e,t){const n={valid_jwt:!1,raw:"",data:{acl:0},exp:0};let r={c:"{}",exp:0};t=t||{};try{r=h(e),n.valid_jwt=!0}catch(e){}return n.raw=e,n.data=JSON.parse(r.c),n.exp=r.exp,t.require_valid_token&&g.validate(n),n}function w(e){return{grant:e,is_granted:t=>(e&t)===t}}function k(e,t,n){const r=function(e){return Array.isArray(e)?e.slice(0):e.split(".")}(t);for(;r.length;){if(null==e)return n;const t=r.shift();if("string"!=typeof t)return n;e=e[t]}return null==e?n:e}g.validate=function(e){if("string"==typeof e&&(e=g(e)),!e||!e.raw){if(l.check_whitelist(window.location.hostname)||"dev"===y.toString())return!0;throw new Error("No token provided in configuration")}if(!e.valid_jwt)throw new Error("Invalid token provided");const t=window.location.hostname,n=l.bind(null,t);if("dev"!==y.toString()&&e.data.domain&&e.data.domain.length&&!e.data.domain.some(n))throw new Error("Domain not allowed");if("dev"!==y.toString()&&1e3*e.exp-Date.now()<0)throw new Error("Expired token");return!0},g.id=function(e){if(e)return"string"==typeof e&&(e=g(e)),e.data.id},w.of=w,w.from_token=function(e){const t=g(e,{require_valid_token:!0});return w.of(t.data.acl)},w.permissions=n;var E="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};var b="ping",O="display",A="view";const T=["sitegroup_id","session_id","media_id","site_id","player_id","video_type"],S=["created","position"],M=["player_version","created","source","category","category_id","autoplay","muted","customer_user_id"];function P(e,t){return e.duration/1===e.duration&&Object.assign(t,function(e){const t=e/100;return{segment_duration:t,breakpoints:Array(...Array(100)).map((function(e,n){return Math.floor(n*t*1e3)/1e3}))}}(e.duration))}function R(e,t,n){if(!t.segment_duration&&!P(e,t))return;const r=function(e,t,n){const r=t.last_idx,i=n?99:x(e,t);return t.last_idx=i,i<=r?[]:t.breakpoints.slice(r,99==i?100:i).map((function(e){return t.breakpoints.indexOf(e)}))}(e,t,n);0!=r.length&&e.emit(b,{position:r})}function x(e,t){return Math.min(Math.floor(e.currentTime/t.segment_duration),99)}function N(){try{const e=window.location!==window.parent.location?document.referrer:document.location.href;return"string"==typeof e&&e.slice(0,200)}catch(e){return!1}}const I="vod",L="live",j=[O,b,A];function q(e,t,n){switch(null==t?void 0:t.kind){case"live":return function(e,t){const n=Date.now();n-t.last_tracked_ts<6e4||(t.last_tracked_ts=n,++t.ticks,e.emit(b,{position:60*t.ticks}))}(e,t);case"vod":return R(e,t,"boolean"==typeof n&&n)}}function U(e){const t=e.ads;return void 0!==t&&(void 0!==t.schedule&&("function"==typeof t.hasPreroll&&(t.currentRequests?t.currentRequests:!!t.adPlaying||!(!t.hasPreroll()||0!=t.nextIndex))))}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)}("undefined"!=typeof window?window:void 0!==E?E:{},class Analytics{init(e,t,n){if(!w.from_token(e.token||"").is_granted(w.permissions.ANALYTICS))return;if(n.hasState("consent-no-tracking"))return;if(n.analytics)return;const r=n.analytics={ticker:void 0,last_media_id:"",ended:!1},i={locked:!1,ttl:6e3,task:()=>{q(n,r.ticker)}};const o={session_id:n.deviceId(),autoplay:n.autoplay,muted:n.muted,player_id:e.player_id,customer_user_id:e.customer_user_id,player_version:"3.16.1-rc"},a=c.Tracker.of(n,{verb:c.Tracker.verb.POST,url:"https://ptm.flowplayer.com/:video_type/:sitegroup_id/:event_type",events:j,required_keys:T,optional_keys:M.concat(S).slice(0),metadata:o});n.on("reap",(function(){a&&a.destroy()})),n.on("config",(function(t){if(!a)return;const i=k(t,"data.metadata",{});if(!i.media_id)return;const o=k(a,"metadata.media_id");if(o&&i.media_id==o)return;const u=k(e,"analytics",{});a.put(i),a.put(u);const s=k(e,"metadata.live_start_time",e.live)?L:I;a.put({video_type:s,source:e.source||N()||""}),r.ticker=e.live?{ticks:0,last_tracked_ts:Date.now(),kind:"live"}:{last_idx:0,segment_duration:0,breakpoints:[],kind:"vod"},r.ended=!1,n.emit(O)}));let u=0;n.on("playing",(function(){if(!a)return;if(u||function(e,t){return e.metadata.media_id&&e.metadata.media_id==t.last_media_id}(a,r))return;a.put({muted:n.muted});const e=U(n);if(e)return u=Promise.resolve(e).then((function(){r.last_media_id=a.metadata.media_id,n.emit(A),u=0})).catch((function(){u=0}));r.last_media_id=a.metadata.media_id,n.emit(A)})),n.on("timeupdate",(function(){var t;a&&(u||U(n)||r.ended||(!e.live&&n.currentTime+.25>=n.duration&&q(n,r.ticker,!0),(t=i).locked||(t.locked=setTimeout((function(){return t.task(),function(e){return e.locked=!1,e}(t)}),t.ttl))))})),n.on("seeked",(function(){a&&r.ticker&&"vod"==r.ticker.kind&&function(e,t){P(e,t),t.last_idx=x(e,t)}(n,r.ticker)})),n.on("ended",(function(){a&&function(e,t){t.ended||(t.ended=!0,q(e,t.ticker))}(n,r)}))}})}));
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.analytics=t())}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){var t={exports:{}};return e(t,t.exports),t.exports}var n,r=t((function(t,n){var r=e&&e.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};n.__esModule=!0,n.remove=n.downcase=n.pluck=n.merge=void 0,n.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce((function(e,t){return r(r({},e),t)}),{})},n.pluck=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Object.keys(e).filter((function(e){return~t.indexOf(e)})).reduce((function(t,r){var i;return n.merge(t,((i={})[r]=e[r],i))}),{})},n.downcase=function(e){return(e||"").toString().toLowerCase()},n.remove=function(e,t){var n=e.lastIndexOf(t);return~n&&e.splice(n,1),e}})),i=t((function(t,n){var i=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};n.__esModule=!0;var u=a(r),s=function(){function e(){this.pending=[],this.open=[],this.stats={failures:0,ttl:0}}return e.of=function(){return new e},e.is_empty=function(e){return 0==e.pending.length},e.is_high_water=function(t){return t.open.length==e.MAX_OPEN_REQUESTS},e.maybe_spawn_req=function(t){if(e.is_empty(t))return t;if(e.is_high_water(t))return t;try{var n=e.lpop(t);n&&e.request(t,n)}catch(e){}},e.increment_failures=function(t){return t.stats.failures++,t.stats.failures>e.MAX_FAILURE_COUNT&&(t.stats.ttl=Date.now()+e.REQUEST_TTL_MS),t},e.handle_error=function(t,n){e.rm(t,n),e.increment_failures(t)},e.request=function(t,n){var r=n[0],i=n[1],o=n[2];if(!(Date.now()<t.stats.ttl)){var a=new XMLHttpRequest;t.open.push(a),a.timeout=e.REQUEST_TIMEOUT_MS,a.ontimeout=function(){e.handle_error(t,a)},a.onerror=function(n){e.handle_error(t,a)},a.onreadystatechange=function(){a.readyState==XMLHttpRequest.DONE&&e.rm(t,a),Math.floor(a.status/100)},a.onload=function(){e.rm(t,a),t.stats.failures&&t.stats.failures--},a.open(i,r),a.setRequestHeader("Content-Type","text/plain;charset=UTF-8");try{a.send(JSON.stringify(o))}catch(e){}}},e.rpush=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return n.forEach((function(n){t.pending.length>=e.MAX_PENDING||(t.pending.push(n),e.maybe_spawn_req(t))})),t},e.lpop=function(e){return e.pending.shift()},e.rm=function(e,t){return u.remove(e.open,t),e},e.MAX_OPEN_REQUESTS=3,e.MAX_PENDING=5,e.REQUEST_TIMEOUT_MS=4e3,e.REQUEST_TTL_MS=5e3,e.MAX_FAILURE_COUNT=3,e}();n.default=s})),o=t((function(t,n){var r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n.__esModule=!0;var o=r(i);n.default=o.default.of()})),a=t((function(e,t){t.__esModule=!0,t.prepare_url=t.URL_PARAM=void 0,t.URL_PARAM=/:([a-zA-Z_]+)/g,t.prepare_url=function(e,n){return e.url.replace(t.URL_PARAM,(function(t){if((t=t.slice(1,t.length))in n)return n[t].toString();e.log.error(new Error("\n preparing url["+e.url+"] failed\n \n parameter["+t+"] not detected in params:\n \n "+JSON.stringify(n,null,2)+"\n "))}))}})),u=t((function(e,t){t.__esModule=!0,t.Log=void 0;var n=function(){function e(e){this.emitter=e}return e.prepare=function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!0),n.ns=e,n.data=t,n},e.of=function(t){return new e(t)},e.prototype.info=function(t){this.emitter.dispatchEvent(e.prepare(e.NAMESPACE.INFO,t))},e.prototype.error=function(t){this.emitter.dispatchEvent(e.prepare(e.NAMESPACE.ERROR,t))},e.prototype.warn=function(t){this.emitter.dispatchEvent(e.prepare(e.NAMESPACE.WARN,t))},e.NAMESPACE={INFO:"tracker:info",ERROR:"tracker:err",WARN:"tracker:warn"},e}();t.Log=n})),s=t((function(e,t){var n;t.__esModule=!0,t.Verb=void 0,(n=t.Verb||(t.Verb={})).POST="POST",n.PUT="PUT",n.GET="GET"})),d=t((function(t,n){var d=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),c=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),f=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&d(t,e,n);return c(t,e),t},l=e&&e.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)r[i]=o[a];return r},p=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n.__esModule=!0;var _=p(o),v=p(i),m=f(a),h=f(r),y=function(){function e(t,n){var r=this;void 0===n&&(n={});var i=this;if(this.emitter=t,this.url=n.url,this.log=u.Log.of(this.emitter),this.verb=n.verb,this.metadata=h.merge({},n.metadata||{}),this.rq=n.rq||_.default,this.events=n.events||[],this.required_keys=n.required_keys||[],this.optional_keys=n.optional_keys||[],this.listeners=[],this.valid_keys=this.required_keys.slice(0).concat(this.optional_keys),e.assert_emitter_api(this.emitter),void 0===e.verb[this.verb])throw new Error("invalid HTTP verb["+this.verb+"] passed");if("string"!=typeof this.url)throw new Error("invalid API url["+this.url+"] passed");e.TRACKERS.push(this),i.events.forEach((function(t){e.create_listener(r,t,(function(n){void 0===n&&(n={});var o=h.merge(i.metadata,{event_type:t},n.data||n),a=m.prepare_url(i,o),u=e.pluck_valid_keys(i,o),s=e.ensure_required_keys(i,u);if(s.length)return i.log.error("Tracker.validate_metadata() failed for \n Event["+t+"]\n missing keys: "+s+"\n payload:\n "+JSON.stringify(u,null,2));v.default.rpush(r.rq,[a,r.verb,u])}))}))}return e.of=function(t,n){return new e(t,n)},e.ensure_required_keys=function(e,t){return e.required_keys.filter((function(e){return!(e in t)}))},e.pluck_valid_keys=function(e,t){return h.pluck.apply(h,l([t],e.valid_keys))},e.merge_metadata=function(t,n){return void 0===n&&(n={}),t.metadata=e.pluck_valid_keys(t,h.merge(t.metadata,n)),t},e.assert_emitter_api=function(e){if("function"!=typeof(e||{}).addEventListener)throw new Error("Tracker() received an emitter that does not implement the addEventListener method");if("function"!=typeof(e||{}).removeEventListener)throw new Error("Tracker() received an emitter that does not implement the removeEventListener method")},e.create_listener=function(e,t,n){e.listeners.push([t,n]),e.emitter.addEventListener(t,n)},e.prototype.destroy=function(){var t=this;this.listeners.forEach((function(e){var n=e[0],r=e[1];return t.emitter.removeEventListener(n,r)})),delete this.rq,delete this.emitter,h.remove(e.TRACKERS,this)},e.prototype.put=function(t){return void 0===t&&(t={}),e.merge_metadata(this,t),this},e.TRACKERS=[],e.QUEUE=_.default,e.verb=s.Verb,e}();n.default=y})),c=t((function(t,n){var r=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},u=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n.__esModule=!0,n.API=n.Tracker=void 0;var s=u(d);n.Tracker=s.default;var c=o(a);n.API=c}));!function(e){e[e.ADS=2]="ADS",e[e.ANALYTICS=4]="ANALYTICS",e[e.NO_METERING=8]="NO_METERING",e[e.DEVELOPER_PLAN=16]="DEVELOPER_PLAN",e[e.WOWZA_VIDEO=32]="WOWZA_VIDEO"}(n||(n={}));const f=["localhost","127.0.0.1","0.0.0.0","s.codepen.io","cdpn.io","try.flowplayer.com"];function l(e,t){return!!~f.indexOf(e)||e.indexOf(t)===e.length-t.length}l.check_whitelist=function(e){return!!~f.indexOf(e)};function p(e){this.message=e}p.prototype=new Error,p.prototype.name="InvalidCharacterError";var _="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new p("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,a="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?a+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};var v=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(_(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return _(t)}};function m(e){this.message=e}m.prototype=new Error,m.prototype.name="InvalidTokenError";var h=function(e,t){if("string"!=typeof e)throw new m("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(v(e.split(".")[n]))}catch(e){throw new m("Invalid token specified: "+e.message)}};h.InvalidTokenError=m;const y="production";function g(e,t){const n={valid_jwt:!1,raw:"",data:{acl:0},exp:0};let r={c:"{}",exp:0};t=t||{};try{r=h(e),n.valid_jwt=!0}catch(e){}return n.raw=e,n.data=JSON.parse(r.c),n.exp=r.exp,t.require_valid_token&&g.validate(n),n}function w(e){return{grant:e,is_granted:t=>(e&t)===t}}function k(e,t,n){const r=function(e){return Array.isArray(e)?e.slice(0):e.split(".")}(t);for(;r.length;){if(null==e)return n;const t=r.shift();if("string"!=typeof t)return n;e=e[t]}return null==e?n:e}g.validate=function(e){if("string"==typeof e&&(e=g(e)),!e||!e.raw){if(l.check_whitelist(window.location.hostname)||"dev"===y.toString())return!0;throw new Error("No token provided in configuration")}if(!e.valid_jwt)throw new Error("Invalid token provided");const t=window.location.hostname,n=l.bind(null,t);if("dev"!==y.toString()&&e.data.domain&&e.data.domain.length&&!e.data.domain.some(n))throw new Error("Domain not allowed");if("dev"!==y.toString()&&1e3*e.exp-Date.now()<0)throw new Error("Expired token");return!0},g.id=function(e){if(e)return"string"==typeof e&&(e=g(e)),e.data.id},w.of=w,w.from_token=function(e){const t=g(e,{require_valid_token:!0});return w.of(t.data.acl)},w.permissions=n;var E="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};var b="ping",O="display",A="view";const T=["sitegroup_id","session_id","media_id","site_id","player_id","video_type"],S=["created","position"],M=["player_version","created","source","category","category_id","autoplay","muted","customer_user_id"];function P(e,t){return e.duration/1===e.duration&&Object.assign(t,function(e){const t=e/100;return{segment_duration:t,breakpoints:Array(...Array(100)).map((function(e,n){return Math.floor(n*t*1e3)/1e3}))}}(e.duration))}function R(e,t,n){if(!t.segment_duration&&!P(e,t))return;const r=function(e,t,n){const r=t.last_idx,i=n?99:x(e,t);return t.last_idx=i,i<=r?[]:t.breakpoints.slice(r,99==i?100:i).map((function(e){return t.breakpoints.indexOf(e)}))}(e,t,n);0!=r.length&&e.emit(b,{position:r})}function x(e,t){return Math.min(Math.floor(e.currentTime/t.segment_duration),99)}function N(){try{const e=window.location!==window.parent.location?document.referrer:document.location.href;return"string"==typeof e&&e.slice(0,200)}catch(e){return!1}}const I="vod",L="live",j=[O,b,A];function q(e,t,n){switch(null==t?void 0:t.kind){case"live":return function(e,t){const n=Date.now();n-t.last_tracked_ts<6e4||(t.last_tracked_ts=n,++t.ticks,e.emit(b,{position:60*t.ticks}))}(e,t);case"vod":return R(e,t,"boolean"==typeof n&&n)}}function U(e){const t=e.ads;return void 0!==t&&(void 0!==t.schedule&&("function"==typeof t.hasPreroll&&(t.currentRequests?t.currentRequests:!!t.adPlaying||!(!t.hasPreroll()||0!=t.nextIndex))))}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)}("undefined"!=typeof window?window:void 0!==E?E:{},class Analytics{init(e,t,n){if(!w.from_token(e.token||"").is_granted(w.permissions.ANALYTICS))return;if(n.hasState("consent-no-tracking"))return;if(n.analytics)return;const r=n.analytics={ticker:void 0,last_media_id:"",ended:!1},i={locked:!1,ttl:6e3,task:()=>{q(n,r.ticker)}};const o={session_id:n.deviceId(),autoplay:n.autoplay,muted:n.muted,player_id:e.player_id,customer_user_id:e.customer_user_id,player_version:"3.17.0-rc"},a=c.Tracker.of(n,{verb:c.Tracker.verb.POST,url:"https://ptm.flowplayer.com/:video_type/:sitegroup_id/:event_type",events:j,required_keys:T,optional_keys:M.concat(S).slice(0),metadata:o});n.on("reap",(function(){a&&a.destroy()})),n.on("config",(function(t){if(!a)return;const i=k(t,"data.metadata",{});if(!i.media_id)return;const o=k(a,"metadata.media_id");if(o&&i.media_id==o)return;const u=k(e,"analytics",{});a.put(i),a.put(u);const s=k(e,"metadata.live_start_time",e.live)?L:I;a.put({video_type:s,source:e.source||N()||""}),r.ticker=e.live?{ticks:0,last_tracked_ts:Date.now(),kind:"live"}:{last_idx:0,segment_duration:0,breakpoints:[],kind:"vod"},r.ended=!1,n.emit(O)}));let u=0;n.on("playing",(function(){if(!a)return;if(u||function(e,t){return e.metadata.media_id&&e.metadata.media_id==t.last_media_id}(a,r))return;a.put({muted:n.muted});const e=U(n);if(e)return u=Promise.resolve(e).then((function(){r.last_media_id=a.metadata.media_id,n.emit(A),u=0})).catch((function(){u=0}));r.last_media_id=a.metadata.media_id,n.emit(A)})),n.on("timeupdate",(function(){var t;a&&(u||U(n)||r.ended||(!e.live&&n.currentTime+.25>=n.duration&&q(n,r.ticker,!0),(t=i).locked||(t.locked=setTimeout((function(){return t.task(),function(e){return e.locked=!1,e}(t)}),t.ttl))))})),n.on("seeked",(function(){a&&r.ticker&&"vod"==r.ticker.kind&&function(e,t){P(e,t),t.last_idx=x(e,t)}(n,r.ticker)})),n.on("ended",(function(){a&&function(e,t){t.ended||(t.ended=!0,q(e,t.ticker))}(n,r)}))}})}));
package/plugins/asel.d.ts CHANGED
@@ -272,59 +272,6 @@ CONTEXT_MENU = "contextmenu";
272
272
  */
273
273
  declare type ContextMenuEventDetail = null;
274
274
 
275
- /**
276
- * @public
277
- * when a cuepoint becomes inactive
278
- */
279
- declare const /**
280
- @public
281
- * when a new player is inserted into the HTML
282
- */ /**
283
- * @public
284
- * when a cuepoint becomes inactive
285
- */
286
- CUEPOINT_END = "cuepointend";
287
-
288
- /**
289
- * @public
290
- * when a cuepoint is active
291
- */
292
- declare const /**
293
- @public
294
- * when a new player is inserted into the HTML
295
- */ /**
296
- * @public
297
- * when a cuepoint is active
298
- */
299
- CUEPOINT_START = "cuepointstart";
300
-
301
- /**
302
- * @public
303
- */
304
- declare type CuePointEndEventDetail = null;
305
-
306
- /**
307
- * @public
308
- * cuepoints parsing is asynchronous
309
- * you cannot rely on them existing until
310
- * this event is emitted
311
- */
312
- declare const /**
313
- @public
314
- * when a new player is inserted into the HTML
315
- */ /**
316
- * @public
317
- * cuepoints parsing is asynchronous
318
- * you cannot rely on them existing until
319
- * this event is emitted
320
- */
321
- CUEPOINTS = "cuepoints";
322
-
323
- /**
324
- * @public
325
- */
326
- declare type CuePointStartEventDetail = null;
327
-
328
275
  /**
329
276
  * @public
330
277
  */
@@ -496,9 +443,6 @@ declare namespace events {
496
443
  SEEKED,
497
444
  SEEKING_2 as SEEKING,
498
445
  DURATION_CHANGE,
499
- CUEPOINTS,
500
- CUEPOINT_START,
501
- CUEPOINT_END,
502
446
  VIEW_ENTER,
503
447
  VIEW_LEAVE,
504
448
  SOURCE,
@@ -1036,8 +980,6 @@ declare type PlayerCustomEventName = keyof PlayerCustomEventsDetailMap;
1036
980
  declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap & {
1037
981
  [REAP]: ReapEventDetail;
1038
982
  [SOURCE]: SourceEventDetail;
1039
- [CUEPOINT_START]: CuePointStartEventDetail;
1040
- [CUEPOINT_END]: CuePointEndEventDetail;
1041
983
  [MOUNT]: MountEventDetail;
1042
984
  [LIVE]: LiveEventDetail;
1043
985
  [DVR]: DvrEventDetail;
@@ -1070,16 +1012,6 @@ declare type PlayerCustomEventsOverloads = {
1070
1012
  /* Excluded from this release type: on */
1071
1013
  /* Excluded from this release type: on */
1072
1014
  /* Excluded from this release type: on */
1073
- /**
1074
- * TODO - move to Cuepoints? Sent when a configured cuepoint is entered.
1075
- */
1076
- on(event: typeof CUEPOINT_START, // TODO: move to Cuepoints
1077
- handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof CUEPOINT_START]>) => void): Player;
1078
- /**
1079
- * Sent when a configured cuepoint is terminated.
1080
- */
1081
- on(event: typeof CUEPOINT_END, // TODO: move to Cuepoints
1082
- handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof CUEPOINT_END]>) => void): Player;
1083
1015
  /**
1084
1016
  * Sent when the player becomes visible for the user.
1085
1017
  */
@@ -163,59 +163,6 @@ CONTEXT_MENU = "contextmenu";
163
163
  */
164
164
  declare type ContextMenuEventDetail = null;
165
165
 
166
- /**
167
- * @public
168
- * when a cuepoint becomes inactive
169
- */
170
- declare const /**
171
- @public
172
- * when a new player is inserted into the HTML
173
- */ /**
174
- * @public
175
- * when a cuepoint becomes inactive
176
- */
177
- CUEPOINT_END = "cuepointend";
178
-
179
- /**
180
- * @public
181
- * when a cuepoint is active
182
- */
183
- declare const /**
184
- @public
185
- * when a new player is inserted into the HTML
186
- */ /**
187
- * @public
188
- * when a cuepoint is active
189
- */
190
- CUEPOINT_START = "cuepointstart";
191
-
192
- /**
193
- * @public
194
- */
195
- declare type CuePointEndEventDetail = null;
196
-
197
- /**
198
- * @public
199
- * cuepoints parsing is asynchronous
200
- * you cannot rely on them existing until
201
- * this event is emitted
202
- */
203
- declare const /**
204
- @public
205
- * when a new player is inserted into the HTML
206
- */ /**
207
- * @public
208
- * cuepoints parsing is asynchronous
209
- * you cannot rely on them existing until
210
- * this event is emitted
211
- */
212
- CUEPOINTS = "cuepoints";
213
-
214
- /**
215
- * @public
216
- */
217
- declare type CuePointStartEventDetail = null;
218
-
219
166
  /**
220
167
  * @public
221
168
  */
@@ -387,9 +334,6 @@ declare namespace events {
387
334
  SEEKED,
388
335
  SEEKING_2 as SEEKING,
389
336
  DURATION_CHANGE,
390
- CUEPOINTS,
391
- CUEPOINT_START,
392
- CUEPOINT_END,
393
337
  VIEW_ENTER,
394
338
  VIEW_LEAVE,
395
339
  SOURCE,
@@ -919,8 +863,6 @@ declare type PlayerCustomEventName = keyof PlayerCustomEventsDetailMap;
919
863
  declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap & {
920
864
  [REAP]: ReapEventDetail;
921
865
  [SOURCE]: SourceEventDetail;
922
- [CUEPOINT_START]: CuePointStartEventDetail;
923
- [CUEPOINT_END]: CuePointEndEventDetail;
924
866
  [MOUNT]: MountEventDetail;
925
867
  [LIVE]: LiveEventDetail;
926
868
  [DVR]: DvrEventDetail;
@@ -953,16 +895,6 @@ declare type PlayerCustomEventsOverloads = {
953
895
  /* Excluded from this release type: on */
954
896
  /* Excluded from this release type: on */
955
897
  /* Excluded from this release type: on */
956
- /**
957
- * TODO - move to Cuepoints? Sent when a configured cuepoint is entered.
958
- */
959
- on(event: typeof CUEPOINT_START, // TODO: move to Cuepoints
960
- handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof CUEPOINT_START]>) => void): Player;
961
- /**
962
- * Sent when a configured cuepoint is terminated.
963
- */
964
- on(event: typeof CUEPOINT_END, // TODO: move to Cuepoints
965
- handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof CUEPOINT_END]>) => void): Player;
966
898
  /**
967
899
  * Sent when the player becomes visible for the user.
968
900
  */
@@ -70,19 +70,12 @@ CAN_PLAY = "canplay";
70
70
 
71
71
  /**
72
72
  * @public
73
+ * Plugin that enables display of chapters from the OVP Chapter Editor.
74
+ * See {@link https://www.wowza.com/docs/add-chapters-and-subtitles-to-a-video-in-wowza-video | Official docs}
73
75
  */
74
- declare const Chapters: PluginCtor<ChaptersConfig, Player>;
76
+ declare const Chapters: PluginCtor<Config, Player>;
75
77
  export default Chapters;
76
78
 
77
- declare type ChaptersConfig = ConfigWith<{
78
- chapters?: ChaptersConfigurationObject | ChaptersConfigurationObject[];
79
- }>;
80
-
81
- declare type ChaptersConfigurationObject = {
82
- src: string;
83
- lang?: string;
84
- };
85
-
86
79
  /**
87
80
  * @public
88
81
  */
@@ -172,59 +165,6 @@ CONTEXT_MENU = "contextmenu";
172
165
  */
173
166
  declare type ContextMenuEventDetail = null;
174
167
 
175
- /**
176
- * @public
177
- * when a cuepoint becomes inactive
178
- */
179
- declare const /**
180
- @public
181
- * when a new player is inserted into the HTML
182
- */ /**
183
- * @public
184
- * when a cuepoint becomes inactive
185
- */
186
- CUEPOINT_END = "cuepointend";
187
-
188
- /**
189
- * @public
190
- * when a cuepoint is active
191
- */
192
- declare const /**
193
- @public
194
- * when a new player is inserted into the HTML
195
- */ /**
196
- * @public
197
- * when a cuepoint is active
198
- */
199
- CUEPOINT_START = "cuepointstart";
200
-
201
- /**
202
- * @public
203
- */
204
- declare type CuePointEndEventDetail = null;
205
-
206
- /**
207
- * @public
208
- * cuepoints parsing is asynchronous
209
- * you cannot rely on them existing until
210
- * this event is emitted
211
- */
212
- declare const /**
213
- @public
214
- * when a new player is inserted into the HTML
215
- */ /**
216
- * @public
217
- * cuepoints parsing is asynchronous
218
- * you cannot rely on them existing until
219
- * this event is emitted
220
- */
221
- CUEPOINTS = "cuepoints";
222
-
223
- /**
224
- * @public
225
- */
226
- declare type CuePointStartEventDetail = null;
227
-
228
168
  /**
229
169
  * @public
230
170
  */
@@ -396,9 +336,6 @@ declare namespace events {
396
336
  SEEKED,
397
337
  SEEKING_2 as SEEKING,
398
338
  DURATION_CHANGE,
399
- CUEPOINTS,
400
- CUEPOINT_START,
401
- CUEPOINT_END,
402
339
  VIEW_ENTER,
403
340
  VIEW_LEAVE,
404
341
  SOURCE,
@@ -928,8 +865,6 @@ declare type PlayerCustomEventName = keyof PlayerCustomEventsDetailMap;
928
865
  declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap & {
929
866
  [REAP]: ReapEventDetail;
930
867
  [SOURCE]: SourceEventDetail;
931
- [CUEPOINT_START]: CuePointStartEventDetail;
932
- [CUEPOINT_END]: CuePointEndEventDetail;
933
868
  [MOUNT]: MountEventDetail;
934
869
  [LIVE]: LiveEventDetail;
935
870
  [DVR]: DvrEventDetail;
@@ -962,16 +897,6 @@ declare type PlayerCustomEventsOverloads = {
962
897
  /* Excluded from this release type: on */
963
898
  /* Excluded from this release type: on */
964
899
  /* Excluded from this release type: on */
965
- /**
966
- * TODO - move to Cuepoints? Sent when a configured cuepoint is entered.
967
- */
968
- on(event: typeof CUEPOINT_START, // TODO: move to Cuepoints
969
- handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof CUEPOINT_START]>) => void): Player;
970
- /**
971
- * Sent when a configured cuepoint is terminated.
972
- */
973
- on(event: typeof CUEPOINT_END, // TODO: move to Cuepoints
974
- handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof CUEPOINT_END]>) => void): Player;
975
900
  /**
976
901
  * Sent when the player becomes visible for the user.
977
902
  */
@@ -213,59 +213,6 @@ CONTEXT_MENU = "contextmenu";
213
213
  */
214
214
  declare type ContextMenuEventDetail = null;
215
215
 
216
- /**
217
- * @public
218
- * when a cuepoint becomes inactive
219
- */
220
- declare const /**
221
- @public
222
- * when a new player is inserted into the HTML
223
- */ /**
224
- * @public
225
- * when a cuepoint becomes inactive
226
- */
227
- CUEPOINT_END = "cuepointend";
228
-
229
- /**
230
- * @public
231
- * when a cuepoint is active
232
- */
233
- declare const /**
234
- @public
235
- * when a new player is inserted into the HTML
236
- */ /**
237
- * @public
238
- * when a cuepoint is active
239
- */
240
- CUEPOINT_START = "cuepointstart";
241
-
242
- /**
243
- * @public
244
- */
245
- declare type CuePointEndEventDetail = null;
246
-
247
- /**
248
- * @public
249
- * cuepoints parsing is asynchronous
250
- * you cannot rely on them existing until
251
- * this event is emitted
252
- */
253
- declare const /**
254
- @public
255
- * when a new player is inserted into the HTML
256
- */ /**
257
- * @public
258
- * cuepoints parsing is asynchronous
259
- * you cannot rely on them existing until
260
- * this event is emitted
261
- */
262
- CUEPOINTS = "cuepoints";
263
-
264
- /**
265
- * @public
266
- */
267
- declare type CuePointStartEventDetail = null;
268
-
269
216
  /**
270
217
  * @public
271
218
  */
@@ -437,9 +384,6 @@ declare namespace events {
437
384
  SEEKED,
438
385
  SEEKING_2 as SEEKING,
439
386
  DURATION_CHANGE,
440
- CUEPOINTS,
441
- CUEPOINT_START,
442
- CUEPOINT_END,
443
387
  VIEW_ENTER,
444
388
  VIEW_LEAVE,
445
389
  SOURCE,
@@ -971,8 +915,6 @@ declare type PlayerCustomEventName = keyof PlayerCustomEventsDetailMap;
971
915
  declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap & {
972
916
  [REAP]: ReapEventDetail;
973
917
  [SOURCE]: SourceEventDetail;
974
- [CUEPOINT_START]: CuePointStartEventDetail;
975
- [CUEPOINT_END]: CuePointEndEventDetail;
976
918
  [MOUNT]: MountEventDetail;
977
919
  [LIVE]: LiveEventDetail;
978
920
  [DVR]: DvrEventDetail;
@@ -1005,16 +947,6 @@ declare type PlayerCustomEventsOverloads = {
1005
947
  /* Excluded from this release type: on */
1006
948
  /* Excluded from this release type: on */
1007
949
  /* Excluded from this release type: on */
1008
- /**
1009
- * TODO - move to Cuepoints? Sent when a configured cuepoint is entered.
1010
- */
1011
- on(event: typeof CUEPOINT_START, // TODO: move to Cuepoints
1012
- handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof CUEPOINT_START]>) => void): Player;
1013
- /**
1014
- * Sent when a configured cuepoint is terminated.
1015
- */
1016
- on(event: typeof CUEPOINT_END, // TODO: move to Cuepoints
1017
- handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof CUEPOINT_END]>) => void): Player;
1018
950
  /**
1019
951
  * Sent when the player becomes visible for the user.
1020
952
  */
@@ -163,59 +163,6 @@ CONTEXT_MENU = "contextmenu";
163
163
  */
164
164
  declare type ContextMenuEventDetail = null;
165
165
 
166
- /**
167
- * @public
168
- * when a cuepoint becomes inactive
169
- */
170
- declare const /**
171
- @public
172
- * when a new player is inserted into the HTML
173
- */ /**
174
- * @public
175
- * when a cuepoint becomes inactive
176
- */
177
- CUEPOINT_END = "cuepointend";
178
-
179
- /**
180
- * @public
181
- * when a cuepoint is active
182
- */
183
- declare const /**
184
- @public
185
- * when a new player is inserted into the HTML
186
- */ /**
187
- * @public
188
- * when a cuepoint is active
189
- */
190
- CUEPOINT_START = "cuepointstart";
191
-
192
- /**
193
- * @public
194
- */
195
- declare type CuePointEndEventDetail = null;
196
-
197
- /**
198
- * @public
199
- * cuepoints parsing is asynchronous
200
- * you cannot rely on them existing until
201
- * this event is emitted
202
- */
203
- declare const /**
204
- @public
205
- * when a new player is inserted into the HTML
206
- */ /**
207
- * @public
208
- * cuepoints parsing is asynchronous
209
- * you cannot rely on them existing until
210
- * this event is emitted
211
- */
212
- CUEPOINTS = "cuepoints";
213
-
214
- /**
215
- * @public
216
- */
217
- declare type CuePointStartEventDetail = null;
218
-
219
166
  /**
220
167
  * @public
221
168
  */
@@ -387,9 +334,6 @@ declare namespace events {
387
334
  SEEKED,
388
335
  SEEKING_2 as SEEKING,
389
336
  DURATION_CHANGE,
390
- CUEPOINTS,
391
- CUEPOINT_START,
392
- CUEPOINT_END,
393
337
  VIEW_ENTER,
394
338
  VIEW_LEAVE,
395
339
  SOURCE,
@@ -919,8 +863,6 @@ declare type PlayerCustomEventName = keyof PlayerCustomEventsDetailMap;
919
863
  declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap & {
920
864
  [REAP]: ReapEventDetail;
921
865
  [SOURCE]: SourceEventDetail;
922
- [CUEPOINT_START]: CuePointStartEventDetail;
923
- [CUEPOINT_END]: CuePointEndEventDetail;
924
866
  [MOUNT]: MountEventDetail;
925
867
  [LIVE]: LiveEventDetail;
926
868
  [DVR]: DvrEventDetail;
@@ -953,16 +895,6 @@ declare type PlayerCustomEventsOverloads = {
953
895
  /* Excluded from this release type: on */
954
896
  /* Excluded from this release type: on */
955
897
  /* Excluded from this release type: on */
956
- /**
957
- * TODO - move to Cuepoints? Sent when a configured cuepoint is entered.
958
- */
959
- on(event: typeof CUEPOINT_START, // TODO: move to Cuepoints
960
- handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof CUEPOINT_START]>) => void): Player;
961
- /**
962
- * Sent when a configured cuepoint is terminated.
963
- */
964
- on(event: typeof CUEPOINT_END, // TODO: move to Cuepoints
965
- handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof CUEPOINT_END]>) => void): Player;
966
898
  /**
967
899
  * Sent when the player becomes visible for the user.
968
900
  */
@@ -189,59 +189,6 @@ CONTEXT_MENU = "contextmenu";
189
189
  */
190
190
  declare type ContextMenuEventDetail = null;
191
191
 
192
- /**
193
- * @public
194
- * when a cuepoint becomes inactive
195
- */
196
- declare const /**
197
- @public
198
- * when a new player is inserted into the HTML
199
- */ /**
200
- * @public
201
- * when a cuepoint becomes inactive
202
- */
203
- CUEPOINT_END = "cuepointend";
204
-
205
- /**
206
- * @public
207
- * when a cuepoint is active
208
- */
209
- declare const /**
210
- @public
211
- * when a new player is inserted into the HTML
212
- */ /**
213
- * @public
214
- * when a cuepoint is active
215
- */
216
- CUEPOINT_START = "cuepointstart";
217
-
218
- /**
219
- * @public
220
- */
221
- declare type CuePointEndEventDetail = null;
222
-
223
- /**
224
- * @public
225
- * cuepoints parsing is asynchronous
226
- * you cannot rely on them existing until
227
- * this event is emitted
228
- */
229
- declare const /**
230
- @public
231
- * when a new player is inserted into the HTML
232
- */ /**
233
- * @public
234
- * cuepoints parsing is asynchronous
235
- * you cannot rely on them existing until
236
- * this event is emitted
237
- */
238
- CUEPOINTS = "cuepoints";
239
-
240
- /**
241
- * @public
242
- */
243
- declare type CuePointStartEventDetail = null;
244
-
245
192
  /**
246
193
  * @public
247
194
  */
@@ -413,9 +360,6 @@ declare namespace events {
413
360
  SEEKED,
414
361
  SEEKING_2 as SEEKING,
415
362
  DURATION_CHANGE,
416
- CUEPOINTS,
417
- CUEPOINT_START,
418
- CUEPOINT_END,
419
363
  VIEW_ENTER,
420
364
  VIEW_LEAVE,
421
365
  SOURCE,
@@ -945,8 +889,6 @@ declare type PlayerCustomEventName = keyof PlayerCustomEventsDetailMap;
945
889
  declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap & {
946
890
  [REAP]: ReapEventDetail;
947
891
  [SOURCE]: SourceEventDetail;
948
- [CUEPOINT_START]: CuePointStartEventDetail;
949
- [CUEPOINT_END]: CuePointEndEventDetail;
950
892
  [MOUNT]: MountEventDetail;
951
893
  [LIVE]: LiveEventDetail;
952
894
  [DVR]: DvrEventDetail;
@@ -979,16 +921,6 @@ declare type PlayerCustomEventsOverloads = {
979
921
  /* Excluded from this release type: on */
980
922
  /* Excluded from this release type: on */
981
923
  /* Excluded from this release type: on */
982
- /**
983
- * TODO - move to Cuepoints? Sent when a configured cuepoint is entered.
984
- */
985
- on(event: typeof CUEPOINT_START, // TODO: move to Cuepoints
986
- handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof CUEPOINT_START]>) => void): Player;
987
- /**
988
- * Sent when a configured cuepoint is terminated.
989
- */
990
- on(event: typeof CUEPOINT_END, // TODO: move to Cuepoints
991
- handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof CUEPOINT_END]>) => void): Player;
992
924
  /**
993
925
  * Sent when the player becomes visible for the user.
994
926
  */