Bitmovin Player React Native SDK - v1.1.0
    Preparing search index...

    Interface WidevineConfig

    Represents a Widevine Streaming DRM config.

    Platform: Android, iOS (only for casting).

    interface WidevineConfig {
        httpHeaders?: Record<string, string>;
        licenseUrl: string;
        preferredSecurityLevel?: string;
        prepareLicense?: (license: string) => string;
        prepareMessage?: (message: string) => string;
        shouldKeepDrmSessionsAlive?: boolean;
    }
    Index

    Properties

    httpHeaders?: Record<string, string>

    A map containing the HTTP request headers, or null.

    licenseUrl: string

    The DRM license acquisition URL.

    preferredSecurityLevel?: string

    Set widevine's preferred security level.

    Platform: Android

    prepareLicense?: (license: string) => string

    A block to prepare the loaded CKC Data before passing it to the system. This is needed if the server responds with anything else than the license, e.g. if the license is wrapped into a JSON object.

    Note that both the passed license data and this block return value should be a Base64 string. So use whatever solution suits you best to handle Base64 in React Native.

    Type declaration

      • (license: string): string
      • Parameters

        • license: string

          Base64 encoded license data.

        Returns string

        The processed Base64 encoded license.

    Platform: Android

    prepareMessage?: (message: string) => string

    A block to prepare the data which is sent as the body of the POST license request. As many DRM providers expect different, vendor-specific messages, this can be done using this user-defined block.

    Note that both the passed message data and this block return value should be a Base64 string. So use whatever solution suits you best to handle Base64 in React Native.

    Type declaration

      • (message: string): string
      • Parameters

        • message: string

          Base64 encoded message data.

        Returns string

        The processed Base64 encoded message.

    Platform: Android

    shouldKeepDrmSessionsAlive?: boolean

    Indicates if the DRM sessions should be kept alive after a source is unloaded. This allows DRM sessions to be reused over several different source items with the same DRM configuration as well as the same DRM scheme information. Default: false

    Platform: Android