@npo/player 1.10.0 → 1.10.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 (122) hide show
  1. package/lib/js/ads/ster.js +0 -50
  2. package/lib/js/ads/ster.js.map +1 -1
  3. package/lib/js/ads/ster.test.js +1 -1
  4. package/lib/js/ads/ster.test.js.map +1 -1
  5. package/lib/js/drm/verifydrm.js +0 -13
  6. package/lib/js/drm/verifydrm.js.map +1 -1
  7. package/lib/js/fragments/setfragments.js +0 -1
  8. package/lib/js/fragments/setfragments.js.map +1 -1
  9. package/lib/js/playeractions/handlers/customerrors.js +0 -97
  10. package/lib/js/playeractions/handlers/customerrors.js.map +1 -1
  11. package/lib/js/playeractions/handlers/error.js +0 -8
  12. package/lib/js/playeractions/handlers/error.js.map +1 -1
  13. package/lib/js/playeractions/handlers/handleoffsets.js +0 -26
  14. package/lib/js/playeractions/handlers/handleoffsets.js.map +1 -1
  15. package/lib/js/playeractions/handlers/processplayerconfig.d.ts +0 -8
  16. package/lib/js/playeractions/handlers/processplayerconfig.js +0 -12
  17. package/lib/js/playeractions/handlers/processplayerconfig.js.map +1 -1
  18. package/lib/js/playeractions/handlers/resolvekeypress.js +0 -8
  19. package/lib/js/playeractions/handlers/resolvekeypress.js.map +1 -1
  20. package/lib/js/tracking/handlers/eventbinding.d.ts +0 -7
  21. package/lib/js/tracking/handlers/eventbinding.js +0 -14
  22. package/lib/js/tracking/handlers/eventbinding.js.map +1 -1
  23. package/lib/js/tracking/handlers/eventlogging.d.ts +0 -9
  24. package/lib/js/tracking/handlers/eventlogging.js +0 -10
  25. package/lib/js/tracking/handlers/eventlogging.js.map +1 -1
  26. package/lib/js/tracking/handlers/playertrackerinit.d.ts +0 -9
  27. package/lib/js/tracking/handlers/playertrackerinit.js +0 -9
  28. package/lib/js/tracking/handlers/playertrackerinit.js.map +1 -1
  29. package/lib/js/tracking/handlers/playertrackerstart.d.ts +0 -7
  30. package/lib/js/tracking/handlers/playertrackerstart.js +0 -7
  31. package/lib/js/tracking/handlers/playertrackerstart.js.map +1 -1
  32. package/lib/js/tracking/playertracker.js +0 -5
  33. package/lib/js/tracking/playertracker.js.map +1 -1
  34. package/lib/js/ui/components/adbutton.js +0 -9
  35. package/lib/js/ui/components/adbutton.js.map +1 -1
  36. package/lib/js/ui/components/adlabel.js +0 -9
  37. package/lib/js/ui/components/adlabel.js.map +1 -1
  38. package/lib/js/ui/components/buttons.js +0 -3
  39. package/lib/js/ui/components/buttons.js.map +1 -1
  40. package/lib/js/ui/components/ctabar.js +0 -17
  41. package/lib/js/ui/components/ctabar.js.map +1 -1
  42. package/lib/js/ui/components/playnext.js +0 -1
  43. package/lib/js/ui/components/playnext.js.map +1 -1
  44. package/lib/js/ui/components/settingspanel.js +0 -1
  45. package/lib/js/ui/components/settingspanel.js.map +1 -1
  46. package/lib/js/ui/components/shared/playnextscreen.js +0 -1
  47. package/lib/js/ui/components/shared/playnextscreen.js.map +1 -1
  48. package/lib/js/ui/handlers/nicamhandler.js +0 -17
  49. package/lib/js/ui/handlers/nicamhandler.js.map +1 -1
  50. package/lib/js/ui/handlers/timecontrolhandlers.js +0 -1
  51. package/lib/js/ui/handlers/timecontrolhandlers.js.map +1 -1
  52. package/lib/js/ui/nativemobileuifactory.js +0 -1
  53. package/lib/js/ui/nativemobileuifactory.js.map +1 -1
  54. package/lib/js/ui/uicontainer.js +0 -1
  55. package/lib/js/ui/uicontainer.js.map +1 -1
  56. package/lib/js/utilities/printversion.js +0 -1
  57. package/lib/js/utilities/printversion.js.map +1 -1
  58. package/lib/js/utilities/utilities.d.ts +0 -50
  59. package/lib/js/utilities/utilities.js +0 -53
  60. package/lib/js/utilities/utilities.js.map +1 -1
  61. package/lib/npoplayer.js +1 -37
  62. package/lib/npoplayer.js.map +1 -1
  63. package/lib/package.json +2 -2
  64. package/package.json +2 -2
  65. package/src/scss/npoplayer.css +2 -2
  66. package/src/scss/variants/_player-base.scss +17 -0
  67. package/src/scss/variants/_player-small.scss +20 -1
  68. package/lib/src/js/ads/ster.d.ts +0 -4
  69. package/lib/src/js/ads/ster.test.d.ts +0 -1
  70. package/lib/src/js/api/getstreamobject.d.ts +0 -3
  71. package/lib/src/js/cdnproviders.d.ts +0 -1
  72. package/lib/src/js/checks/safari.d.ts +0 -1
  73. package/lib/src/js/checks/safari.test.d.ts +0 -1
  74. package/lib/src/js/drm/verifydrm.d.ts +0 -4
  75. package/lib/src/js/drm/verifydrm.test.d.ts +0 -1
  76. package/lib/src/js/fragments/setfragments.d.ts +0 -4
  77. package/lib/src/js/playeractions/customerrors.test.d.ts +0 -1
  78. package/lib/src/js/playeractions/handlers/customerrors.d.ts +0 -50
  79. package/lib/src/js/playeractions/handlers/error.d.ts +0 -3
  80. package/lib/src/js/playeractions/handlers/error.test.d.ts +0 -1
  81. package/lib/src/js/playeractions/handlers/handleoffsets.d.ts +0 -6
  82. package/lib/src/js/playeractions/handlers/handleoffsets.test.d.ts +0 -1
  83. package/lib/src/js/playeractions/handlers/processplayerconfig.d.ts +0 -11
  84. package/lib/src/js/playeractions/handlers/resolvekeypress.d.ts +0 -3
  85. package/lib/src/js/playeractions/playeractions.d.ts +0 -4
  86. package/lib/src/js/tracking/handlers/eventbinding.d.ts +0 -10
  87. package/lib/src/js/tracking/handlers/eventlogging.d.ts +0 -11
  88. package/lib/src/js/tracking/handlers/playertrackerinit.d.ts +0 -13
  89. package/lib/src/js/tracking/handlers/playertrackerstart.d.ts +0 -8
  90. package/lib/src/js/tracking/playertracker.d.ts +0 -4
  91. package/lib/src/js/ui/components/adbutton.d.ts +0 -7
  92. package/lib/src/js/ui/components/adlabel.d.ts +0 -7
  93. package/lib/src/js/ui/components/buttons.d.ts +0 -30
  94. package/lib/src/js/ui/components/controlbar.d.ts +0 -3
  95. package/lib/src/js/ui/components/ctabar.d.ts +0 -9
  96. package/lib/src/js/ui/components/nativemobile/addFragments.d.ts +0 -1
  97. package/lib/src/js/ui/components/nativemobile/buttons.d.ts +0 -13
  98. package/lib/src/js/ui/components/nativemobile/controlbar.d.ts +0 -3
  99. package/lib/src/js/ui/components/nativemobile/ctabar.d.ts +0 -10
  100. package/lib/src/js/ui/components/nativemobile/playnext.d.ts +0 -10
  101. package/lib/src/js/ui/components/nativemobile/titlebar.d.ts +0 -2
  102. package/lib/src/js/ui/components/nativemobile/topbar.d.ts +0 -3
  103. package/lib/src/js/ui/components/playnext.d.ts +0 -11
  104. package/lib/src/js/ui/components/settingspanel.d.ts +0 -4
  105. package/lib/src/js/ui/components/shared/playnextscreen.d.ts +0 -2
  106. package/lib/src/js/ui/components/titlebar.d.ts +0 -3
  107. package/lib/src/js/ui/components/topbar.d.ts +0 -2
  108. package/lib/src/js/ui/handlers/listboxhandlers.d.ts +0 -5
  109. package/lib/src/js/ui/handlers/nicamhandler.d.ts +0 -2
  110. package/lib/src/js/ui/handlers/nicamhandler.test.d.ts +0 -1
  111. package/lib/src/js/ui/handlers/playnexthandlers.d.ts +0 -0
  112. package/lib/src/js/ui/handlers/timecontrolhandlers.d.ts +0 -3
  113. package/lib/src/js/ui/nativemobileuicontainer.d.ts +0 -6
  114. package/lib/src/js/ui/nativemobileuifactory.d.ts +0 -3
  115. package/lib/src/js/ui/uicontainer.d.ts +0 -3
  116. package/lib/src/js/utilities/localizationconfig.d.ts +0 -6
  117. package/lib/src/js/utilities/printversion.d.ts +0 -1
  118. package/lib/src/js/utilities/utilities.d.ts +0 -60
  119. package/lib/src/npoplayer.d.ts +0 -45
  120. package/lib/src/npoplayer.test.d.ts +0 -1
  121. package/lib/src/types/classes.d.ts +0 -4
  122. package/lib/src/types/interfaces.d.ts +0 -106
@@ -1 +0,0 @@
1
- export declare function isSafari(isFairPlayDrmSupported: boolean): boolean;
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- import type NpoPlayer from '../../npoplayer';
2
- import { type ApiPayload } from '../../types/interfaces';
3
- import type { PlayerAPI } from 'bitmovin-player';
4
- export declare function verifyDRM(npoplayer: NpoPlayer, player: PlayerAPI, payload: ApiPayload): Promise<void>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- import { PlayerAPI } from 'bitmovin-player';
2
- import { type Fragments } from '../../types/interfaces';
3
- import { UIManager } from 'bitmovin-player-ui';
4
- export declare function setFragments(player: PlayerAPI, uiManager: UIManager, fragments: Fragments): Promise<void>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,50 +0,0 @@
1
- export declare const customSpecificErrorMessageOverlayConfig: {
2
- 1000: string;
3
- 1001: string;
4
- 1101: string;
5
- 1102: string;
6
- 1103: string;
7
- 1104: string;
8
- 1105: string;
9
- 1106: string;
10
- 1107: string;
11
- 1108: string;
12
- 1113: string;
13
- 1201: string;
14
- 1202: (error: any) => string | import("bitmovin-player-ui/dist/js/framework/components/errormessageoverlay").ErrorMessageTranslator;
15
- 1203: string;
16
- 1204: string;
17
- 1205: string;
18
- 1206: string;
19
- 1207: string;
20
- 1208: (error: any) => string;
21
- 1209: string;
22
- 1210: string;
23
- 1211: string;
24
- 1301: string;
25
- 1304: string;
26
- 1400: string;
27
- 1401: string;
28
- 1402: string;
29
- 1403: string;
30
- 1404: string;
31
- 2001: string;
32
- 2002: string;
33
- 2003: string;
34
- 2005: string;
35
- 2006: string;
36
- 2007: string;
37
- 2008: string;
38
- 2009: string;
39
- 2010: string;
40
- 2011: string;
41
- 2012: string;
42
- 2013: string;
43
- 2015: string;
44
- 2101: string;
45
- 3001: string;
46
- 3002: string;
47
- 3003: string;
48
- 3004: string;
49
- 4000: string;
50
- };
@@ -1,3 +0,0 @@
1
- import { PlayerAPI } from "bitmovin-player";
2
- import { UIComponents } from "../../../types/interfaces";
3
- export declare function handlePlayerError(player: PlayerAPI, uiComponents: UIComponents, input: any): void;
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import { type PlayerAPI } from 'bitmovin-player';
2
- import type NpoPlayer from '../../../npoplayer';
3
- import { type StreamOptions } from 'types/interfaces';
4
- export declare function handleStartOffset(player: PlayerAPI, offset?: number): void;
5
- export declare function shiftToProgramStart(player: PlayerAPI | null, timestamp?: number): void;
6
- export declare function handleLiveOffsetLogic(npoplayer: NpoPlayer, player: PlayerAPI | null, options: StreamOptions): void;
@@ -1,11 +0,0 @@
1
- /**
2
- * @function processPlayerConfig
3
- * @description This function is called by the NpoPlayer constructor to enrich the player configuration object
4
- * with default values where none were set by the user.
5
- * @param {NpoPlayer} npoplayer - The NpoPlayer instance
6
- * @param {PlayerConfig} playerConfig - The player configuration object that was created by the user
7
- * @returns The processed player configuration object
8
- */
9
- import { type PlayerConfig } from "bitmovin-player";
10
- import NpoPlayer from "npoplayer";
11
- export declare function processPlayerConfig(npoplayer: NpoPlayer, playerConfig: PlayerConfig): PlayerConfig;
@@ -1,3 +0,0 @@
1
- import { type PlayerAPI } from "bitmovin-player";
2
- import type NpoPlayer from '../../../npoplayer';
3
- export declare function resolveKeyPress(player: PlayerAPI, npoplayer: NpoPlayer, e: KeyboardEvent): void;
@@ -1,4 +0,0 @@
1
- export { resolveKeyPress } from "./handlers/resolvekeypress";
2
- export { handleStartOffset, handleLiveOffsetLogic, shiftToProgramStart } from "./handlers/handleoffsets";
3
- export { handlePlayerError } from "./handlers/error";
4
- export { processPlayerConfig } from "./handlers/processplayerconfig";
@@ -1,10 +0,0 @@
1
- import { type PlayerAPI } from 'bitmovin-player';
2
- import type NpoPlayer from '../../../npoplayer';
3
- /**
4
- * @function bindPlayerEvents
5
- * @description Binds the player events to the event logging function.
6
- * @param {NpoPlayer} npoplayer - The NpoPlayer instance.
7
- * @param {PlayerAPI} player - The Bitmovin player instance.
8
- * @returns {void}
9
- */
10
- export declare function bindPlayerEvents(npoplayer: NpoPlayer, player: PlayerAPI): void;
@@ -1,11 +0,0 @@
1
- /**
2
- * @function logEvent
3
- * @description Logs an event to the NPO Tag StreamTracker
4
- * @param {Object} npoplayer - The NpoPlayer instance
5
- * @param {string} event - The event name
6
- * @param {Object} data - The event data, this is optional and currently only used for seek events,
7
- * because the tag SDK does not export SeekEventProps as a type the type for data is set to any.
8
- * @returns {void}
9
- */
10
- import NpoPlayer from "../../../npoplayer";
11
- export declare function logEvent(npoplayer: NpoPlayer, event: string, data?: any): void;
@@ -1,13 +0,0 @@
1
- import { type NPOTag } from '@npotag/tag';
2
- import { type InitialisationProps } from '@npotag/tag/dist/types/src/npoTag';
3
- import type NpoPlayer from '../../../npoplayer';
4
- /**
5
- * @function initPlayerTracker
6
- * @description: This function initializes the NPO Tag instance and page tracker.
7
- * The page tracker is a required prerequisite for the stream tracker to function.
8
- * @param {NpoPlayer} npoplayer - The NpoPlayer instance.
9
- * @param {InitialisationProps | null} _npotag - The NPO Tag instance.
10
- * @param {NPOTag} _npotaginstance - The NPO Tag instance.
11
- * @returns {void}
12
- */
13
- export declare function initPlayerTracker(npoplayer: NpoPlayer, _npotag?: InitialisationProps | null, _npotaginstance?: NPOTag): void;
@@ -1,8 +0,0 @@
1
- /**
2
- * @function startPlayerTracker
3
- * @description This function creates a new StreamTracker instance and binds the player events to it.
4
- * @param {Object} playerInstance - The NpoPlayer instance
5
- * @param {number} duration - The duration of the stream in seconds
6
- * @returns {void}
7
- */
8
- export declare function startPlayerTracker(playerInstance: any, duration: number, version: string): void;
@@ -1,4 +0,0 @@
1
- export { initPlayerTracker } from './handlers/playertrackerinit';
2
- export { startPlayerTracker } from './handlers/playertrackerstart';
3
- export { bindPlayerEvents } from './handlers/eventbinding';
4
- export { logEvent } from './handlers/eventlogging';
@@ -1,7 +0,0 @@
1
- import { Button } from 'bitmovin-player-ui';
2
- import type NpoPlayer from '../../../npoplayer';
3
- export declare function createAdButton(npoplayer: NpoPlayer): Button<{
4
- cssClass: string;
5
- text: string;
6
- hidden: true;
7
- }>;
@@ -1,7 +0,0 @@
1
- import { Label } from 'bitmovin-player-ui';
2
- import type NpoPlayer from '../../../npoplayer';
3
- export declare function createAdLabel(npoplayer: NpoPlayer): Label<{
4
- text: string;
5
- cssClass: string;
6
- hidden: true;
7
- }>;
@@ -1,30 +0,0 @@
1
- import { type PlayerAPI } from 'bitmovin-player';
2
- import { Button, ControlBar } from 'bitmovin-player-ui';
3
- import type NpoPlayer from '../../../npoplayer';
4
- export declare function createMiddleButtons(player: PlayerAPI | null): ControlBar;
5
- export declare function createRewindButton(player: PlayerAPI | null): Button<{
6
- cssClass: string;
7
- }>;
8
- export declare function createForwardButton(player: PlayerAPI | null): Button<{
9
- cssClass: string;
10
- }>;
11
- export declare function createPlayNextButton(player: PlayerAPI | null, npoplayer: NpoPlayer): Button<{
12
- cssClass: string;
13
- text: string;
14
- hidden: false;
15
- }>;
16
- export declare function createskipIntroButton(player: PlayerAPI | null): Button<{
17
- cssClass: string;
18
- text: string;
19
- hidden: true;
20
- }>;
21
- export declare function createGoBackLiveButton(player: PlayerAPI | null): Button<{
22
- cssClass: string;
23
- text: string;
24
- hidden: true;
25
- }>;
26
- export declare function createWatchFromStartButton(player: PlayerAPI | null, npoplayer: NpoPlayer): Button<{
27
- cssClass: string;
28
- text: string;
29
- hidden: true;
30
- }>;
@@ -1,3 +0,0 @@
1
- import { ControlBar, type SettingsPanel } from 'bitmovin-player-ui';
2
- import type NpoPlayer from '../../../npoplayer';
3
- export declare function createControlBar(npoplayer: NpoPlayer, settingsPanel: SettingsPanel): ControlBar;
@@ -1,9 +0,0 @@
1
- import { Button, Container, Label } from 'bitmovin-player-ui';
2
- import type NpoPlayer from '../../../npoplayer';
3
- import { type PlayerAPI } from 'bitmovin-player';
4
- import { ButtonConfig } from 'bitmovin-player-ui/dist/js/framework/components/button';
5
- import { LabelConfig } from 'bitmovin-player-ui/dist/js/framework/components/label';
6
- export declare function createCTABar(player: PlayerAPI | null, npoplayer: NpoPlayer, variant: string): Container<{
7
- components: (Label<LabelConfig> | Button<ButtonConfig>)[];
8
- cssClasses: string[];
9
- }>;
@@ -1 +0,0 @@
1
- export declare const addFragments: any;
@@ -1,13 +0,0 @@
1
- import { type PlayerAPI } from 'bitmovin-player';
2
- import { Button, SettingsPanel, SettingsToggleButton } from 'bitmovin-player-ui';
3
- export declare function createPlayNextButton(player: PlayerAPI | null): Button<{
4
- cssClass: string;
5
- text: string;
6
- hidden: false;
7
- }>;
8
- export declare function createWatchFromStartButton(): Button<{
9
- cssClass: string;
10
- text: string;
11
- hidden: true;
12
- }>;
13
- export declare function createSettingsButton(player: PlayerAPI | null, settingsPanel: SettingsPanel): SettingsToggleButton;
@@ -1,3 +0,0 @@
1
- import { PlayerAPI } from 'bitmovin-player';
2
- import { ControlBar, type SettingsPanel } from 'bitmovin-player-ui';
3
- export declare function createControlBar(player: PlayerAPI, settingsPanel: SettingsPanel): ControlBar;
@@ -1,10 +0,0 @@
1
- import { Container } from 'bitmovin-player-ui';
2
- import { type PlayerAPI } from 'bitmovin-player';
3
- export declare function createCTABar(player: PlayerAPI | null): Container<{
4
- components: import("bitmovin-player-ui").Button<{
5
- cssClass: string;
6
- text: string;
7
- hidden: true;
8
- }>[];
9
- cssClasses: string[];
10
- }>;
@@ -1,10 +0,0 @@
1
- import { Container } from 'bitmovin-player-ui';
2
- import { type PlayerAPI } from 'bitmovin-player';
3
- export declare function createPlayNextScreen(player: PlayerAPI | null): Container<{
4
- components: import("bitmovin-player-ui").Button<{
5
- cssClass: string;
6
- text: string;
7
- hidden: false;
8
- }>[];
9
- cssClasses: string[];
10
- }>;
@@ -1,2 +0,0 @@
1
- import { TitleBar } from 'bitmovin-player-ui';
2
- export declare function createTitleBar(): TitleBar;
@@ -1,3 +0,0 @@
1
- import { type SettingsPanel, TitleBar } from 'bitmovin-player-ui';
2
- import { type PlayerAPI } from 'bitmovin-player';
3
- export declare function createTopBar(player: PlayerAPI | null, settingsPanel: SettingsPanel): TitleBar;
@@ -1,11 +0,0 @@
1
- import { Container } from 'bitmovin-player-ui';
2
- import { type PlayerAPI } from 'bitmovin-player';
3
- import type NpoPlayer from '../../../npoplayer';
4
- export declare function createPlayNextScreen(player: PlayerAPI | null, npoplayer: NpoPlayer): Container<{
5
- components: import("bitmovin-player-ui").Button<{
6
- cssClass: string;
7
- text: string;
8
- hidden: false;
9
- }>[];
10
- cssClasses: string[];
11
- }>;
@@ -1,4 +0,0 @@
1
- import { SettingsPanel } from 'bitmovin-player-ui';
2
- import type NpoPlayer from '../../../npoplayer';
3
- import { PlayerAPI } from 'bitmovin-player';
4
- export declare function createSettingsPanel(npoplayer: NpoPlayer | PlayerAPI): SettingsPanel;
@@ -1,2 +0,0 @@
1
- export declare function showPlayNextScreen(playNextFunction: () => void): void;
2
- export declare function hidePlayNextScreen(): void;
@@ -1,3 +0,0 @@
1
- import { TitleBar } from 'bitmovin-player-ui';
2
- import type NpoPlayer from '../../../npoplayer';
3
- export declare function createTitleBar(npoplayer: NpoPlayer): TitleBar;
@@ -1,2 +0,0 @@
1
- import { type SettingsPanel, TitleBar } from 'bitmovin-player-ui';
2
- export declare function createTopBar(settingsPanel: SettingsPanel): TitleBar;
@@ -1,5 +0,0 @@
1
- import { type PlayerAPI } from 'bitmovin-player';
2
- import { type SettingsPanel, type SettingsPanelPage, type SettingsPanelPageOpenButton } from 'bitmovin-player-ui';
3
- export declare function handleSubtitleListBoxItemSelected(subtitleSettingsOpenButton: SettingsPanelPageOpenButton, settingsPanel: SettingsPanel, mainSettingsPage: SettingsPanelPage): (e: any) => void;
4
- export declare function handleSpeedListBoxItemSelected(player: PlayerAPI | null, speedSettingsOpenButton: SettingsPanelPageOpenButton, settingsPanel: SettingsPanel, mainSettingsPage: SettingsPanelPage): (source: any, args: any) => void;
5
- export declare function handleQualityListBoxItemSelected(player: PlayerAPI | null, qualitySettingsOpenButton: SettingsPanelPageOpenButton, settingsPanel: SettingsPanel, mainSettingsPage: SettingsPanelPage): (source: any, args: any) => void;
@@ -1,2 +0,0 @@
1
- import { StreamObject } from 'types/interfaces';
2
- export declare function processNicam(streamObject: StreamObject, containerId: string): void;
@@ -1 +0,0 @@
1
- export {};
File without changes
@@ -1,3 +0,0 @@
1
- import { type PlayerAPI } from 'bitmovin-player';
2
- export declare function rewind(player: PlayerAPI | null): void;
3
- export declare function forward(player: PlayerAPI | null): void;
@@ -1,6 +0,0 @@
1
- import { UIContainer } from 'bitmovin-player-ui';
2
- import { PlayerAPI } from 'bitmovin-player';
3
- import { CustomMessages } from '../../types/interfaces';
4
- export declare function sendCustomMessage(message: CustomMessages): any;
5
- export declare function getCustomMessage(message: CustomMessages): {};
6
- export declare function nativeMobileUIContainer(player: PlayerAPI): UIContainer;
@@ -1,3 +0,0 @@
1
- import { PlayerAPI, UIConfig } from 'bitmovin-player';
2
- import { UIManager } from 'bitmovin-player-ui';
3
- export declare function nativeMobileUiFactory(player: PlayerAPI, config?: UIConfig): UIManager;
@@ -1,3 +0,0 @@
1
- import type NpoPlayer from '../../npoplayer';
2
- import { UIContainer } from 'bitmovin-player-ui';
3
- export declare function createUIContainer(npoplayer: NpoPlayer, variant: string): UIContainer;
@@ -1,6 +0,0 @@
1
- export declare const localizationConfig: {
2
- language: string;
3
- vocabularies: {
4
- nl: Record<string, string>;
5
- };
6
- };
@@ -1 +0,0 @@
1
- export declare function printVersion(version: string): void;
@@ -1,60 +0,0 @@
1
- import { type LocalizableText } from 'bitmovin-player-ui/dist/js/framework/localization/i18n';
2
- /**
3
- * @function jwtToBase64
4
- * @description Converts a JWT string to a base64 encoded string.
5
- * @param {string} jwt - The JWT string to convert.
6
- * @returns {string} The converted base64 string.
7
- */
8
- export declare const jwtToBase64: (jwt: string) => string;
9
- /**
10
- * @function base64ToObject
11
- * @description Converts a base64 encoded JWT string to a JSON object.
12
- * @param {string} base64 - The base64 string to convert.
13
- * @returns {Object} The converted JSON object.
14
- */
15
- export declare const base64ToObject: (base64: string) => any;
16
- /**
17
- * @function noTrailingSlash
18
- * @description Removes the trailing slash from the provided url if it exists.
19
- * @param {string} url - The url to remove the trailing slash from.
20
- * @returns {string} The url without the trailing slash.
21
- */
22
- export declare const noTrailingSlash: (url: string) => string;
23
- /**
24
- * @function localize
25
- * @description Returns the localized text for the provided key.
26
- * @param {key} key - The key of the text to localize.
27
- * @returns {LocalizableText} The localized text.
28
- */
29
- export declare function localize(key: string): LocalizableText;
30
- /**
31
- * @function validateStreamLength
32
- * @description Validates the provided stream duration and converts it to seconds.
33
- * If the duration is null, returns -1.
34
- * @param {string|number} duration - The stream duration to validate, can be either a string or a number.
35
- * @returns {number} The duration in seconds or -1 if the duration is null.
36
- */
37
- export declare function validateStreamLength(duration: string | number | undefined): number;
38
- /**
39
- * @function msToSeconds
40
- * @description Converts milliseconds to seconds.
41
- * @param {number} ms - The milliseconds to convert.
42
- * @returns {number} The converted milliseconds.
43
- */
44
- export declare function msToSeconds(ms: number): number;
45
- /**
46
- * @function validatePrid
47
- * @description Validates the provided prid. If the prid is null or empty, returns 'unknown'.
48
- * @param {string|null} prid - The prid to validate.
49
- * @returns {string} The validated prid or 'unknown' if the prid is null or empty.
50
- */
51
- export declare function validatePrid(prid: string | null): string;
52
- /**
53
- * @function getModuleExport
54
- * @description Returns the default export of a module if it exists, otherwise returns the module itself.
55
- * This is used to support both ES6 and CommonJS modules.
56
- * @param {unkown} module - The module to get the export from.
57
- * @returns {unknown} module - The multicompatible module export.
58
- */
59
- export declare function getModuleExport(module: unknown): unknown;
60
- export declare function airPlaySupported(): boolean;
@@ -1,45 +0,0 @@
1
- import { type StreamTracker, type NPOTag } from '@npotag/tag';
2
- import { type InitialisationProps } from '@npotag/tag/dist/types/src/npoTag';
3
- import { type PlayerAPI, type PlayerConfig, type SourceConfig } from 'bitmovin-player';
4
- import { UIManager } from 'bitmovin-player-ui';
5
- import { LogEmitter } from './types/classes';
6
- import { type ApiPayload, type Fragments, type NPOTagObject, type Profile, type Section, type StreamObject, type StreamOptions, type UIComponents } from './types/interfaces';
7
- export default class NpoPlayer {
8
- playerConfig: PlayerConfig;
9
- sourceConfig: SourceConfig;
10
- streamObject: StreamObject;
11
- player: PlayerAPI | null;
12
- uiManager: UIManager | null;
13
- npoTag: NPOTagObject | undefined;
14
- streamTracker: StreamTracker | null;
15
- logEmitter: LogEmitter;
16
- uiComponents: UIComponents;
17
- fragment: Section | null;
18
- container: HTMLElement;
19
- streamOptions: StreamOptions;
20
- jwt: string;
21
- apiPayload: ApiPayload;
22
- adBreakActive: boolean;
23
- version: string;
24
- constructor(_container: HTMLElement, _playerConfig: PlayerConfig, _npotag?: InitialisationProps | null, _npotaginstance?: NPOTag);
25
- initPlayer(_container: HTMLElement, playerConfig: PlayerConfig): void;
26
- loadStream(_jwt: string, options?: StreamOptions): Promise<void>;
27
- createUIManager(player: PlayerAPI, variant: string): Promise<void>;
28
- setFragments(fragments: Fragments): Promise<void>;
29
- decideProfile(preferredDRM?: string): Promise<Profile>;
30
- processSourceConfig(_sourceConfig: SourceConfig | undefined, _streamObject: StreamObject, drm?: string | null): SourceConfig;
31
- doError(input: any, status?: number): void;
32
- keyPress(e: KeyboardEvent): void;
33
- setVolume(volume: number): void;
34
- increaseVolume(): void;
35
- decreaseVolume(): void;
36
- goForward(seconds: number): void;
37
- goBackwards(seconds: number): void;
38
- watchFromStart(): void;
39
- showPlayNextScreen(): void;
40
- hidePlayNextScreen(): void;
41
- doPlayNext(): void;
42
- destroy(): boolean;
43
- unload(): boolean;
44
- isFairPlayDrmSupported(ks?: any): boolean;
45
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- /// <reference types="node" />
2
- import { EventEmitter } from 'events';
3
- export declare class LogEmitter extends EventEmitter {
4
- }
@@ -1,106 +0,0 @@
1
- import { type SourceConfig } from 'bitmovin-player';
2
- import { type ErrorMessageOverlay, type Label, ControlBar, SettingsPanelItem, Button, SeekBar, CastToggleButton } from 'bitmovin-player-ui';
3
- import { type NPOTag, type PageTracker } from '@npotag/tag';
4
- import { ButtonConfig } from 'bitmovin-player-ui/dist/js/framework/components/button';
5
- export interface Profile {
6
- tech: string;
7
- drm: string;
8
- }
9
- export interface StreamObject {
10
- stream: StreamObject_Stream;
11
- metadata: StreamObject_Metadata;
12
- assets: StreamObject_Assets;
13
- }
14
- export interface ApiPayload {
15
- baseURL: string;
16
- jwt: string;
17
- data: Record<string, unknown>;
18
- }
19
- export interface NPOTagObject {
20
- npoTagInstance: NPOTag | undefined;
21
- heartbeatInterval: number | undefined;
22
- pageTracker: PageTracker | null;
23
- }
24
- interface StreamObject_Stream {
25
- drmToken?: string;
26
- drmType: string;
27
- streamProfile: string;
28
- streamURL: string;
29
- isLiveStream?: boolean;
30
- }
31
- interface Subtitle {
32
- iso: string;
33
- location: string;
34
- name: string;
35
- }
36
- interface StreamObject_Assets {
37
- scrubbingThumbnail: string;
38
- subtitles: Subtitle[] | null;
39
- preroll?: string;
40
- }
41
- interface StreamObject_Metadata {
42
- broadcaster?: string;
43
- broadcasters?: string[];
44
- country?: string[];
45
- credits?: string[];
46
- description: string;
47
- duration?: string;
48
- genre?: string[];
49
- isDubbed?: boolean;
50
- language?: string[];
51
- nicam?: string[] | null;
52
- poster?: string;
53
- prid?: string;
54
- sourceIP?: string;
55
- ageRating?: string;
56
- title: string;
57
- hasPreroll?: string;
58
- }
59
- export interface Section {
60
- cssClasses?: string[];
61
- start: number;
62
- end: number;
63
- title: string;
64
- }
65
- export interface Fragments {
66
- sections: Section[];
67
- startAtBeginOfFragment?: boolean;
68
- startAtFragment?: number;
69
- stopAtEndOfFragment?: boolean;
70
- }
71
- export interface StreamOptions {
72
- sourceConfig?: SourceConfig;
73
- fragments?: Fragments;
74
- startOffset?: number;
75
- liveOffset?: boolean;
76
- liveProgramTime?: number;
77
- endpoint?: string;
78
- preferredDRM?: string;
79
- prid?: string;
80
- }
81
- export interface UIComponents {
82
- errorMessageOverlay?: ErrorMessageOverlay;
83
- nicam?: Label<{
84
- text: string;
85
- cssClass: string;
86
- }>;
87
- subtitlesButton?: SettingsPanelItem | undefined;
88
- qualityButton?: SettingsPanelItem | undefined;
89
- watchFromStartButton?: Button<ButtonConfig> | undefined;
90
- controlbar?: ControlBar | undefined;
91
- adbutton?: Button<ButtonConfig> | undefined;
92
- adlabel?: Label<{
93
- text: string;
94
- cssClass: string;
95
- }> | undefined;
96
- seekBar?: SeekBar | undefined;
97
- chromeCastButton?: CastToggleButton | undefined;
98
- }
99
- export interface CustomMessageHandlerResult {
100
- defaultActionRequired?: boolean;
101
- }
102
- export declare enum CustomMessages {
103
- TOGGLE_SETTINGS_PANEL = "toggleSettingsPanel",
104
- DO_PLAY_NEXT = "doPlayNext"
105
- }
106
- export {};