Represents the general Streaming DRM config.

interface DrmConfig {
    fairplay?: FairplayConfig;
    nativeId?: string;
    widevine?: WidevineConfig;
}

Hierarchy

  • NativeInstanceConfig
    • DrmConfig

Properties

fairplay?: FairplayConfig

FairPlay specific configuration.

Platform

iOS

nativeId?: string

Optionally user-defined string id for the native instance. Used to access a certain native instance from any point in the source code then call methods/properties on it.

When left empty, a random UUIDv4 is generated for it.

Example

Accessing or creating the Player with nativeId equal to my-player:

const player = new Player({ nativeId: 'my-player' })
player.play(); // call methods and properties...
widevine?: WidevineConfig

Widevine specific configuration.

Platform

Android, iOS (only for casting).