@mediakind/mkplayer 1.4.4 → 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.
- package/classes/common/MKAzukiResponseUtils.d.ts +1 -13
- package/classes/common/MKEventBase.d.ts +1 -9
- package/classes/common/MKLocalStorage.d.ts +0 -27
- package/classes/common/MKLog.d.ts +1 -10
- package/classes/common/MKPlatform.d.ts +1 -32
- package/classes/common/MKProgramManager.d.ts +1 -13
- package/classes/common/MKSubtitleOverlay.d.ts +1 -25
- package/classes/common/MKThumbnailManager.d.ts +1 -22
- package/classes/common/MKUtils.d.ts +1 -21
- package/classes/error/MKAdobeSessionConcurrencyError.d.ts +1 -7
- package/classes/error/MKAzukiRequestError.d.ts +1 -8
- package/classes/error/MKBitmovinPlayerError.d.ts +1 -5
- package/classes/error/MKHttpError.d.ts +1 -10
- package/classes/error/MKPlayerError.d.ts +1 -7
- package/classes/error/MKProgramRestrictionError.d.ts +1 -9
- package/classes/player/MKBitmovinPlayer.d.ts +1 -106
- package/classes/player/MKPlayer.d.ts +1 -1
- package/classes/request/MKAdobeSessionConcurrencyRequest.d.ts +1 -20
- package/classes/request/MKAzukiRequest.d.ts +1 -40
- package/classes/request/MKHttpRequest.d.ts +1 -12
- package/constants/MKAzukiRequestEndpoint.d.ts +1 -36
- package/constants/MKConstants.d.ts +1 -18
- package/constants/MKCustomError.d.ts +1 -14
- package/enums/MKLocalStorageKeys.d.ts +1 -6
- package/enums/MKRightsMode.d.ts +1 -4
- package/interfaces/MKCastConfig.d.ts +5 -3
- package/interfaces/MKCdn.d.ts +1 -8
- package/interfaces/MKImageMediaPlaylist.d.ts +1 -9
- package/interfaces/MKPlayerAPI.d.ts +2 -94
- package/interfaces/MKPlayerConfig.d.ts +3 -2
- package/interfaces/MKProgramInfo.d.ts +1 -6
- package/interfaces/MKRollInfo.d.ts +1 -16
- package/interfaces/MKSessionConcurrencyAPI.d.ts +1 -4
- package/interfaces/index.d.ts +2 -2
- package/mkplayer.js +1 -1
- package/package.json +4 -4
- package/interfaces/MKPlayerEngine.d.ts +0 -3
- /package/{classes/common/MKUtils.spec.d.ts → interfaces/MKPlayerCoreAPI.d.ts} +0 -0
|
@@ -1,98 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { MKBufferLevel } from "./MKBufferLevel";
|
|
4
|
-
import { MKDownloadedAudioData } from "./MKDownloadedAudioData";
|
|
5
|
-
import { MKDownloadedVideoData } from "./MKDownloadedVideoData";
|
|
6
|
-
import { MKLowLatencySyncConfig } from "./MKLowLatencySyncConfig";
|
|
7
|
-
import { MKPlayerEventCallback } from "./MKPlayerEventCallback";
|
|
8
|
-
import { MKSourceConfig } from "./MKSourceConfig";
|
|
9
|
-
import { MKSubtitleTrack } from "./MKSubtitleTrack";
|
|
10
|
-
import { MKThumbnail } from "./MKThumbnail";
|
|
11
|
-
import { MKTimeRange } from "./MKTimeRange";
|
|
12
|
-
import { MKVideoQuality } from "./MKVideoQuality";
|
|
13
|
-
import { MKViewModeOptions } from "./MKViewModeOptions";
|
|
14
|
-
import { MKPlayerEvent, MKTimeMode, MKLogLevel, MKViewMode, MKBufferType, MKMediaType } from "../enums";
|
|
15
|
-
import { MKSourceOptions } from "./MKSourceOptions";
|
|
16
|
-
export interface MKPlayerAPI {
|
|
17
|
-
addCastMetadata(metadata: any): boolean;
|
|
18
|
-
addSubtitle(subtitleTrack: MKSubtitleTrack): void;
|
|
19
|
-
castStop(): void;
|
|
20
|
-
castVideo(): void;
|
|
21
|
-
destroy(): Promise<void>;
|
|
22
|
-
disableSubtitle(subtitleID: string): void;
|
|
23
|
-
enableSubtitle(subtitleID: string): void;
|
|
24
|
-
getAspectRatio(): number;
|
|
25
|
-
getAudio(): MKAudioTrack | null;
|
|
26
|
-
getAudioQuality(): MKAudioQuality | null;
|
|
27
|
-
getAvailableAudio(): MKAudioTrack[];
|
|
28
|
-
getAvailableAudioQualities(): MKAudioQuality[];
|
|
29
|
-
getAvailableSubtitles(): MKSubtitleTrack[];
|
|
30
|
-
getAvailableVideoQualities(): MKVideoQuality[];
|
|
31
|
-
getBufferLevel(type: MKBufferType, media: MKMediaType): MKBufferLevel | null;
|
|
32
|
-
getBufferedRanges(): MKTimeRange[];
|
|
33
|
-
getVersion(): string;
|
|
34
|
-
getVideoContainer(): HTMLElement;
|
|
35
|
-
getCurrentTime(mode?: MKTimeMode): number;
|
|
36
|
-
getDownloadedAudioData(): MKDownloadedAudioData | null;
|
|
37
|
-
getDownloadedVideoData(): MKDownloadedVideoData | null;
|
|
38
|
-
getDroppedVideoFrames(): number;
|
|
39
|
-
getDuration(): number;
|
|
40
|
-
getMaxTimeShift(): number;
|
|
41
|
-
getPlaybackAudioData(): MKAudioQuality | null;
|
|
42
|
-
getPlaybackSpeed(): number;
|
|
43
|
-
getPlaybackVideoData(): MKVideoQuality | null;
|
|
44
|
-
getSeekableRange(mode?: MKTimeMode): MKTimeRange | null;
|
|
45
|
-
getThumbnail(time: number): MKThumbnail | null;
|
|
46
|
-
getTimeShift(): number;
|
|
47
|
-
getTotalStalledTime(): number;
|
|
48
|
-
getVideoElement(): HTMLVideoElement | undefined;
|
|
49
|
-
getVideoQuality(): MKVideoQuality | null;
|
|
50
|
-
getViewMode(): MKViewMode | null;
|
|
51
|
-
getVolume(): number;
|
|
52
|
-
hasEnded(): boolean;
|
|
53
|
-
isAirplayActive(): boolean;
|
|
54
|
-
isAirplayAvailable(): boolean;
|
|
55
|
-
isCastAvailable(): boolean;
|
|
56
|
-
isCasting(): boolean;
|
|
57
|
-
isLive(): boolean;
|
|
58
|
-
isMuted(): boolean;
|
|
59
|
-
isPaused(): boolean;
|
|
60
|
-
isPlaying(): boolean;
|
|
61
|
-
isStalled(): boolean;
|
|
62
|
-
isViewModeAvailable(viewMode: MKViewMode): boolean;
|
|
63
|
-
load(sourceConfig: MKSourceConfig, disableSeeking?: boolean): Promise<void>;
|
|
64
|
-
reload(start: string, sourceOptions?: MKSourceOptions): Promise<void>;
|
|
65
|
-
mute(issuer?: string): void;
|
|
66
|
-
on(eventType: MKPlayerEvent, callback: MKPlayerEventCallback): void;
|
|
67
|
-
off(eventType: MKPlayerEvent, callback: MKPlayerEventCallback): void;
|
|
68
|
-
pause(issuer?: string): void;
|
|
69
|
-
play(issuer?: string): Promise<void>;
|
|
70
|
-
preload(): void;
|
|
71
|
-
removeSubtitle(subtitleID: string): void;
|
|
72
|
-
seek(time: number, issuer?: string): boolean;
|
|
73
|
-
seekToLiveEdge(issuer?: string): void;
|
|
74
|
-
setAspectRatio(aspectratio: string | number): void;
|
|
75
|
-
setAudio(trackID: string): void;
|
|
76
|
-
setAudioQuality(audioQualityID: string): void;
|
|
1
|
+
import { MKPlayerCoreAPI } from "./MKPlayerCoreAPI";
|
|
2
|
+
export interface MKPlayerAPI extends MKPlayerCoreAPI {
|
|
77
3
|
setAuthorizationToken(authorizationToken: string): void;
|
|
78
4
|
setInhomeStatus(inhomeStatus: boolean): void;
|
|
79
5
|
setLocationDetail(locationDetail: string | null): void;
|
|
80
|
-
setLogLevel(level: MKLogLevel): void;
|
|
81
|
-
setPlaybackSpeed(speed: number): void;
|
|
82
|
-
setPosterImage(url: string, keepPersistent: boolean): void;
|
|
83
|
-
setTargetBufferLevel(type: MKBufferType, value: number, media: MKMediaType): void;
|
|
84
|
-
setVideoElement(videoElement: HTMLVideoElement): void;
|
|
85
|
-
setVideoQuality(videoQualityID: string): void;
|
|
86
|
-
setViewMode(viewMode: MKViewMode, options?: MKViewModeOptions): void;
|
|
87
|
-
setVolume(volume: number, issuer?: string): void;
|
|
88
|
-
showAirplayTargetPicker(): void;
|
|
89
|
-
unload(): Promise<void>;
|
|
90
|
-
unmute(issuer?: string): void;
|
|
91
|
-
getCatchupConfig(): MKLowLatencySyncConfig | null;
|
|
92
|
-
getFallbackConfig(): MKLowLatencySyncConfig | null;
|
|
93
|
-
getLatency(): number;
|
|
94
|
-
getTargetLatency(): number;
|
|
95
|
-
setCatchupConfig(config: MKLowLatencySyncConfig): void;
|
|
96
|
-
setFallbackConfig(config: MKLowLatencySyncConfig): void;
|
|
97
|
-
setTargetLatency(latency: number): void;
|
|
98
6
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { MKLogConfig } from "./MKLogConfig";
|
|
2
|
-
import { MKCastConfig } from "./MKCastConfig";
|
|
3
2
|
import { MKLiveConfig } from "./MKLiveConfig";
|
|
4
3
|
import { MKBufferConfig } from "./MKBufferConfig";
|
|
5
4
|
import { MKPlaybackConfig } from "./MKPlaybackConfig";
|
|
6
5
|
import { MKAdaptationPlatformConfig } from "./MKAdaptationPlatformConfig";
|
|
7
6
|
import { MKPlayerEventConfig } from "./MKPlayerEventConfig";
|
|
8
7
|
import { MKAnalyticsConfig } from "./MKAnalyticsConfig";
|
|
8
|
+
import { MKCastConfig } from "./MKCastConfig";
|
|
9
9
|
export interface MKPlayerConfig {
|
|
10
10
|
key?: string;
|
|
11
11
|
ui?: boolean;
|
|
12
12
|
log?: MKLogConfig;
|
|
13
13
|
live?: MKLiveConfig;
|
|
14
|
-
cast?: MKCastConfig;
|
|
15
14
|
buffer?: MKBufferConfig;
|
|
16
15
|
playback?: MKPlaybackConfig;
|
|
17
16
|
events?: MKPlayerEventConfig;
|
|
@@ -20,4 +19,6 @@ export interface MKPlayerConfig {
|
|
|
20
19
|
enableHlsImageMediaPlaylistSupport?: boolean;
|
|
21
20
|
enableAdTrackingBeacons?: boolean;
|
|
22
21
|
enableSubtitleOverlay?: boolean;
|
|
22
|
+
cast?: MKCastConfig;
|
|
23
|
+
appId?: string;
|
|
23
24
|
}
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { MKProgramInfo } from "./MKProgramInfo";
|
|
3
|
-
import { MKDrmType, MKStreamType } from "../enums";
|
|
4
|
-
export interface MKRollInfo {
|
|
5
|
-
mediaId: string;
|
|
6
|
-
isLive: boolean;
|
|
7
|
-
isLiveEvent: boolean;
|
|
8
|
-
beaconInterval: number;
|
|
9
|
-
drmType: MKDrmType;
|
|
10
|
-
drm?: MKDrmConfig;
|
|
11
|
-
streamType: MKStreamType;
|
|
12
|
-
sourceUrl: string;
|
|
13
|
-
failoverSourceUrl?: string;
|
|
14
|
-
programInfo: MKProgramInfo;
|
|
15
|
-
asidInitToken?: string;
|
|
16
|
-
}
|
|
1
|
+
export {};
|
package/interfaces/index.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export { MKBitrateLimitationConfig } from "./MKBitrateLimitationConfig";
|
|
|
12
12
|
export { MKBufferConfig } from "./MKBufferConfig";
|
|
13
13
|
export { MKBufferLevel } from "./MKBufferLevel";
|
|
14
14
|
export { MKBufferMediaTypeConfig } from "./MKBufferMediaTypeConfig";
|
|
15
|
-
export { MKCastConfig } from "./MKCastConfig";
|
|
16
15
|
export { MKCdn } from "./MKCdn";
|
|
17
16
|
export { MKCdnOptions } from "./MKCdnOptions";
|
|
18
17
|
export { MKDownloadedAudioData } from "./MKDownloadedAudioData";
|
|
@@ -39,7 +38,7 @@ export { MKPeriodSwitchObject } from "./MKPeriodSwitchObject";
|
|
|
39
38
|
export { MKPlaybackConfig } from "./MKPlaybackConfig";
|
|
40
39
|
export { MKPlayerAPI } from "./MKPlayerAPI";
|
|
41
40
|
export { MKPlayerConfig } from "./MKPlayerConfig";
|
|
42
|
-
export {
|
|
41
|
+
export { MKPlayerCoreAPI } from "./MKPlayerCoreAPI";
|
|
43
42
|
export { MKPlayerEventCallback } from "./MKPlayerEventCallback";
|
|
44
43
|
export { MKPlayerEventConfig } from "./MKPlayerEventConfig";
|
|
45
44
|
export { MKPlayerTechnology } from "./MKPlayerTechnology";
|
|
@@ -75,3 +74,4 @@ export { MKVTTProperties } from "./MKVTTProperties";
|
|
|
75
74
|
export { MKVTTRegionProperties } from "./MKVTTRegionProperties";
|
|
76
75
|
export { MKViewModeOptions } from "./MKViewModeOptions";
|
|
77
76
|
export { MKWidevineModularDrmConfig } from "./MKWidevineModularDrmConfig";
|
|
77
|
+
export { MKCastConfig } from "./MKCastConfig";
|