@flowplayer/player 3.30.0 → 3.30.1-rc.1
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/core.js +1 -1
- package/default.js +1 -1
- package/embed.js +2 -2
- package/index.d.ts +17 -0
- package/package.json +1 -1
- package/plugins/ads.d.ts +17 -0
- package/plugins/ads.js +1 -1
- package/plugins/airplay.d.ts +17 -0
- package/plugins/analytics.d.ts +17 -0
- package/plugins/analytics.js +1 -1
- package/plugins/asel.d.ts +17 -0
- package/plugins/audio.d.ts +17 -0
- package/plugins/chapters.d.ts +24 -0
- package/plugins/chromecast.d.ts +17 -0
- package/plugins/comscore.d.ts +17 -0
- package/plugins/consent.d.ts +17 -0
- package/plugins/context-menu.d.ts +17 -0
- package/plugins/cuepoints.d.ts +17 -0
- package/plugins/dash.d.ts +17 -0
- package/plugins/drm.d.ts +17 -0
- package/plugins/endscreen.d.ts +17 -0
- package/plugins/fas.d.ts +17 -0
- package/plugins/float-on-scroll.d.ts +17 -0
- package/plugins/ga4.d.ts +17 -0
- package/plugins/ga4.js +1 -1
- package/plugins/gemius.d.ts +17 -0
- package/plugins/google-analytics.d.ts +17 -0
- package/plugins/hls.d.ts +17 -0
- package/plugins/hls.js +1 -1
- package/plugins/id3.d.ts +17 -0
- package/plugins/iframe.d.ts +17 -0
- package/plugins/keyboard.d.ts +17 -0
- package/plugins/media-session.d.ts +17 -0
- package/plugins/message.d.ts +17 -0
- package/plugins/ovp.d.ts +17 -0
- package/plugins/playlist.d.ts +17 -0
- package/plugins/preview.d.ts +17 -0
- package/plugins/qsel.d.ts +17 -0
- package/plugins/qul.d.ts +17 -0
- package/plugins/rts.d.ts +17 -0
- package/plugins/rts.js +3 -3
- package/plugins/share.d.ts +17 -0
- package/plugins/speed.d.ts +17 -0
- package/plugins/ssai.d.ts +17 -0
- package/plugins/ssai.js +1 -1
- package/plugins/subtitles.d.ts +17 -0
- package/plugins/thumbnails.d.ts +17 -0
- package/plugins/tizen.d.ts +17 -0
- package/plugins/vtsel.d.ts +17 -0
- package/plugins/webos.d.ts +17 -0
- package/util/loader.d.ts +17 -0
package/plugins/ga4.d.ts
CHANGED
|
@@ -390,6 +390,10 @@ declare type ExtractPureAPI<T> = T extends PlayerWith<infer PureAPI> ? PureAPI :
|
|
|
390
390
|
|
|
391
391
|
declare type ExtractSrcExtension<PluginBareConfig> = Get<PluginBareConfig, "src"> extends UnsafeSource<infer SrcMixinType> ? SrcMixinType : never;
|
|
392
392
|
|
|
393
|
+
declare const FEATURE_USAGE = "flowplayer:feature";
|
|
394
|
+
|
|
395
|
+
/* Excluded from this release type: FeatureUsageEventDetail */
|
|
396
|
+
|
|
393
397
|
declare type FilterNewSourceTypes<PluginSrcs extends unknown[]> = {
|
|
394
398
|
[Index in keyof PluginSrcs]: PluginSrcs[Index] extends {
|
|
395
399
|
type: string;
|
|
@@ -1246,6 +1250,7 @@ declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap
|
|
|
1246
1250
|
/* Excluded from this release type: "seek:cancel" */
|
|
1247
1251
|
/* Excluded from this release type: "plugin:registered" */
|
|
1248
1252
|
/* Excluded from this release type: intersectionchange */
|
|
1253
|
+
/* Excluded from this release type: "flowplayer:feature" */
|
|
1249
1254
|
/* Excluded from this release type: beforeplay */
|
|
1250
1255
|
/* Excluded from this release type: beforepause */
|
|
1251
1256
|
/* Excluded from this release type: state */
|
|
@@ -1323,6 +1328,7 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1323
1328
|
/* Excluded from this release type: on */
|
|
1324
1329
|
/* Excluded from this release type: on */
|
|
1325
1330
|
/* Excluded from this release type: on */
|
|
1331
|
+
/* Excluded from this release type: on */
|
|
1326
1332
|
/**
|
|
1327
1333
|
* TODO: this is a workaround, since not all event overloads are typed. when all plugin work is finished, remove this
|
|
1328
1334
|
* https://wowzamedia.jira.com/browse/PLAY-653
|
|
@@ -1654,6 +1660,13 @@ declare const RetryMap: {
|
|
|
1654
1660
|
|
|
1655
1661
|
declare const RTL = "is-rtl";
|
|
1656
1662
|
|
|
1663
|
+
declare const SampleRate: {
|
|
1664
|
+
readonly None: 1;
|
|
1665
|
+
readonly Low: 0.1;
|
|
1666
|
+
readonly Medium: 0.01;
|
|
1667
|
+
readonly High: 0.001;
|
|
1668
|
+
};
|
|
1669
|
+
|
|
1657
1670
|
/**
|
|
1658
1671
|
* @public
|
|
1659
1672
|
*/
|
|
@@ -1878,6 +1891,8 @@ TOUCH_START = "touchstart";
|
|
|
1878
1891
|
|
|
1879
1892
|
declare const TOUCHED = "is-touched";
|
|
1880
1893
|
|
|
1894
|
+
declare type TSampleRate = typeof SampleRate;
|
|
1895
|
+
|
|
1881
1896
|
declare const TV = "is-tv";
|
|
1882
1897
|
|
|
1883
1898
|
/**
|
|
@@ -1885,6 +1900,8 @@ declare const TV = "is-tv";
|
|
|
1885
1900
|
*/
|
|
1886
1901
|
declare type UnsafeSource<SrcMixin = unknown> = SourceStr | SourceObj<SrcMixin> | Array<SourceStr | SourceObj<SrcMixin>>;
|
|
1887
1902
|
|
|
1903
|
+
declare type ValidSampleRate = TSampleRate[keyof TSampleRate];
|
|
1904
|
+
|
|
1888
1905
|
/**
|
|
1889
1906
|
* @public
|
|
1890
1907
|
* emitted when a video track is selected
|
package/plugins/ga4.js
CHANGED
|
@@ -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.ga4=t())}(this,function(){"use strict";const e="play",t="qualitychange",i="is-ended";var a;const s=((a=class GoogleAnalytics4Plugin{constructor(e){this.muted=!1,this.quartiles=[0,0,0],this.ad_type="preroll",this.preroll_counter=0,this.midroll_counter=0,this.postroll_counter=0,this.event_categories={live:"Live",videos:"Videos"},this.event_actions={fullscreen_enter:"fullscreen_enter",fullscreen_exit:"fullscreen_exit",video_player_load:"video_player_load",video_start:"video_start",video_click_play:"video_click_play",video_pause:"video_pause",video_resume:"video_resume",video_seeking:"video_seeking",video_ratechange:"video_ratechange",video_qualitychange:"video_qualitychange",video_mute:"video_mute",video_unmute:"video_unmute",video_25_percent:"video_25_percent",video_50_percent:"video_50_percent",video_75_percent:"video_75_percent",video_complete:"video_complete",live_start:"live_start",live_click_play:"live_click_play",live_pause:"live_pause",live_resume:"live_resume",live_ratechange:"live_ratechange",live_seeking:"live_seeking",live_qualitychange:"live_qualitychange",live_mute:"live_mute",live_unmute:"live_unmute",live_complete:"live_complete",ad_start_preroll:"ad_start_preroll",ad_start_midroll:"ad_start_midroll",ad_start_postroll:"ad_start_postroll",ad_completed_preroll:"ad_completed_preroll",ad_completed_midroll:"ad_completed_midroll",ad_completed_postroll:"ad_completed_postroll",ad_skipped_preroll:"ad_skipped_preroll",ad_skipped_midroll:"ad_skipped_midroll",ad_skipped_postroll:"ad_skipped_postroll",ad_break_completed:"ad_break_completed"},this.flowplayer=e}init(i,a,s){this.config=i,this.video=s,this.muted=s.muted,s.on(["mount","timeupdate",e,"ended","pause","playing","volumechange","ad-started","ad-completed","ad-skipped","ad-break-completed","config",e,"fullscreenenter","fullscreenexit","seeking",t,"ratechange"],e=>{var o,l,r;switch(e.type){case"playing":this.track(i.live?this.event_actions.live_resume:this.event_actions.video_resume);break;case"pause":if(Math.abs(s.duration-s.currentTime)<1)break;this.track(i.live?this.event_actions.live_pause:this.event_actions.video_pause);break;case"seeking":this.track(i.live?this.event_actions.live_seeking:this.event_actions.video_seeking);break;case"ratechange":this.track(i.live?this.event_actions.live_ratechange:this.event_actions.video_ratechange,{playbackRate:null===(o=this.video)||void 0===o?void 0:o.playbackRate});break;case t:{const t=e.detail;this.track(i.live?this.event_actions.live_qualitychange:this.event_actions.video_qualitychange,{before:null===(l=t.before)||void 0===l?void 0:l.height,after:null===(r=t.after)||void 0===r?void 0:r.height});break}case"play":this.play(i,a,s);break;case"mount":this.track(this.event_actions.video_player_load);break;case"timeupdate":this.progress(s);break;case"ended":setTimeout(()=>{e.defaultPrevented||(this.track(i.live?this.event_actions.live_complete:this.event_actions.video_complete),this.reset())});break;case"volumechange":this.volumechange(s);break;case"ad-started":this.adstarted(e);break;case"ad-completed":this.adcompleted(e);break;case"ad-break-completed":this.adbreakcompleted();break;case"config":this.configured(e.detail);break;case"fullscreenenter":this.track(this.event_actions.fullscreen_enter);break;case"fullscreenexit":this.track(this.event_actions.fullscreen_exit);break;case"ad-skipped":this.adskipped()}})}play(e,t,a){const s=a.playerState;this.track(e.live?this.event_actions.live_click_play:this.event_actions.video_click_play),t.classList.contains("ad-hide-first-frame")||t.classList.contains("preroll-ios")||(s[i]||s["is-starting"])&&this.track(e.live?this.event_actions.live_start:this.event_actions.video_start,{loop:s[i]})}progress(e){e.opts.live||(e.currentTime/e.duration>.25&&0===this.quartiles[0]?(this.quartiles[0]=1,this.track(this.event_actions.video_25_percent)):e.currentTime/e.duration>.5&&0===this.quartiles[1]?(this.quartiles[1]=1,this.track(this.event_actions.video_50_percent)):e.currentTime/e.duration>.75&&0===this.quartiles[2]&&(this.quartiles[2]=1,this.track(this.event_actions.video_75_percent)))}volumechange(e){this.muted!==e.muted&&(this.muted=e.muted,e.muted?this.track(e.opts.live?this.event_actions.live_mute:this.event_actions.video_mute):this.track(e.opts.live?this.event_actions.live_unmute:this.event_actions.video_unmute))}reset(){this.quartiles=[0,0,0],this.preroll_counter=0,this.midroll_counter=0,this.postroll_counter=0}configured(e){var t,i;(null===(t=null==e?void 0:e.ga)||void 0===t?void 0:t.event_actions)&&(this.event_actions=e.ga.event_actions),(null===(i=null==e?void 0:e.ga)||void 0===i?void 0:i.event_categories)&&(this.event_categories=e.ga.event_categories)}checkForAdCounter(e,t){return e.replace("[x]",t+"")}adstarted(e){var t;switch((null===(t=e.data)||void 0===t?void 0:t.ad_type)||"preroll"){case"midroll":this.ad_type="midroll",this.midroll_counter++,this.track(this.checkForAdCounter(this.event_actions.ad_start_midroll,this.midroll_counter));break;case"postroll":this.ad_type="postroll",this.postroll_counter++,this.track(this.checkForAdCounter(this.event_actions.ad_start_postroll,this.postroll_counter));break;default:this.ad_type="preroll",this.preroll_counter++,this.track(this.checkForAdCounter(this.event_actions.ad_start_preroll,this.preroll_counter))}}adcompleted(e){var t;switch((null===(t=e.data)||void 0===t?void 0:t.ad_type)||"preroll"){case"midroll":this.track(this.event_actions.ad_completed_midroll);break;case"postroll":this.track(this.event_actions.ad_completed_postroll);break;default:this.track(this.event_actions.ad_completed_preroll)}}adskipped(){if(this.ad_type)switch(this.ad_type){case"midroll":this.track(this.event_actions.ad_skipped_midroll);break;case"postroll":this.track(this.event_actions.ad_skipped_postroll);break;default:this.track(this.event_actions.ad_skipped_preroll)}else this.track(this.event_actions.ad_skipped_preroll)}adbreakcompleted(){this.track(this.event_actions.ad_break_completed)}pushToDataLayer(e,t,i,a){var s,o;if(window.dataLayer)try{window.dataLayer.push(Object.assign(Object.assign({event:"flowplayer",event_action:e,event_label:i,event_category:t,duration:null===(s=this.video)||void 0===s?void 0:s.duration},null===(o=null==this?void 0:this.config)||void 0===o?void 0:o.ga.custom_data),a))}catch(e){console.error(e)}}track(e,t){var i,a,s,o,l,r,n,d;if(!this.config||!this.config.ga||(null===(i=null==this?void 0:this.video)||void 0===i?void 0:i.hasState("consent-no-tracking")))return;const c=(null===(a=this.video)||void 0===a?void 0:a.opts.live)?this.event_categories.live:this.event_categories.videos,_=null===(s=this.config.ga)||void 0===s?void 0:s.ga_instances,v=(null===(o=null==this?void 0:this.config)||void 0===o?void 0:o.title)||(null===(l=this.config.metadata)||void 0===l?void 0:l.title)||"unknown video";if(!window.gtag||(null===(n=null===(r=this.config)||void 0===r?void 0:r.ga)||void 0===n?void 0:n.data_layer_tracking)||!_||!_.length)return this.pushToDataLayer(e,c,v,t);gtag("event",e,Object.assign(Object.assign({send_to:_,event_category:c,event_label:v,duration:null===(d=this.video)||void 0===d?void 0:d.duration},this.config.ga.custom_data),t))}}).pluginName="ga4",a);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,s)});
|
|
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.ga4=t())}(this,function(){"use strict";const e="play",t="qualitychange",i="is-ended";var a;const s=((a=class GoogleAnalytics4Plugin{constructor(e){this.muted=!1,this.quartiles=[0,0,0],this.ad_type="preroll",this.preroll_counter=0,this.midroll_counter=0,this.postroll_counter=0,this.event_categories={live:"Live",videos:"Videos"},this.event_actions={fullscreen_enter:"fullscreen_enter",fullscreen_exit:"fullscreen_exit",video_player_load:"video_player_load",video_start:"video_start",video_click_play:"video_click_play",video_pause:"video_pause",video_resume:"video_resume",video_seeking:"video_seeking",video_ratechange:"video_ratechange",video_qualitychange:"video_qualitychange",video_mute:"video_mute",video_unmute:"video_unmute",video_25_percent:"video_25_percent",video_50_percent:"video_50_percent",video_75_percent:"video_75_percent",video_complete:"video_complete",live_start:"live_start",live_click_play:"live_click_play",live_pause:"live_pause",live_resume:"live_resume",live_ratechange:"live_ratechange",live_seeking:"live_seeking",live_qualitychange:"live_qualitychange",live_mute:"live_mute",live_unmute:"live_unmute",live_complete:"live_complete",ad_start_preroll:"ad_start_preroll",ad_start_midroll:"ad_start_midroll",ad_start_postroll:"ad_start_postroll",ad_completed_preroll:"ad_completed_preroll",ad_completed_midroll:"ad_completed_midroll",ad_completed_postroll:"ad_completed_postroll",ad_skipped_preroll:"ad_skipped_preroll",ad_skipped_midroll:"ad_skipped_midroll",ad_skipped_postroll:"ad_skipped_postroll",ad_break_completed:"ad_break_completed"},this.flowplayer=e}init(i,a,s){this.config=i,this.video=s,this.muted=s.muted,s.on(["mount","timeupdate",e,"ended","pause","playing","volumechange","ad-started","ad-completed","ad-skipped","ad-break-completed","config",e,"fullscreenenter","fullscreenexit","seeking",t,"ratechange"],e=>{var o,l,r;switch(e.type){case"playing":this.track(i.live?this.event_actions.live_resume:this.event_actions.video_resume);break;case"pause":if(Math.abs(s.duration-s.currentTime)<1)break;this.track(i.live?this.event_actions.live_pause:this.event_actions.video_pause);break;case"seeking":this.track(i.live?this.event_actions.live_seeking:this.event_actions.video_seeking);break;case"ratechange":this.track(i.live?this.event_actions.live_ratechange:this.event_actions.video_ratechange,{playbackRate:null===(o=this.video)||void 0===o?void 0:o.playbackRate});break;case t:{const t=e.detail;this.track(i.live?this.event_actions.live_qualitychange:this.event_actions.video_qualitychange,{before:null===(l=t.before)||void 0===l?void 0:l.height,after:null===(r=t.after)||void 0===r?void 0:r.height});break}case"play":this.play(i,a,s);break;case"mount":this.track(this.event_actions.video_player_load);break;case"timeupdate":this.progress(s);break;case"ended":setTimeout(()=>{e.defaultPrevented||(this.track(i.live?this.event_actions.live_complete:this.event_actions.video_complete),this.reset())});break;case"volumechange":this.volumechange(s);break;case"ad-started":this.adstarted(e);break;case"ad-completed":this.adcompleted(e);break;case"ad-break-completed":this.adbreakcompleted();break;case"config":this.configured(e.detail);break;case"fullscreenenter":this.track(this.event_actions.fullscreen_enter);break;case"fullscreenexit":this.track(this.event_actions.fullscreen_exit);break;case"ad-skipped":this.adskipped()}})}play(e,t,a){const s=a.playerState;this.track(e.live?this.event_actions.live_click_play:this.event_actions.video_click_play),t.classList.contains("ad-hide-first-frame")||t.classList.contains("preroll-ios")||(s[i]||s["is-starting"])&&this.track(e.live?this.event_actions.live_start:this.event_actions.video_start,{loop:s[i]})}progress(e){e.opts.live||(e.currentTime/e.duration>.25&&0===this.quartiles[0]?(this.quartiles[0]=1,this.track(this.event_actions.video_25_percent)):e.currentTime/e.duration>.5&&0===this.quartiles[1]?(this.quartiles[1]=1,this.track(this.event_actions.video_50_percent)):e.currentTime/e.duration>.75&&0===this.quartiles[2]&&(this.quartiles[2]=1,this.track(this.event_actions.video_75_percent)))}volumechange(e){this.muted!==e.muted&&(this.muted=e.muted,(e.currentSrc||e.srcObject)&&(e.muted?this.track(e.opts.live?this.event_actions.live_mute:this.event_actions.video_mute):this.track(e.opts.live?this.event_actions.live_unmute:this.event_actions.video_unmute)))}reset(){this.quartiles=[0,0,0],this.preroll_counter=0,this.midroll_counter=0,this.postroll_counter=0}configured(e){var t,i;(null===(t=null==e?void 0:e.ga)||void 0===t?void 0:t.event_actions)&&(this.event_actions=e.ga.event_actions),(null===(i=null==e?void 0:e.ga)||void 0===i?void 0:i.event_categories)&&(this.event_categories=e.ga.event_categories)}checkForAdCounter(e,t){return e.replace("[x]",t+"")}adstarted(e){var t;switch((null===(t=e.data)||void 0===t?void 0:t.ad_type)||"preroll"){case"midroll":this.ad_type="midroll",this.midroll_counter++,this.track(this.checkForAdCounter(this.event_actions.ad_start_midroll,this.midroll_counter));break;case"postroll":this.ad_type="postroll",this.postroll_counter++,this.track(this.checkForAdCounter(this.event_actions.ad_start_postroll,this.postroll_counter));break;default:this.ad_type="preroll",this.preroll_counter++,this.track(this.checkForAdCounter(this.event_actions.ad_start_preroll,this.preroll_counter))}}adcompleted(e){var t;switch((null===(t=e.data)||void 0===t?void 0:t.ad_type)||"preroll"){case"midroll":this.track(this.event_actions.ad_completed_midroll);break;case"postroll":this.track(this.event_actions.ad_completed_postroll);break;default:this.track(this.event_actions.ad_completed_preroll)}}adskipped(){if(this.ad_type)switch(this.ad_type){case"midroll":this.track(this.event_actions.ad_skipped_midroll);break;case"postroll":this.track(this.event_actions.ad_skipped_postroll);break;default:this.track(this.event_actions.ad_skipped_preroll)}else this.track(this.event_actions.ad_skipped_preroll)}adbreakcompleted(){this.track(this.event_actions.ad_break_completed)}pushToDataLayer(e,t,i,a){var s,o;if(window.dataLayer)try{window.dataLayer.push(Object.assign(Object.assign({event:"flowplayer",event_action:e,event_label:i,event_category:t,duration:null===(s=this.video)||void 0===s?void 0:s.duration},null===(o=null==this?void 0:this.config)||void 0===o?void 0:o.ga.custom_data),a))}catch(e){console.error(e)}}track(e,t){var i,a,s,o,l,r,n,d;if(!this.config||!this.config.ga||(null===(i=null==this?void 0:this.video)||void 0===i?void 0:i.hasState("consent-no-tracking")))return;const c=(null===(a=this.video)||void 0===a?void 0:a.opts.live)?this.event_categories.live:this.event_categories.videos,_=null===(s=this.config.ga)||void 0===s?void 0:s.ga_instances,v=(null===(o=null==this?void 0:this.config)||void 0===o?void 0:o.title)||(null===(l=this.config.metadata)||void 0===l?void 0:l.title)||"unknown video";if(!window.gtag||(null===(n=null===(r=this.config)||void 0===r?void 0:r.ga)||void 0===n?void 0:n.data_layer_tracking)||!_||!_.length)return this.pushToDataLayer(e,c,v,t);gtag("event",e,Object.assign(Object.assign({send_to:_,event_category:c,event_label:v,duration:null===(d=this.video)||void 0===d?void 0:d.duration},this.config.ga.custom_data),t))}}).pluginName="ga4",a);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,s)});
|
package/plugins/gemius.d.ts
CHANGED
|
@@ -390,6 +390,10 @@ declare type ExtractPureAPI<T> = T extends PlayerWith<infer PureAPI> ? PureAPI :
|
|
|
390
390
|
|
|
391
391
|
declare type ExtractSrcExtension<PluginBareConfig> = Get<PluginBareConfig, "src"> extends UnsafeSource<infer SrcMixinType> ? SrcMixinType : never;
|
|
392
392
|
|
|
393
|
+
declare const FEATURE_USAGE = "flowplayer:feature";
|
|
394
|
+
|
|
395
|
+
/* Excluded from this release type: FeatureUsageEventDetail */
|
|
396
|
+
|
|
393
397
|
declare type FilterNewSourceTypes<PluginSrcs extends unknown[]> = {
|
|
394
398
|
[Index in keyof PluginSrcs]: PluginSrcs[Index] extends {
|
|
395
399
|
type: string;
|
|
@@ -1271,6 +1275,7 @@ declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap
|
|
|
1271
1275
|
/* Excluded from this release type: "seek:cancel" */
|
|
1272
1276
|
/* Excluded from this release type: "plugin:registered" */
|
|
1273
1277
|
/* Excluded from this release type: intersectionchange */
|
|
1278
|
+
/* Excluded from this release type: "flowplayer:feature" */
|
|
1274
1279
|
/* Excluded from this release type: beforeplay */
|
|
1275
1280
|
/* Excluded from this release type: beforepause */
|
|
1276
1281
|
/* Excluded from this release type: state */
|
|
@@ -1348,6 +1353,7 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1348
1353
|
/* Excluded from this release type: on */
|
|
1349
1354
|
/* Excluded from this release type: on */
|
|
1350
1355
|
/* Excluded from this release type: on */
|
|
1356
|
+
/* Excluded from this release type: on */
|
|
1351
1357
|
/**
|
|
1352
1358
|
* TODO: this is a workaround, since not all event overloads are typed. when all plugin work is finished, remove this
|
|
1353
1359
|
* https://wowzamedia.jira.com/browse/PLAY-653
|
|
@@ -1679,6 +1685,13 @@ declare const RetryMap: {
|
|
|
1679
1685
|
|
|
1680
1686
|
declare const RTL = "is-rtl";
|
|
1681
1687
|
|
|
1688
|
+
declare const SampleRate: {
|
|
1689
|
+
readonly None: 1;
|
|
1690
|
+
readonly Low: 0.1;
|
|
1691
|
+
readonly Medium: 0.01;
|
|
1692
|
+
readonly High: 0.001;
|
|
1693
|
+
};
|
|
1694
|
+
|
|
1682
1695
|
/**
|
|
1683
1696
|
* @public
|
|
1684
1697
|
*/
|
|
@@ -1903,6 +1916,8 @@ TOUCH_START = "touchstart";
|
|
|
1903
1916
|
|
|
1904
1917
|
declare const TOUCHED = "is-touched";
|
|
1905
1918
|
|
|
1919
|
+
declare type TSampleRate = typeof SampleRate;
|
|
1920
|
+
|
|
1906
1921
|
declare const TV = "is-tv";
|
|
1907
1922
|
|
|
1908
1923
|
/**
|
|
@@ -1910,6 +1925,8 @@ declare const TV = "is-tv";
|
|
|
1910
1925
|
*/
|
|
1911
1926
|
declare type UnsafeSource<SrcMixin = unknown> = SourceStr | SourceObj<SrcMixin> | Array<SourceStr | SourceObj<SrcMixin>>;
|
|
1912
1927
|
|
|
1928
|
+
declare type ValidSampleRate = TSampleRate[keyof TSampleRate];
|
|
1929
|
+
|
|
1913
1930
|
/**
|
|
1914
1931
|
* @public
|
|
1915
1932
|
* emitted when a video track is selected
|
|
@@ -390,6 +390,10 @@ declare type ExtractPureAPI<T> = T extends PlayerWith<infer PureAPI> ? PureAPI :
|
|
|
390
390
|
|
|
391
391
|
declare type ExtractSrcExtension<PluginBareConfig> = Get<PluginBareConfig, "src"> extends UnsafeSource<infer SrcMixinType> ? SrcMixinType : never;
|
|
392
392
|
|
|
393
|
+
declare const FEATURE_USAGE = "flowplayer:feature";
|
|
394
|
+
|
|
395
|
+
/* Excluded from this release type: FeatureUsageEventDetail */
|
|
396
|
+
|
|
393
397
|
declare type FilterNewSourceTypes<PluginSrcs extends unknown[]> = {
|
|
394
398
|
[Index in keyof PluginSrcs]: PluginSrcs[Index] extends {
|
|
395
399
|
type: string;
|
|
@@ -1246,6 +1250,7 @@ declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap
|
|
|
1246
1250
|
/* Excluded from this release type: "seek:cancel" */
|
|
1247
1251
|
/* Excluded from this release type: "plugin:registered" */
|
|
1248
1252
|
/* Excluded from this release type: intersectionchange */
|
|
1253
|
+
/* Excluded from this release type: "flowplayer:feature" */
|
|
1249
1254
|
/* Excluded from this release type: beforeplay */
|
|
1250
1255
|
/* Excluded from this release type: beforepause */
|
|
1251
1256
|
/* Excluded from this release type: state */
|
|
@@ -1323,6 +1328,7 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1323
1328
|
/* Excluded from this release type: on */
|
|
1324
1329
|
/* Excluded from this release type: on */
|
|
1325
1330
|
/* Excluded from this release type: on */
|
|
1331
|
+
/* Excluded from this release type: on */
|
|
1326
1332
|
/**
|
|
1327
1333
|
* TODO: this is a workaround, since not all event overloads are typed. when all plugin work is finished, remove this
|
|
1328
1334
|
* https://wowzamedia.jira.com/browse/PLAY-653
|
|
@@ -1654,6 +1660,13 @@ declare const RetryMap: {
|
|
|
1654
1660
|
|
|
1655
1661
|
declare const RTL = "is-rtl";
|
|
1656
1662
|
|
|
1663
|
+
declare const SampleRate: {
|
|
1664
|
+
readonly None: 1;
|
|
1665
|
+
readonly Low: 0.1;
|
|
1666
|
+
readonly Medium: 0.01;
|
|
1667
|
+
readonly High: 0.001;
|
|
1668
|
+
};
|
|
1669
|
+
|
|
1657
1670
|
/**
|
|
1658
1671
|
* @public
|
|
1659
1672
|
*/
|
|
@@ -1878,6 +1891,8 @@ TOUCH_START = "touchstart";
|
|
|
1878
1891
|
|
|
1879
1892
|
declare const TOUCHED = "is-touched";
|
|
1880
1893
|
|
|
1894
|
+
declare type TSampleRate = typeof SampleRate;
|
|
1895
|
+
|
|
1881
1896
|
declare const TV = "is-tv";
|
|
1882
1897
|
|
|
1883
1898
|
/**
|
|
@@ -1885,6 +1900,8 @@ declare const TV = "is-tv";
|
|
|
1885
1900
|
*/
|
|
1886
1901
|
declare type UnsafeSource<SrcMixin = unknown> = SourceStr | SourceObj<SrcMixin> | Array<SourceStr | SourceObj<SrcMixin>>;
|
|
1887
1902
|
|
|
1903
|
+
declare type ValidSampleRate = TSampleRate[keyof TSampleRate];
|
|
1904
|
+
|
|
1888
1905
|
/**
|
|
1889
1906
|
* @public
|
|
1890
1907
|
* emitted when a video track is selected
|
package/plugins/hls.d.ts
CHANGED
|
@@ -468,6 +468,10 @@ declare type ExtractPureAPI<T> = T extends PlayerWith<infer PureAPI> ? PureAPI :
|
|
|
468
468
|
|
|
469
469
|
declare type ExtractSrcExtension<PluginBareConfig> = Get<PluginBareConfig, "src"> extends UnsafeSource<infer SrcMixinType> ? SrcMixinType : never;
|
|
470
470
|
|
|
471
|
+
declare const FEATURE_USAGE = "flowplayer:feature";
|
|
472
|
+
|
|
473
|
+
/* Excluded from this release type: FeatureUsageEventDetail */
|
|
474
|
+
|
|
471
475
|
declare type FilterNewSourceTypes<PluginSrcs extends unknown[]> = {
|
|
472
476
|
[Index in keyof PluginSrcs]: PluginSrcs[Index] extends {
|
|
473
477
|
type: string;
|
|
@@ -1371,6 +1375,7 @@ declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap
|
|
|
1371
1375
|
/* Excluded from this release type: "seek:cancel" */
|
|
1372
1376
|
/* Excluded from this release type: "plugin:registered" */
|
|
1373
1377
|
/* Excluded from this release type: intersectionchange */
|
|
1378
|
+
/* Excluded from this release type: "flowplayer:feature" */
|
|
1374
1379
|
/* Excluded from this release type: beforeplay */
|
|
1375
1380
|
/* Excluded from this release type: beforepause */
|
|
1376
1381
|
/* Excluded from this release type: state */
|
|
@@ -1448,6 +1453,7 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1448
1453
|
/* Excluded from this release type: on */
|
|
1449
1454
|
/* Excluded from this release type: on */
|
|
1450
1455
|
/* Excluded from this release type: on */
|
|
1456
|
+
/* Excluded from this release type: on */
|
|
1451
1457
|
/**
|
|
1452
1458
|
* TODO: this is a workaround, since not all event overloads are typed. when all plugin work is finished, remove this
|
|
1453
1459
|
* https://wowzamedia.jira.com/browse/PLAY-653
|
|
@@ -1779,6 +1785,13 @@ declare const RetryMap: {
|
|
|
1779
1785
|
|
|
1780
1786
|
declare const RTL = "is-rtl";
|
|
1781
1787
|
|
|
1788
|
+
declare const SampleRate: {
|
|
1789
|
+
readonly None: 1;
|
|
1790
|
+
readonly Low: 0.1;
|
|
1791
|
+
readonly Medium: 0.01;
|
|
1792
|
+
readonly High: 0.001;
|
|
1793
|
+
};
|
|
1794
|
+
|
|
1782
1795
|
/**
|
|
1783
1796
|
* @public
|
|
1784
1797
|
*/
|
|
@@ -2003,6 +2016,8 @@ TOUCH_START = "touchstart";
|
|
|
2003
2016
|
|
|
2004
2017
|
declare const TOUCHED = "is-touched";
|
|
2005
2018
|
|
|
2019
|
+
declare type TSampleRate = typeof SampleRate;
|
|
2020
|
+
|
|
2006
2021
|
declare const TV = "is-tv";
|
|
2007
2022
|
|
|
2008
2023
|
/**
|
|
@@ -2010,6 +2025,8 @@ declare const TV = "is-tv";
|
|
|
2010
2025
|
*/
|
|
2011
2026
|
declare type UnsafeSource<SrcMixin = unknown> = SourceStr | SourceObj<SrcMixin> | Array<SourceStr | SourceObj<SrcMixin>>;
|
|
2012
2027
|
|
|
2028
|
+
declare type ValidSampleRate = TSampleRate[keyof TSampleRate];
|
|
2029
|
+
|
|
2013
2030
|
/**
|
|
2014
2031
|
* @public
|
|
2015
2032
|
* emitted when a video track is selected
|