@mediakind/mkplayer 1.2.0 → 1.3.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/README.md CHANGED
@@ -115,5 +115,4 @@ To destroy the player instance and release all held resources, you can call `des
115
115
  player.destroy();
116
116
  ```
117
117
 
118
- ### Documentation
119
- Check out our [API Reference](https://mkplayer.azureedge.net/$web/websdk/latest/docs/index.html) for more information on how to best use the SDK.
118
+ ### For more details, please checkout our [API Reference](https://mkplayer.azureedge.net/%24web/websdk/latest/docs/index.html)
@@ -16,4 +16,5 @@ export declare abstract class MKUtils {
16
16
  static isArray(value: any): boolean;
17
17
  static isNumber(value: any): boolean;
18
18
  static isBoolean(value: any): boolean;
19
+ static isMKError(value: any): boolean;
19
20
  }
@@ -3,8 +3,11 @@ export interface MKAnalyticsConfig {
3
3
  title?: string;
4
4
  userId?: string;
5
5
  videoId?: string;
6
- cdnProvider?: string;
7
6
  experimentName?: string;
7
+ isLive?: boolean;
8
+ player?: string;
9
+ playerKey?: string;
10
+ cdnProvider?: string;
8
11
  customData1?: string;
9
12
  customData2?: string;
10
13
  customData3?: string;
@@ -5,6 +5,7 @@ import { MKBufferConfig } from "./MKBufferConfig";
5
5
  import { MKPlaybackConfig } from "./MKPlaybackConfig";
6
6
  import { MKAdaptationPlatformConfig } from "./MKAdaptationPlatformConfig";
7
7
  import { MKPlayerEventConfig } from "./MKPlayerEventConfig";
8
+ import { MKAnalyticsConfig } from "./MKAnalyticsConfig";
8
9
  export interface MKPlayerConfig {
9
10
  key?: string;
10
11
  ui?: boolean;
@@ -14,6 +15,7 @@ export interface MKPlayerConfig {
14
15
  buffer?: MKBufferConfig;
15
16
  playback?: MKPlaybackConfig;
16
17
  events?: MKPlayerEventConfig;
18
+ analytics?: MKAnalyticsConfig | false;
17
19
  adaptation?: MKAdaptationPlatformConfig;
18
20
  enableHlsImageMediaPlaylistSupport?: boolean;
19
21
  enableAdTrackingBeacons?: boolean;
@@ -7,7 +7,7 @@ export interface MKRollInfo {
7
7
  isLiveEvent: boolean;
8
8
  beaconInterval: number;
9
9
  drmType: MKDrmType;
10
- drmConfig?: MKDrmConfig;
10
+ drm?: MKDrmConfig;
11
11
  streamType: MKStreamType;
12
12
  sourceUrl: string;
13
13
  failoverSourceUrl?: string;
@@ -22,11 +22,11 @@ export interface MKSourceConfig {
22
22
  whep?: string;
23
23
  ull?: MKUllSource;
24
24
  registered?: MKRegisteredSource;
25
- drmConfig?: MKDrmConfig;
25
+ drm?: MKDrmConfig;
26
26
  cdnOptions?: MKCdnOptions;
27
27
  sourceOptions?: MKSourceOptions;
28
28
  labeling?: MKSourceLabelingStreamTypeConfig;
29
- analyticsConfig?: MKAnalyticsConfig;
29
+ analytics?: MKAnalyticsConfig;
30
30
  subtitleTracks?: MKSubtitleTrack[];
31
31
  thumbnailTrack?: MKThumbnailTrack;
32
32
  }