Interface MKCdnOptions

Optional CDN options configuration interface.

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

Properties

Properties

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

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 registered 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.