@npo/player 1.10.0 → 1.10.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/lib/js/playeractions/handlers/processplayerconfig.d.ts +0 -8
- package/lib/js/tracking/handlers/eventbinding.d.ts +0 -7
- package/lib/js/tracking/handlers/eventlogging.d.ts +0 -9
- package/lib/js/tracking/handlers/playertrackerinit.d.ts +0 -9
- package/lib/js/tracking/handlers/playertrackerstart.d.ts +0 -7
- package/lib/js/ui/components/ctabar.d.ts +1 -1
- package/lib/js/utilities/utilities.d.ts +0 -50
- package/lib/npoplayer.js +2 -501
- package/lib/npoplayer.js.map +1 -1
- package/lib/package.json +2 -2
- package/package.json +2 -2
- package/src/scss/npoplayer.css +2 -2
- package/src/scss/variants/_player-base.scss +17 -0
- package/src/scss/variants/_player-small.scss +20 -1
- package/lib/js/ads/ster.js +0 -157
- package/lib/js/ads/ster.js.map +0 -1
- package/lib/js/ads/ster.test.js +0 -91
- package/lib/js/ads/ster.test.js.map +0 -1
- package/lib/js/api/getstreamobject.js +0 -18
- package/lib/js/api/getstreamobject.js.map +0 -1
- package/lib/js/cdnproviders.js +0 -13
- package/lib/js/cdnproviders.js.map +0 -1
- package/lib/js/checks/safari.js +0 -10
- package/lib/js/checks/safari.js.map +0 -1
- package/lib/js/checks/safari.test.js +0 -21
- package/lib/js/checks/safari.test.js.map +0 -1
- package/lib/js/drm/verifydrm.js +0 -38
- package/lib/js/drm/verifydrm.js.map +0 -1
- package/lib/js/drm/verifydrm.test.js +0 -18
- package/lib/js/drm/verifydrm.test.js.map +0 -1
- package/lib/js/fragments/setfragments.js +0 -67
- package/lib/js/fragments/setfragments.js.map +0 -1
- package/lib/js/playeractions/customerrors.test.js +0 -52
- package/lib/js/playeractions/customerrors.test.js.map +0 -1
- package/lib/js/playeractions/handlers/customerrors.js +0 -154
- package/lib/js/playeractions/handlers/customerrors.js.map +0 -1
- package/lib/js/playeractions/handlers/error.js +0 -23
- package/lib/js/playeractions/handlers/error.js.map +0 -1
- package/lib/js/playeractions/handlers/error.test.js +0 -45
- package/lib/js/playeractions/handlers/error.test.js.map +0 -1
- package/lib/js/playeractions/handlers/handleoffsets.js +0 -71
- package/lib/js/playeractions/handlers/handleoffsets.js.map +0 -1
- package/lib/js/playeractions/handlers/handleoffsets.test.js +0 -50
- package/lib/js/playeractions/handlers/handleoffsets.test.js.map +0 -1
- package/lib/js/playeractions/handlers/processplayerconfig.js +0 -40
- package/lib/js/playeractions/handlers/processplayerconfig.js.map +0 -1
- package/lib/js/playeractions/handlers/resolvekeypress.js +0 -55
- package/lib/js/playeractions/handlers/resolvekeypress.js.map +0 -1
- package/lib/js/playeractions/playeractions.js +0 -5
- package/lib/js/playeractions/playeractions.js.map +0 -1
- package/lib/js/tracking/handlers/eventbinding.js +0 -86
- package/lib/js/tracking/handlers/eventbinding.js.map +0 -1
- package/lib/js/tracking/handlers/eventlogging.js +0 -42
- package/lib/js/tracking/handlers/eventlogging.js.map +0 -1
- package/lib/js/tracking/handlers/playertrackerinit.js +0 -29
- package/lib/js/tracking/handlers/playertrackerinit.js.map +0 -1
- package/lib/js/tracking/handlers/playertrackerstart.js +0 -29
- package/lib/js/tracking/handlers/playertrackerstart.js.map +0 -1
- package/lib/js/tracking/playertracker.js +0 -10
- package/lib/js/tracking/playertracker.js.map +0 -1
- package/lib/js/ui/components/adbutton.js +0 -21
- package/lib/js/ui/components/adbutton.js.map +0 -1
- package/lib/js/ui/components/adlabel.js +0 -17
- package/lib/js/ui/components/adlabel.js.map +0 -1
- package/lib/js/ui/components/buttons.js +0 -89
- package/lib/js/ui/components/buttons.js.map +0 -1
- package/lib/js/ui/components/controlbar.js +0 -58
- package/lib/js/ui/components/controlbar.js.map +0 -1
- package/lib/js/ui/components/ctabar.js +0 -41
- package/lib/js/ui/components/ctabar.js.map +0 -1
- package/lib/js/ui/components/nativemobile/addFragments.js +0 -8
- package/lib/js/ui/components/nativemobile/addFragments.js.map +0 -1
- package/lib/js/ui/components/nativemobile/buttons.js +0 -43
- package/lib/js/ui/components/nativemobile/buttons.js.map +0 -1
- package/lib/js/ui/components/nativemobile/controlbar.js +0 -52
- package/lib/js/ui/components/nativemobile/controlbar.js.map +0 -1
- package/lib/js/ui/components/nativemobile/ctabar.js +0 -12
- package/lib/js/ui/components/nativemobile/ctabar.js.map +0 -1
- package/lib/js/ui/components/nativemobile/playnext.js +0 -16
- package/lib/js/ui/components/nativemobile/playnext.js.map +0 -1
- package/lib/js/ui/components/nativemobile/titlebar.js +0 -8
- package/lib/js/ui/components/nativemobile/titlebar.js.map +0 -1
- package/lib/js/ui/components/nativemobile/topbar.js +0 -21
- package/lib/js/ui/components/nativemobile/topbar.js.map +0 -1
- package/lib/js/ui/components/playnext.js +0 -11
- package/lib/js/ui/components/playnext.js.map +0 -1
- package/lib/js/ui/components/settingspanel.js +0 -130
- package/lib/js/ui/components/settingspanel.js.map +0 -1
- package/lib/js/ui/components/shared/playnextscreen.js +0 -18
- package/lib/js/ui/components/shared/playnextscreen.js.map +0 -1
- package/lib/js/ui/components/titlebar.js +0 -9
- package/lib/js/ui/components/titlebar.js.map +0 -1
- package/lib/js/ui/components/topbar.js +0 -22
- package/lib/js/ui/components/topbar.js.map +0 -1
- package/lib/js/ui/handlers/listboxhandlers.js +0 -41
- package/lib/js/ui/handlers/listboxhandlers.js.map +0 -1
- package/lib/js/ui/handlers/nicamhandler.js +0 -32
- package/lib/js/ui/handlers/nicamhandler.js.map +0 -1
- package/lib/js/ui/handlers/nicamhandler.test.js +0 -34
- package/lib/js/ui/handlers/nicamhandler.test.js.map +0 -1
- package/lib/js/ui/handlers/playnexthandlers.js +0 -2
- package/lib/js/ui/handlers/playnexthandlers.js.map +0 -1
- package/lib/js/ui/handlers/timecontrolhandlers.js +0 -23
- package/lib/js/ui/handlers/timecontrolhandlers.js.map +0 -1
- package/lib/js/ui/nativemobileuicontainer.js +0 -48
- package/lib/js/ui/nativemobileuicontainer.js.map +0 -1
- package/lib/js/ui/nativemobileuifactory.js +0 -43
- package/lib/js/ui/nativemobileuifactory.js.map +0 -1
- package/lib/js/ui/uicontainer.js +0 -58
- package/lib/js/ui/uicontainer.js.map +0 -1
- package/lib/js/utilities/localizationconfig.js +0 -8
- package/lib/js/utilities/localizationconfig.js.map +0 -1
- package/lib/js/utilities/printversion.js +0 -28
- package/lib/js/utilities/printversion.js.map +0 -1
- package/lib/js/utilities/utilities.js +0 -105
- package/lib/js/utilities/utilities.js.map +0 -1
- package/lib/lang/nl.json +0 -72
- package/lib/npoplayer.test.js +0 -12
- package/lib/npoplayer.test.js.map +0 -1
- package/lib/src/js/ads/ster.d.ts +0 -4
- package/lib/src/js/ads/ster.test.d.ts +0 -1
- package/lib/src/js/api/getstreamobject.d.ts +0 -3
- package/lib/src/js/cdnproviders.d.ts +0 -1
- package/lib/src/js/checks/safari.d.ts +0 -1
- package/lib/src/js/checks/safari.test.d.ts +0 -1
- package/lib/src/js/drm/verifydrm.d.ts +0 -4
- package/lib/src/js/drm/verifydrm.test.d.ts +0 -1
- package/lib/src/js/fragments/setfragments.d.ts +0 -4
- package/lib/src/js/playeractions/customerrors.test.d.ts +0 -1
- package/lib/src/js/playeractions/handlers/customerrors.d.ts +0 -50
- package/lib/src/js/playeractions/handlers/error.d.ts +0 -3
- package/lib/src/js/playeractions/handlers/error.test.d.ts +0 -1
- package/lib/src/js/playeractions/handlers/handleoffsets.d.ts +0 -6
- package/lib/src/js/playeractions/handlers/handleoffsets.test.d.ts +0 -1
- package/lib/src/js/playeractions/handlers/processplayerconfig.d.ts +0 -11
- package/lib/src/js/playeractions/handlers/resolvekeypress.d.ts +0 -3
- package/lib/src/js/playeractions/playeractions.d.ts +0 -4
- package/lib/src/js/tracking/handlers/eventbinding.d.ts +0 -10
- package/lib/src/js/tracking/handlers/eventlogging.d.ts +0 -11
- package/lib/src/js/tracking/handlers/playertrackerinit.d.ts +0 -13
- package/lib/src/js/tracking/handlers/playertrackerstart.d.ts +0 -8
- package/lib/src/js/tracking/playertracker.d.ts +0 -4
- package/lib/src/js/ui/components/adbutton.d.ts +0 -7
- package/lib/src/js/ui/components/adlabel.d.ts +0 -7
- package/lib/src/js/ui/components/buttons.d.ts +0 -30
- package/lib/src/js/ui/components/controlbar.d.ts +0 -3
- package/lib/src/js/ui/components/ctabar.d.ts +0 -9
- package/lib/src/js/ui/components/nativemobile/addFragments.d.ts +0 -1
- package/lib/src/js/ui/components/nativemobile/buttons.d.ts +0 -13
- package/lib/src/js/ui/components/nativemobile/controlbar.d.ts +0 -3
- package/lib/src/js/ui/components/nativemobile/ctabar.d.ts +0 -10
- package/lib/src/js/ui/components/nativemobile/playnext.d.ts +0 -10
- package/lib/src/js/ui/components/nativemobile/titlebar.d.ts +0 -2
- package/lib/src/js/ui/components/nativemobile/topbar.d.ts +0 -3
- package/lib/src/js/ui/components/playnext.d.ts +0 -11
- package/lib/src/js/ui/components/settingspanel.d.ts +0 -4
- package/lib/src/js/ui/components/shared/playnextscreen.d.ts +0 -2
- package/lib/src/js/ui/components/titlebar.d.ts +0 -3
- package/lib/src/js/ui/components/topbar.d.ts +0 -2
- package/lib/src/js/ui/handlers/listboxhandlers.d.ts +0 -5
- package/lib/src/js/ui/handlers/nicamhandler.d.ts +0 -2
- package/lib/src/js/ui/handlers/nicamhandler.test.d.ts +0 -1
- package/lib/src/js/ui/handlers/playnexthandlers.d.ts +0 -0
- package/lib/src/js/ui/handlers/timecontrolhandlers.d.ts +0 -3
- package/lib/src/js/ui/nativemobileuicontainer.d.ts +0 -6
- package/lib/src/js/ui/nativemobileuifactory.d.ts +0 -3
- package/lib/src/js/ui/uicontainer.d.ts +0 -3
- package/lib/src/js/utilities/localizationconfig.d.ts +0 -6
- package/lib/src/js/utilities/printversion.d.ts +0 -1
- package/lib/src/js/utilities/utilities.d.ts +0 -60
- package/lib/src/npoplayer.d.ts +0 -45
- package/lib/src/npoplayer.test.d.ts +0 -1
- package/lib/src/types/classes.d.ts +0 -4
- package/lib/src/types/interfaces.d.ts +0 -106
- package/lib/types/classes.js +0 -4
- package/lib/types/classes.js.map +0 -1
- package/lib/types/interfaces.js +0 -6
- package/lib/types/interfaces.js.map +0 -1
|
@@ -1,11 +1,3 @@
|
|
|
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
1
|
import { type PlayerConfig } from "bitmovin-player";
|
|
10
2
|
import NpoPlayer from "npoplayer";
|
|
11
3
|
export declare function processPlayerConfig(npoplayer: NpoPlayer, playerConfig: PlayerConfig): PlayerConfig;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import { type PlayerAPI } from 'bitmovin-player';
|
|
2
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
3
|
export declare function bindPlayerEvents(npoplayer: NpoPlayer, player: PlayerAPI): void;
|
|
@@ -1,11 +1,2 @@
|
|
|
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
1
|
import NpoPlayer from "../../../npoplayer";
|
|
11
2
|
export declare function logEvent(npoplayer: NpoPlayer, event: string, data?: any): void;
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
import { type NPOTag } from '@npotag/tag';
|
|
2
2
|
import { type InitialisationProps } from '@npotag/tag/dist/types/src/npoTag';
|
|
3
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
4
|
export declare function initPlayerTracker(npoplayer: NpoPlayer, _npotag?: InitialisationProps | null, _npotaginstance?: NPOTag): void;
|
|
@@ -1,8 +1 @@
|
|
|
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
1
|
export declare function startPlayerTracker(playerInstance: any, duration: number, version: string): void;
|
|
@@ -4,6 +4,6 @@ import { type PlayerAPI } from 'bitmovin-player';
|
|
|
4
4
|
import { ButtonConfig } from 'bitmovin-player-ui/dist/js/framework/components/button';
|
|
5
5
|
import { LabelConfig } from 'bitmovin-player-ui/dist/js/framework/components/label';
|
|
6
6
|
export declare function createCTABar(player: PlayerAPI | null, npoplayer: NpoPlayer, variant: string): Container<{
|
|
7
|
-
components: (
|
|
7
|
+
components: (Label<LabelConfig> | Button<ButtonConfig>)[];
|
|
8
8
|
cssClasses: string[];
|
|
9
9
|
}>;
|
|
@@ -1,60 +1,10 @@
|
|
|
1
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
2
|
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
3
|
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
4
|
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
5
|
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
6
|
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
7
|
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
8
|
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
9
|
export declare function getModuleExport(module: unknown): unknown;
|
|
60
10
|
export declare function airPlaySupported(): boolean;
|