@mediakind/mkplayer 1.4.3 → 1.5.0

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 (38) hide show
  1. package/classes/common/MKAzukiResponseUtils.d.ts +1 -13
  2. package/classes/common/MKEventBase.d.ts +1 -9
  3. package/classes/common/MKLocalStorage.d.ts +0 -27
  4. package/classes/common/MKLog.d.ts +1 -10
  5. package/classes/common/MKPlatform.d.ts +1 -32
  6. package/classes/common/MKProgramManager.d.ts +1 -13
  7. package/classes/common/MKSubtitleOverlay.d.ts +1 -25
  8. package/classes/common/MKThumbnailManager.d.ts +1 -22
  9. package/classes/common/MKUtils.d.ts +1 -21
  10. package/classes/error/MKAdobeSessionConcurrencyError.d.ts +1 -7
  11. package/classes/error/MKAzukiRequestError.d.ts +1 -8
  12. package/classes/error/MKBitmovinPlayerError.d.ts +1 -5
  13. package/classes/error/MKHttpError.d.ts +1 -10
  14. package/classes/error/MKPlayerError.d.ts +1 -7
  15. package/classes/error/MKProgramRestrictionError.d.ts +1 -9
  16. package/classes/player/MKBitmovinPlayer.d.ts +1 -106
  17. package/classes/player/MKPlayer.d.ts +1 -1
  18. package/classes/request/MKAdobeSessionConcurrencyRequest.d.ts +1 -20
  19. package/classes/request/MKAzukiRequest.d.ts +1 -40
  20. package/classes/request/MKHttpRequest.d.ts +1 -12
  21. package/constants/MKAzukiRequestEndpoint.d.ts +1 -36
  22. package/constants/MKConstants.d.ts +1 -18
  23. package/constants/MKCustomError.d.ts +1 -14
  24. package/enums/MKLocalStorageKeys.d.ts +1 -6
  25. package/enums/MKRightsMode.d.ts +1 -4
  26. package/interfaces/MKCastConfig.d.ts +5 -3
  27. package/interfaces/MKCdn.d.ts +1 -8
  28. package/interfaces/MKImageMediaPlaylist.d.ts +1 -9
  29. package/interfaces/MKPlayerAPI.d.ts +2 -94
  30. package/interfaces/MKPlayerConfig.d.ts +3 -2
  31. package/interfaces/MKProgramInfo.d.ts +1 -6
  32. package/interfaces/MKRollInfo.d.ts +1 -16
  33. package/interfaces/MKSessionConcurrencyAPI.d.ts +1 -4
  34. package/interfaces/index.d.ts +2 -2
  35. package/mkplayer.js +1 -1
  36. package/package.json +4 -4
  37. package/interfaces/MKPlayerEngine.d.ts +0 -3
  38. /package/{classes/common/MKUtils.spec.d.ts → interfaces/MKPlayerCoreAPI.d.ts} +0 -0
@@ -1,13 +1 @@
1
- import { MKHeaders, MKRequestQueryParams } from "../../alias";
2
- import { MKDrmType, MKStreamType } from "../../enums";
3
- import { MKProgramInfo, MKProgramRestrictions, MKRollInfo } from "../../interfaces";
4
- export declare abstract class MKAzukiResponseUtils {
5
- static getRollInfo(response: any, requestBaseUrl: string, queryParams: MKRequestQueryParams, requestHeaders: MKHeaders): MKRollInfo;
6
- static getStreamType(response: any): MKStreamType;
7
- static getDrmType(response: any): MKDrmType;
8
- static getProgramRestrictions(response: any): MKProgramRestrictions;
9
- static getProgramInfo(response: any): MKProgramInfo;
10
- private static getDrmConfig;
11
- private static getSourceUrls;
12
- private static pluckPreferredCdn;
13
- }
1
+ export {};
@@ -1,9 +1 @@
1
- import { MKPlayerEvent } from "../../enums";
2
- import { MKPlayerEventBase, MKPlayerEventCallback } from "../../interfaces";
3
- export declare class MKEventBase {
4
- private readonly eventEmitter;
5
- constructor();
6
- on(eventType: MKPlayerEvent, callback: MKPlayerEventCallback): void;
7
- off(eventType: MKPlayerEvent, callback: MKPlayerEventCallback): void;
8
- emit(eventType: MKPlayerEvent, event: MKPlayerEventBase): void;
9
- }
1
+ export {};
@@ -1,28 +1 @@
1
- import { MKLocalStorageKeys } from "../../enums";
2
- declare abstract class LocalStorage<T extends string> {
3
- private secret;
4
- private readonly localStorgage;
5
- constructor();
6
- protected get(key: T): string | null;
7
- protected set(key: T, value: string): void;
8
- protected clearItem(key: T): void;
9
- protected clearItems(keys: T[]): void;
10
- private encrypt;
11
- private decrypt;
12
- }
13
- export declare class MKLocalStorage extends LocalStorage<MKLocalStorageKeys> {
14
- private static instance?;
15
- private constructor();
16
- static getInstance(): MKLocalStorage;
17
- setRegistered(authToken: string): void;
18
- getRegistered(): string | null;
19
- clearRegistered(): void;
20
- setDeviceId(deviceId: string): void;
21
- getDeviceId(): string | null;
22
- setDeviceProfile(deviceProfile: string): void;
23
- getDeviceProfile(): string | null;
24
- setBeaconData(beaconData: any): void;
25
- getBeaconData(): any;
26
- clearBeaconData(): void;
27
- }
28
1
  export {};
@@ -1,10 +1 @@
1
- import { MKLogLevel } from "../../enums";
2
- export declare abstract class MKLog {
3
- private static logLevel;
4
- private static logTag;
5
- static setLogLevel(logLevel: MKLogLevel): void;
6
- static log(message?: any, ...options: any[]): void;
7
- static debug(message?: any, ...options: any[]): void;
8
- static warn(message?: any, ...options: any[]): void;
9
- static error(message?: any, ...options: any[]): void;
10
- }
1
+ export {};
@@ -1,32 +1 @@
1
- export declare abstract class MKPlatform {
2
- static getDeviceProfile(): string;
3
- private static getDeviceId;
4
- private static getDrmPlatform;
5
- private static getOSVendorName;
6
- private static isIE;
7
- private static isEdge;
8
- private static isMac;
9
- private static isWindows;
10
- private static isXbox;
11
- private static isPlayStation5;
12
- private static isPlayStation4;
13
- private static isSafari;
14
- static isIOSDevice(): boolean;
15
- private static isIOSWebView;
16
- private static isChrome;
17
- private static isFirefox;
18
- private static isOpera;
19
- private static isComcastX1;
20
- private static isOperaTV;
21
- private static isChromebook;
22
- private static isDesktopChromeBrowser;
23
- private static isWebOS;
24
- private static isTizenTV;
25
- private static isLinux;
26
- private static isIOSFamily;
27
- private static isChromeCast;
28
- static isAndroid(): boolean;
29
- static isTablet(): boolean;
30
- static isPhone(): boolean;
31
- static isDesktop(): boolean;
32
- }
1
+ export {};
@@ -1,13 +1 @@
1
- import { MKAzukiRequest } from "../request";
2
- import { MKError, MKProgramInfo } from "../../interfaces";
3
- export declare class MKProgramManager {
4
- private azukiRequest?;
5
- private programInfoList;
6
- private currentProgramInfo?;
7
- constructor(azukiRequest?: MKAzukiRequest);
8
- reset(): void;
9
- updateProgramInfoList(currentProgramInfo: MKProgramInfo): void;
10
- validateProgramRestrictions(programInfo: MKProgramInfo): MKError[];
11
- checkProgramBoundary(currentTime: number): MKProgramInfo | null;
12
- private getProgramInfo;
13
- }
1
+ export {};
@@ -1,25 +1 @@
1
- import { MKSubtitleCue } from "../../interfaces";
2
- export declare class MKSubtitleOverlay {
3
- private static readonly CEA608_NUM_ROWS;
4
- private static readonly CEA608_NUM_COLUMNS;
5
- private static readonly DEFAULT_REGION_STYLE;
6
- private static readonly DEFAULT_CELL_RESOLUTION;
7
- private videoContainer;
8
- private videoElement;
9
- private subtitleContainer;
10
- private subtitleRegion;
11
- private enabled;
12
- constructor(videoElement: HTMLVideoElement);
13
- private reset;
14
- private getSubtitleContainer;
15
- private getSubtitleRegion;
16
- private rgbaCheck;
17
- private styleTextToObject;
18
- private updateRegion;
19
- enable(): void;
20
- disable(): void;
21
- show(cue: MKSubtitleCue): void;
22
- hide(): void;
23
- updateFontSize(): void;
24
- destroy(): void;
25
- }
1
+ export {};
@@ -1,22 +1 @@
1
- import { MKThumbnail } from "../../interfaces";
2
- export declare class MKThumbnailManager {
3
- private httpRequest;
4
- private manifestUrl;
5
- private imageMediaPlaylists;
6
- private thumbnails;
7
- private isEnabled;
8
- private currentPlaylistData;
9
- private targetDuration;
10
- private reloadPlaylistTimer?;
11
- private retryCount;
12
- private static readonly PLAYLIST_MAX_RETRY_COUNT;
13
- constructor();
14
- getThumbnail(time: number): MKThumbnail | null;
15
- enable(manifestUrl: string): void;
16
- disable(): void;
17
- private fetchAndProcessImageMediaPlaylist;
18
- private reloadImageMediaPlaylist;
19
- private refetchAndProcessImageMediaPlaylistOnError;
20
- private fetchImageMediaPlaylists;
21
- private fetchManifest;
22
- }
1
+ export {};
@@ -1,21 +1 @@
1
- import { MKRequestQueryParams } from "../../alias";
2
- export declare abstract class MKUtils {
3
- static updateURLQueryParams(url: string, params?: MKRequestQueryParams): string;
4
- static getURLQueryParam(url: string, key: string): string | null;
5
- static base64Encode(input: string): string;
6
- static base64Decode(inputString: string, decodeToUTF8?: boolean): string;
7
- static getUUID(): string;
8
- static getCurrentTimestamp(): number;
9
- static timestampToISOString(timestamp: number, skipMilliseconds?: boolean): string;
10
- static dateISOStringToTimestamp(isoString: string): number;
11
- static dateISOStringByAddingSeconds(isoString: string, seconds: number): string;
12
- static isString(value: any): boolean;
13
- static isValidString(value: any): boolean;
14
- static isObject(value: any): boolean;
15
- static isValidObject(value: any): boolean;
16
- static isArray(value: any): boolean;
17
- static isNumber(value: any): boolean;
18
- static isBoolean(value: any): boolean;
19
- static isMKError(value: any): boolean;
20
- static isValidISODateString(date: string): boolean;
21
- }
1
+ export {};
@@ -1,7 +1 @@
1
- import { MKError } from "../../interfaces";
2
- export declare class MKAdobeSessionConcurrencyError implements MKError {
3
- code: string;
4
- name: string;
5
- message: string;
6
- constructor(error: any);
7
- }
1
+ export {};
@@ -1,8 +1 @@
1
- import { MKError } from "../../interfaces";
2
- export declare class MKAzukiRequestError implements MKError {
3
- code: string;
4
- name: string;
5
- message: string;
6
- constructor(api: string, code?: number, message?: string);
7
- private getErrorCode;
8
- }
1
+ export {};
@@ -1,5 +1 @@
1
- import { MKPlayerError } from "./MKPlayerError";
2
- export declare class MKBitmovinPlayerError extends MKPlayerError {
3
- constructor(errorObj: any);
4
- private getErrorCode;
5
- }
1
+ export {};
@@ -1,10 +1 @@
1
- import { MKError } from "../../interfaces";
2
- export declare class MKHttpError implements MKError {
3
- code: string;
4
- name: string;
5
- message: string;
6
- constructor(error: {
7
- code: string;
8
- message: string;
9
- });
10
- }
1
+ export {};
@@ -1,7 +1 @@
1
- import { MKError } from "../../interfaces";
2
- export declare class MKPlayerError implements MKError {
3
- code: string;
4
- name: string;
5
- message: string;
6
- constructor();
7
- }
1
+ export {};
@@ -1,9 +1 @@
1
- import { MKError } from "../../interfaces";
2
- import { MKProgramRestrictionType } from "../../enums";
3
- export declare class MKProgramRestrictionError implements MKError {
4
- code: string;
5
- name: string;
6
- message: string;
7
- constructor(programRestriction: MKProgramRestrictionType);
8
- private getRestrictionCodeAndMessage;
9
- }
1
+ export {};
@@ -1,106 +1 @@
1
- import { MKEventBase } from "../common";
2
- import { MKBufferType, MKLogLevel, MKMediaType, MKTimeMode, MKViewMode } from "../../enums";
3
- import { MKPlayerConfig, MKSourceConfig, MKLowLatencySyncConfig, MKBufferLevel, MKPlayerEngine, MKViewModeOptions, MKTimeRange, MKVideoQuality, MKAudioQuality, MKDownloadedVideoData, MKDownloadedAudioData, MKAudioTrack, MKSubtitleTrack, MKThumbnail, MKSourceOptions } from "../../interfaces";
4
- export declare class MKBitmovinPlayer extends MKEventBase implements MKPlayerEngine {
5
- private player;
6
- private playerUI?;
7
- private playerConfig;
8
- private videoContainer;
9
- private subtitleOverlay?;
10
- private sourceConfig?;
11
- private playStart?;
12
- private fpsContentId?;
13
- private firstTimeChangedUpdate;
14
- private hasPreroll;
15
- private enableAdTrackingBeacons;
16
- private enableSubtitleOverlay;
17
- private adBreakStartedEvent?;
18
- private adStartedEvent?;
19
- private adQuartileOffsets;
20
- private adTrackingList;
21
- private static readonly DEFAULT_BUFFER_CONFIG;
22
- private static readonly DEFAULT_PLAYBACK_CONFIG;
23
- constructor(videoContainer: HTMLElement, playerConfig: MKPlayerConfig);
24
- addCastMetadata(metadata: any): boolean;
25
- addSubtitle(subtitleTrack: MKSubtitleTrack): void;
26
- castStop(): void;
27
- castVideo(): void;
28
- destroy(): Promise<void>;
29
- disableSubtitle(subtitleID: string): void;
30
- enableSubtitle(subtitleID: string): void;
31
- getAspectRatio(): number;
32
- getAudio(): MKAudioTrack | null;
33
- getAudioQuality(): MKAudioQuality | null;
34
- getAvailableAudio(): MKAudioTrack[];
35
- getAvailableAudioQualities(): MKAudioQuality[];
36
- getAvailableSubtitles(): MKSubtitleTrack[];
37
- getAvailableVideoQualities(): MKVideoQuality[];
38
- getBufferLevel(type: MKBufferType, media: MKMediaType): MKBufferLevel | null;
39
- getBufferedRanges(): MKTimeRange[];
40
- getVersion(): string;
41
- getVideoContainer(): HTMLElement;
42
- getCurrentTime(mode?: MKTimeMode): number;
43
- getDownloadedAudioData(): MKDownloadedAudioData | null;
44
- getDownloadedVideoData(): MKDownloadedVideoData | null;
45
- getDroppedVideoFrames(): number;
46
- getDuration(): number;
47
- getMaxTimeShift(): number;
48
- getPlaybackAudioData(): MKAudioQuality | null;
49
- getPlaybackSpeed(): number;
50
- getPlaybackVideoData(): MKVideoQuality | null;
51
- getSeekableRange(mode?: MKTimeMode): MKTimeRange;
52
- getThumbnail(time: number): MKThumbnail | null;
53
- getTimeShift(): number;
54
- getTotalStalledTime(): number;
55
- getVideoElement(): HTMLVideoElement;
56
- getVideoQuality(): MKVideoQuality | null;
57
- getViewMode(): MKViewMode | null;
58
- getVolume(): number;
59
- hasEnded(): boolean;
60
- isAirplayActive(): boolean;
61
- isAirplayAvailable(): boolean;
62
- isCastAvailable(): boolean;
63
- isCasting(): boolean;
64
- isLive(): boolean;
65
- isMuted(): boolean;
66
- isPaused(): boolean;
67
- isPlaying(): boolean;
68
- isStalled(): boolean;
69
- isViewModeAvailable(viewMode: MKViewMode): boolean;
70
- load(sourceConfig: MKSourceConfig, disableSeeking?: boolean): Promise<void>;
71
- reload(start: string, sourceOptions?: MKSourceOptions): Promise<void>;
72
- mute(issuer?: string): void;
73
- pause(issuer?: string): void;
74
- play(issuer?: string): Promise<void>;
75
- preload(): void;
76
- removeSubtitle(subtitleID: string): void;
77
- seek(time: number, issuer?: string): boolean;
78
- seekToLiveEdge(issuer?: string): void;
79
- setAspectRatio(aspectratio: string | number): void;
80
- setAudio(trackID: string): void;
81
- setAudioQuality(audioQualityID: string): void;
82
- setLogLevel(level: MKLogLevel): void;
83
- setPlaybackSpeed(speed: number): void;
84
- setPosterImage(url: string, keepPersistent: boolean): void;
85
- setTargetBufferLevel(type: MKBufferType, value: number, media: MKMediaType): void;
86
- setVideoElement(videoElement: HTMLVideoElement): void;
87
- setVideoQuality(videoQualityID: string): void;
88
- setViewMode(viewMode: MKViewMode, options?: MKViewModeOptions): void;
89
- setVolume(volume: number, issuer?: string): void;
90
- showAirplayTargetPicker(): void;
91
- unload(): Promise<void>;
92
- unmute(issuer?: string): void;
93
- getCatchupConfig(): MKLowLatencySyncConfig | null;
94
- getFallbackConfig(): MKLowLatencySyncConfig | null;
95
- getLatency(): number;
96
- getTargetLatency(): number;
97
- setCatchupConfig(config: MKLowLatencySyncConfig): void;
98
- setFallbackConfig(config: MKLowLatencySyncConfig): void;
99
- setTargetLatency(latency: number): void;
100
- private getAdQuartileOffsets;
101
- private emitAdEvents;
102
- private updateAdTrackingList;
103
- private notifyAdTracking;
104
- private companionXMLToJson;
105
- private processCompanionAds;
106
- }
1
+ export {};
@@ -61,7 +61,7 @@ export declare class MKPlayer extends MKEventBase implements MKPlayerAPI {
61
61
  isStalled(): boolean;
62
62
  isViewModeAvailable(viewMode: MKViewMode): boolean;
63
63
  load(sourceConfig: MKSourceConfig, disableSeeking?: boolean): Promise<void>;
64
- reload(start: string, sourceOptions?: MKSourceOptions): Promise<void>;
64
+ reload(start?: string, sourceOptions?: MKSourceOptions): Promise<void>;
65
65
  mute(issuer?: string): void;
66
66
  pause(issuer?: string): void;
67
67
  play(issuer?: string): Promise<void>;
@@ -1,20 +1 @@
1
- import { MKAdobePrimetimeConfig, MKError, MKSessionConcurrencyAPI } from "../../interfaces";
2
- import { MKHttpRequest } from "./MKHttpRequest";
3
- export declare class MKAdobeSessionConcurrencyRequest extends MKHttpRequest implements MKSessionConcurrencyAPI {
4
- private static readonly DEFAULT_PRODUCTION_ENDPOINT;
5
- private static readonly DEFAULT_STAGING_ENDPOINT;
6
- private static readonly DEFAULT_TIMER_FREQUENCY;
7
- private session;
8
- private config;
9
- private heartBeatTimer?;
10
- private heartBeatFrequency;
11
- private errorCallback?;
12
- constructor(config: MKAdobePrimetimeConfig, errorCallback?: (error: MKError) => void);
13
- startSession(): Promise<void>;
14
- stopSession(): Promise<void>;
15
- private notifyHeartBeat;
16
- private scheduleHeartBeat;
17
- private validateConfig;
18
- private getRequestUrl;
19
- private getRequestHeaders;
20
- }
1
+ export {};
@@ -1,40 +1 @@
1
- import { MKHttpRequest } from "./MKHttpRequest";
2
- import { MKProgramInfo, MKSourceConfig, MKRollInfo, MKSessionConcurrencyAPI, MKError } from "../../interfaces";
3
- export declare class MKAzukiRequest extends MKHttpRequest implements MKSessionConcurrencyAPI {
4
- private mediaId;
5
- private ownerUid;
6
- private sessionId;
7
- private baseUrl;
8
- private headers;
9
- private isLive;
10
- private beaconInterval;
11
- private rightsMode;
12
- private catchupStartTime?;
13
- private localStorage;
14
- private isDvrFromRollingBuffer;
15
- private errorCallback?;
16
- private beaconTimer?;
17
- private adobePrimetimeConfig?;
18
- static locationDetail?: string;
19
- static inhomeStatus: boolean;
20
- static responseTime: {
21
- registration: number;
22
- roll: number;
23
- beacons: number;
24
- query: number;
25
- };
26
- constructor(sourceConfig: MKSourceConfig, errorCallback?: (error: MKError) => void);
27
- setAuthorizationToken(authorizationToken: string): void;
28
- getBeaconInterval(): number;
29
- registrationRequest(): Promise<void>;
30
- rollRequest(): Promise<MKRollInfo>;
31
- programInfoRequest(startDate: string, endDate: string): Promise<MKProgramInfo[]>;
32
- startSession(): Promise<void>;
33
- stopSession(): Promise<void>;
34
- private scheduleBeaconRequest;
35
- private beaconRequest;
36
- private pendingBeaconRequest;
37
- private getRequestHeaders;
38
- private saveBeaconData;
39
- private clearBeaconData;
40
- }
1
+ export {};
@@ -1,12 +1 @@
1
- import { MKHttpRequestOptions, MKHttpResponse } from "../../interfaces";
2
- export declare class MKHttpRequest {
3
- private xhrController;
4
- constructor();
5
- get(url: string, options?: MKHttpRequestOptions): Promise<MKHttpResponse>;
6
- put(url: string, options?: MKHttpRequestOptions): Promise<MKHttpResponse>;
7
- post(url: string, options?: MKHttpRequestOptions): Promise<MKHttpResponse>;
8
- delete(url: string, options?: MKHttpRequestOptions): Promise<MKHttpResponse>;
9
- cancelRequest(): void;
10
- private request;
11
- private getAllResponseHeaders;
12
- }
1
+ export {};
@@ -1,36 +1 @@
1
- export declare const MKAzukiRequestEndpoint: {
2
- API_REQUEST_VERSION: string;
3
- API_REQUEST_TYPE: string;
4
- REGISTRATION: {
5
- API: string;
6
- get(baseUrl: string): string;
7
- };
8
- ROLL: {
9
- API: string;
10
- get(baseUrl: string): string;
11
- };
12
- BEACONS: {
13
- API: string;
14
- get(baseUrl: string): string;
15
- };
16
- QUERY: {
17
- API: string;
18
- get(baseUrl: string): string;
19
- };
20
- WV_LICENSE: {
21
- API: string;
22
- get(baseUrl: string): string;
23
- };
24
- PR_LICENSE: {
25
- API: string;
26
- get(baseUrl: string): string;
27
- };
28
- FP_LICENSE: {
29
- API: string;
30
- get(baseUrl: string): string;
31
- };
32
- FP_CERTIFICATE: {
33
- API: string;
34
- get(baseUrl: string): string;
35
- };
36
- };
1
+ export {};
@@ -1,18 +1 @@
1
- export declare const MKConstants: {
2
- SDK_VERSION: string;
3
- HTTP_REQUEST_DEFAULT_TIMEOUT_MSECS: number;
4
- AzukiIMC: string;
5
- AzukiDefaultOwnerUid: string;
6
- LiveEventPregameTuneDelta: number;
7
- DrmPlatform: {
8
- Widevine: string;
9
- Fairplay: string;
10
- Playready: string;
11
- };
12
- ErrorCodeTemplate: {
13
- AzukiError: string;
14
- PlayerError: string;
15
- ProgramRestrictionError: string;
16
- AdobePrimetimeSessionConcurrencyError: string;
17
- };
18
- };
1
+ export {};
@@ -1,14 +1 @@
1
- export declare const MKCustomError: {
2
- Unknown: {
3
- code: string;
4
- message: string;
5
- };
6
- Http: {
7
- code: string;
8
- message: string;
9
- };
10
- HttpAbort: {
11
- code: string;
12
- message: string;
13
- };
14
- };
1
+ export {};
@@ -1,6 +1 @@
1
- export declare enum MKLocalStorageKeys {
2
- DeviceId = "deviceid",
3
- DeviceProfile = "deviceprofile",
4
- Registered = "registered",
5
- BeaconData = "beacondata"
6
- }
1
+ export {};
@@ -1,4 +1 @@
1
- export declare enum MKRightsMode {
2
- Live = "LIVE",
3
- VOD = "VOD_STREAMING"
4
- }
1
+ export {};
@@ -1,6 +1,8 @@
1
1
  export interface MKCastConfig {
2
- enable?: boolean;
3
- applicationId?: string;
2
+ type: 'googlecast';
3
+ receiverApplicationId?: string;
4
4
  messageNamespace?: string;
5
- receiverStylesheetUrl?: string;
5
+ receiverVersion?: 'v3';
6
+ rejoinActiveSession?: boolean;
7
+ prepareMediaInfo?(mediaInfo: any): Promise<any>;
6
8
  }
@@ -1,8 +1 @@
1
- export interface MKCdn {
2
- name: string;
3
- retrievalType: string;
4
- baseUrl: string;
5
- priority: number;
6
- weight: number;
7
- routingPercent: number;
8
- }
1
+ export {};
@@ -1,9 +1 @@
1
- export interface MKImageMediaPlaylist {
2
- bandwidth: number;
3
- averageBandwidth: number;
4
- resolution: string;
5
- width: number;
6
- height: number;
7
- codecs: string;
8
- uri: string;
9
- }
1
+ export {};