Interface MKCdnOptions

Optional CDN options configuration interface.

Hierarchy

  • MKCdnOptions

Properties

Properties

cdnTokens?: {
    [key: string]: string | number | boolean | null;
}

Key-value pairs of information when specified will be appended to the source URL request. Ex. HLS/DASH manifest request.

This is only applicable for MKRegisteredSource content.

Example:

sourceConfig.cdnOptions.cdnTokens = {
key1: "value1",
key2: "value2"
}

// when a registerd source is loaded the manifest request for this source will look like:
// https://my-cdn.com/my-source/index.m3u8?key1=value1&key2=value2

Please note that any existing key-value pair in the source manifest query parameter will be replaced with the key-value specified here.

Type declaration

  • [key: string]: string | number | boolean | null