@flowplayer/player 3.17.0-rc → 3.17.0-rc.2

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.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 +7 -2
  6. package/package.json +1 -1
  7. package/plugins/ads.d.ts +7 -2
  8. package/plugins/ads.js +1 -1
  9. package/plugins/airplay.d.ts +7 -2
  10. package/plugins/analytics.d.ts +7 -2
  11. package/plugins/analytics.js +1 -1
  12. package/plugins/asel.d.ts +7 -2
  13. package/plugins/audio.d.ts +7 -2
  14. package/plugins/chapters.d.ts +7 -2
  15. package/plugins/chromecast.d.ts +7 -2
  16. package/plugins/comscore.d.ts +7 -2
  17. package/plugins/consent.d.ts +7 -2
  18. package/plugins/context-menu.d.ts +7 -2
  19. package/plugins/cuepoints.d.ts +7 -2
  20. package/plugins/dash.d.ts +7 -2
  21. package/plugins/drm.d.ts +7 -2
  22. package/plugins/endscreen.d.ts +7 -2
  23. package/plugins/fas.d.ts +7 -2
  24. package/plugins/float-on-scroll.d.ts +7 -2
  25. package/plugins/ga4.d.ts +7 -2
  26. package/plugins/gemius.d.ts +7 -2
  27. package/plugins/google-analytics.d.ts +7 -2
  28. package/plugins/health.d.ts +7 -2
  29. package/plugins/health.js +1 -1
  30. package/plugins/hls.d.ts +7 -2
  31. package/plugins/id3.d.ts +7 -2
  32. package/plugins/iframe.d.ts +7 -2
  33. package/plugins/keyboard.d.ts +7 -2
  34. package/plugins/media-session.d.ts +7 -2
  35. package/plugins/message.d.ts +7 -2
  36. package/plugins/ovp.d.ts +7 -2
  37. package/plugins/playlist.d.ts +7 -2
  38. package/plugins/preview.d.ts +7 -2
  39. package/plugins/qsel.d.ts +7 -2
  40. package/plugins/qul.d.ts +7 -2
  41. package/plugins/rts.d.ts +7 -2
  42. package/plugins/rts.js +21 -2
  43. package/plugins/share.d.ts +7 -2
  44. package/plugins/speed.d.ts +7 -2
  45. package/plugins/ssai.d.ts +7 -2
  46. package/plugins/ssai.js +1 -1
  47. package/plugins/subtitles.d.ts +7 -2
  48. package/plugins/thumbnails.d.ts +7 -2
  49. package/plugins/tizen.d.ts +7 -2
  50. package/plugins/vtsel.d.ts +7 -2
  51. package/plugins/vtsel.js +1 -1
  52. package/plugins/webos.d.ts +7 -2
  53. package/util/loader.d.ts +7 -2
package/plugins/id3.d.ts CHANGED
@@ -436,13 +436,13 @@ declare interface FlowplayerUMDWithPlugins<ConfigWithPlugins extends Config = Co
436
436
  * @param selector - query selector of the HTML element where player will render
437
437
  * @param config - Configuration of the flowplayer and the attached plugins
438
438
  */
439
- (selector: string, config?: ConfigWithPlugins): PluginPlayer;
439
+ (selector: string, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
440
440
  /**
441
441
  * Configure flowplayer, it's attached plugins and display flowplayer it in the UI
442
442
  * @param element - HTML element where player will render
443
443
  * @param config - Configuration of the flowplayer and the attached plugins
444
444
  */
445
- (element: HTMLElement, config?: ConfigWithPlugins): PluginPlayer;
445
+ (element: HTMLElement, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
446
446
  }
447
447
 
448
448
  /**
@@ -1621,4 +1621,9 @@ declare const WILL_PLAY = "will-play";
1621
1621
 
1622
1622
  declare const WILL_SEEK = "will-seek";
1623
1623
 
1624
+ declare type WithOpts<PluginPlayer extends Player = Player, PluginConfig extends Config = Config> = PluginPlayer & {
1625
+ opts: PluginConfig;
1626
+ setOpts(config: PluginConfig): void;
1627
+ };
1628
+
1624
1629
  export { }
@@ -430,13 +430,13 @@ declare interface FlowplayerUMDWithPlugins<ConfigWithPlugins extends Config = Co
430
430
  * @param selector - query selector of the HTML element where player will render
431
431
  * @param config - Configuration of the flowplayer and the attached plugins
432
432
  */
433
- (selector: string, config?: ConfigWithPlugins): PluginPlayer;
433
+ (selector: string, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
434
434
  /**
435
435
  * Configure flowplayer, it's attached plugins and display flowplayer it in the UI
436
436
  * @param element - HTML element where player will render
437
437
  * @param config - Configuration of the flowplayer and the attached plugins
438
438
  */
439
- (element: HTMLElement, config?: ConfigWithPlugins): PluginPlayer;
439
+ (element: HTMLElement, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
440
440
  }
441
441
 
442
442
  /**
@@ -1556,4 +1556,9 @@ declare const WILL_PLAY = "will-play";
1556
1556
 
1557
1557
  declare const WILL_SEEK = "will-seek";
1558
1558
 
1559
+ declare type WithOpts<PluginPlayer extends Player = Player, PluginConfig extends Config = Config> = PluginPlayer & {
1560
+ opts: PluginConfig;
1561
+ setOpts(config: PluginConfig): void;
1562
+ };
1563
+
1559
1564
  export { }
@@ -430,13 +430,13 @@ declare interface FlowplayerUMDWithPlugins<ConfigWithPlugins extends Config = Co
430
430
  * @param selector - query selector of the HTML element where player will render
431
431
  * @param config - Configuration of the flowplayer and the attached plugins
432
432
  */
433
- (selector: string, config?: ConfigWithPlugins): PluginPlayer;
433
+ (selector: string, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
434
434
  /**
435
435
  * Configure flowplayer, it's attached plugins and display flowplayer it in the UI
436
436
  * @param element - HTML element where player will render
437
437
  * @param config - Configuration of the flowplayer and the attached plugins
438
438
  */
439
- (element: HTMLElement, config?: ConfigWithPlugins): PluginPlayer;
439
+ (element: HTMLElement, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
440
440
  }
441
441
 
442
442
  /**
@@ -1555,4 +1555,9 @@ declare const WILL_PLAY = "will-play";
1555
1555
 
1556
1556
  declare const WILL_SEEK = "will-seek";
1557
1557
 
1558
+ declare type WithOpts<PluginPlayer extends Player = Player, PluginConfig extends Config = Config> = PluginPlayer & {
1559
+ opts: PluginConfig;
1560
+ setOpts(config: PluginConfig): void;
1561
+ };
1562
+
1558
1563
  export { }
@@ -430,13 +430,13 @@ declare interface FlowplayerUMDWithPlugins<ConfigWithPlugins extends Config = Co
430
430
  * @param selector - query selector of the HTML element where player will render
431
431
  * @param config - Configuration of the flowplayer and the attached plugins
432
432
  */
433
- (selector: string, config?: ConfigWithPlugins): PluginPlayer;
433
+ (selector: string, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
434
434
  /**
435
435
  * Configure flowplayer, it's attached plugins and display flowplayer it in the UI
436
436
  * @param element - HTML element where player will render
437
437
  * @param config - Configuration of the flowplayer and the attached plugins
438
438
  */
439
- (element: HTMLElement, config?: ConfigWithPlugins): PluginPlayer;
439
+ (element: HTMLElement, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
440
440
  }
441
441
 
442
442
  /**
@@ -1555,4 +1555,9 @@ declare const WILL_PLAY = "will-play";
1555
1555
 
1556
1556
  declare const WILL_SEEK = "will-seek";
1557
1557
 
1558
+ declare type WithOpts<PluginPlayer extends Player = Player, PluginConfig extends Config = Config> = PluginPlayer & {
1559
+ opts: PluginConfig;
1560
+ setOpts(config: PluginConfig): void;
1561
+ };
1562
+
1558
1563
  export { }
@@ -430,13 +430,13 @@ declare interface FlowplayerUMDWithPlugins<ConfigWithPlugins extends Config = Co
430
430
  * @param selector - query selector of the HTML element where player will render
431
431
  * @param config - Configuration of the flowplayer and the attached plugins
432
432
  */
433
- (selector: string, config?: ConfigWithPlugins): PluginPlayer;
433
+ (selector: string, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
434
434
  /**
435
435
  * Configure flowplayer, it's attached plugins and display flowplayer it in the UI
436
436
  * @param element - HTML element where player will render
437
437
  * @param config - Configuration of the flowplayer and the attached plugins
438
438
  */
439
- (element: HTMLElement, config?: ConfigWithPlugins): PluginPlayer;
439
+ (element: HTMLElement, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
440
440
  }
441
441
 
442
442
  /**
@@ -1555,4 +1555,9 @@ declare const WILL_PLAY = "will-play";
1555
1555
 
1556
1556
  declare const WILL_SEEK = "will-seek";
1557
1557
 
1558
+ declare type WithOpts<PluginPlayer extends Player = Player, PluginConfig extends Config = Config> = PluginPlayer & {
1559
+ opts: PluginConfig;
1560
+ setOpts(config: PluginConfig): void;
1561
+ };
1562
+
1558
1563
  export { }
package/plugins/ovp.d.ts CHANGED
@@ -447,13 +447,13 @@ declare interface FlowplayerUMDWithPlugins<ConfigWithPlugins extends Config = Co
447
447
  * @param selector - query selector of the HTML element where player will render
448
448
  * @param config - Configuration of the flowplayer and the attached plugins
449
449
  */
450
- (selector: string, config?: ConfigWithPlugins): PluginPlayer;
450
+ (selector: string, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
451
451
  /**
452
452
  * Configure flowplayer, it's attached plugins and display flowplayer it in the UI
453
453
  * @param element - HTML element where player will render
454
454
  * @param config - Configuration of the flowplayer and the attached plugins
455
455
  */
456
- (element: HTMLElement, config?: ConfigWithPlugins): PluginPlayer;
456
+ (element: HTMLElement, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
457
457
  }
458
458
 
459
459
  /**
@@ -1611,4 +1611,9 @@ declare const WILL_PLAY = "will-play";
1611
1611
 
1612
1612
  declare const WILL_SEEK = "will-seek";
1613
1613
 
1614
+ declare type WithOpts<PluginPlayer extends Player = Player, PluginConfig extends Config = Config> = PluginPlayer & {
1615
+ opts: PluginConfig;
1616
+ setOpts(config: PluginConfig): void;
1617
+ };
1618
+
1614
1619
  export { }
@@ -430,13 +430,13 @@ declare interface FlowplayerUMDWithPlugins<ConfigWithPlugins extends Config = Co
430
430
  * @param selector - query selector of the HTML element where player will render
431
431
  * @param config - Configuration of the flowplayer and the attached plugins
432
432
  */
433
- (selector: string, config?: ConfigWithPlugins): PluginPlayer;
433
+ (selector: string, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
434
434
  /**
435
435
  * Configure flowplayer, it's attached plugins and display flowplayer it in the UI
436
436
  * @param element - HTML element where player will render
437
437
  * @param config - Configuration of the flowplayer and the attached plugins
438
438
  */
439
- (element: HTMLElement, config?: ConfigWithPlugins): PluginPlayer;
439
+ (element: HTMLElement, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
440
440
  }
441
441
 
442
442
  /**
@@ -1555,4 +1555,9 @@ declare const WILL_PLAY = "will-play";
1555
1555
 
1556
1556
  declare const WILL_SEEK = "will-seek";
1557
1557
 
1558
+ declare type WithOpts<PluginPlayer extends Player = Player, PluginConfig extends Config = Config> = PluginPlayer & {
1559
+ opts: PluginConfig;
1560
+ setOpts(config: PluginConfig): void;
1561
+ };
1562
+
1558
1563
  export { }
@@ -430,13 +430,13 @@ declare interface FlowplayerUMDWithPlugins<ConfigWithPlugins extends Config = Co
430
430
  * @param selector - query selector of the HTML element where player will render
431
431
  * @param config - Configuration of the flowplayer and the attached plugins
432
432
  */
433
- (selector: string, config?: ConfigWithPlugins): PluginPlayer;
433
+ (selector: string, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
434
434
  /**
435
435
  * Configure flowplayer, it's attached plugins and display flowplayer it in the UI
436
436
  * @param element - HTML element where player will render
437
437
  * @param config - Configuration of the flowplayer and the attached plugins
438
438
  */
439
- (element: HTMLElement, config?: ConfigWithPlugins): PluginPlayer;
439
+ (element: HTMLElement, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
440
440
  }
441
441
 
442
442
  /**
@@ -1555,4 +1555,9 @@ declare const WILL_PLAY = "will-play";
1555
1555
 
1556
1556
  declare const WILL_SEEK = "will-seek";
1557
1557
 
1558
+ declare type WithOpts<PluginPlayer extends Player = Player, PluginConfig extends Config = Config> = PluginPlayer & {
1559
+ opts: PluginConfig;
1560
+ setOpts(config: PluginConfig): void;
1561
+ };
1562
+
1558
1563
  export { }
package/plugins/qsel.d.ts CHANGED
@@ -437,13 +437,13 @@ declare interface FlowplayerUMDWithPlugins<ConfigWithPlugins extends Config = Co
437
437
  * @param selector - query selector of the HTML element where player will render
438
438
  * @param config - Configuration of the flowplayer and the attached plugins
439
439
  */
440
- (selector: string, config?: ConfigWithPlugins): PluginPlayer;
440
+ (selector: string, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
441
441
  /**
442
442
  * Configure flowplayer, it's attached plugins and display flowplayer it in the UI
443
443
  * @param element - HTML element where player will render
444
444
  * @param config - Configuration of the flowplayer and the attached plugins
445
445
  */
446
- (element: HTMLElement, config?: ConfigWithPlugins): PluginPlayer;
446
+ (element: HTMLElement, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
447
447
  }
448
448
 
449
449
  /**
@@ -1630,4 +1630,9 @@ declare const WILL_PLAY = "will-play";
1630
1630
 
1631
1631
  declare const WILL_SEEK = "will-seek";
1632
1632
 
1633
+ declare type WithOpts<PluginPlayer extends Player = Player, PluginConfig extends Config = Config> = PluginPlayer & {
1634
+ opts: PluginConfig;
1635
+ setOpts(config: PluginConfig): void;
1636
+ };
1637
+
1633
1638
  export { }
package/plugins/qul.d.ts CHANGED
@@ -430,13 +430,13 @@ declare interface FlowplayerUMDWithPlugins<ConfigWithPlugins extends Config = Co
430
430
  * @param selector - query selector of the HTML element where player will render
431
431
  * @param config - Configuration of the flowplayer and the attached plugins
432
432
  */
433
- (selector: string, config?: ConfigWithPlugins): PluginPlayer;
433
+ (selector: string, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
434
434
  /**
435
435
  * Configure flowplayer, it's attached plugins and display flowplayer it in the UI
436
436
  * @param element - HTML element where player will render
437
437
  * @param config - Configuration of the flowplayer and the attached plugins
438
438
  */
439
- (element: HTMLElement, config?: ConfigWithPlugins): PluginPlayer;
439
+ (element: HTMLElement, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
440
440
  }
441
441
 
442
442
  /**
@@ -1570,4 +1570,9 @@ declare const WILL_PLAY = "will-play";
1570
1570
 
1571
1571
  declare const WILL_SEEK = "will-seek";
1572
1572
 
1573
+ declare type WithOpts<PluginPlayer extends Player = Player, PluginConfig extends Config = Config> = PluginPlayer & {
1574
+ opts: PluginConfig;
1575
+ setOpts(config: PluginConfig): void;
1576
+ };
1577
+
1573
1578
  export { }
package/plugins/rts.d.ts CHANGED
@@ -430,13 +430,13 @@ declare interface FlowplayerUMDWithPlugins<ConfigWithPlugins extends Config = Co
430
430
  * @param selector - query selector of the HTML element where player will render
431
431
  * @param config - Configuration of the flowplayer and the attached plugins
432
432
  */
433
- (selector: string, config?: ConfigWithPlugins): PluginPlayer;
433
+ (selector: string, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
434
434
  /**
435
435
  * Configure flowplayer, it's attached plugins and display flowplayer it in the UI
436
436
  * @param element - HTML element where player will render
437
437
  * @param config - Configuration of the flowplayer and the attached plugins
438
438
  */
439
- (element: HTMLElement, config?: ConfigWithPlugins): PluginPlayer;
439
+ (element: HTMLElement, config?: ConfigWithPlugins): WithOpts<PluginPlayer, ConfigWithPlugins>;
440
440
  }
441
441
 
442
442
  /**
@@ -1555,4 +1555,9 @@ declare const WILL_PLAY = "will-play";
1555
1555
 
1556
1556
  declare const WILL_SEEK = "will-seek";
1557
1557
 
1558
+ declare type WithOpts<PluginPlayer extends Player = Player, PluginConfig extends Config = Config> = PluginPlayer & {
1559
+ opts: PluginConfig;
1560
+ setOpts(config: PluginConfig): void;
1561
+ };
1562
+
1558
1563
  export { }