React Native THEOplayer SDK
    Preparing search index...

    Interface PlayerConfiguration

    Describes a player's configuration.

    interface PlayerConfiguration {
        ads?: AdsConfiguration;
        cast?: CastConfiguration;
        cmcd?: CmcdPlayerConfiguration;
        debugLogsEnabled?: boolean;
        hlsDateRange?: boolean;
        libraryLocation?: string;
        license?: string;
        licenseUrl?: string;
        liveOffset?: number;
        mediaControl?: MediaControlConfiguration;
        mutedAutoplay?: MutedAutoplayConfiguration;
        retryConfiguration?: RetryConfiguration;
        theoLive?: TheoLiveConfiguration;
        tunnelingEnabled?: boolean;
        ui?: UIConfiguration;
        useHttpEngine?: boolean;
        usePlayerFacade?: boolean;
        useSystemCaptionStyle?: boolean;
    }
    Index

    The ads configuration for the player.

    The cast configuration for the player.

    The CMCD configuration for the player.


    - Available since v11.4.0.
    - Configures event mode reporting for Common Media Client Data (CTA-5004).
    - Source-level configuration can override player-level values. See CmcdSourceConfiguration.

    debugLogsEnabled?: boolean

    Whether debug logs from the underlying Android SDK should be enabled.

    false
    
    Android


    - When set to true, all debug log tags from the native Android SDK will be enabled.

    hlsDateRange?: boolean

    Sets whether DateRange tags from the playlists should be imported as a textTrack.

    libraryLocation?: string

    The directory in which the THEOplayer library worker files are located. These worker files are THEOplayer.transmux.*


    - This parameter is required when using a HLS source and has no default.

    `'/lib/theoplayer/'`
    
    license?: string

    The license for the player

    licenseUrl?: string

    The url to fetch the license for the player

    liveOffset?: number

    The offset in seconds used to determine the live point. This live point is the end of the manifest minus the provided offset.

    Three times the target duration of a segment, as specified by the manifest.
    
    Android
    Web

    The configuration of media controls and media sessions across platforms.

    The muted autoplay policy for web.


    - The muted autoplay policy is impacted by this property and theoplayer!SourceConfiguration.mutedAutoplay.

    'none'.

    retryConfiguration?: RetryConfiguration

    The retry configuration for the player.

    Android
    Web

    The THEOlive configuration for the player.

    tunnelingEnabled?: boolean

    Whether multimedia tunneling is enabled for the player or not.

    false
    
    Android


    - Only supported with the Media3 integration.
    - Only supported if the media being played includes both audio and video.
    - Only supported on limited number of video codecs and devices.

    The ui configuration for the underlying native player. Applies to Ad UI.

    useHttpEngine?: boolean

    Whether the player should use android.net.http.HttpEngine or Cronet for its network stack, if available.

    true
    
    Android


    - Only supported with the Media3 integration.
    - When set to true, the player will attempt to use either android.net.http.HttpEngine or Cronet for its network requests.
    - When set to false, the player will always use java.net.HttpURLConnection.

    usePlayerFacade?: boolean

    Whether to expose a stable player facade for integration-owned playback and advertising.


    - Set this option at player creation, before registering an integration.
    - On Web, the facade is exposed through THEOplayer.nativeHandle.
    - On Android, integrations register through the native ReactTHEOplayerView API.
    - The content player remains available to integrations without facade overrides.
    - This option has no effect on iOS or tvOS.

    This API is subject to change or removal without notice.

    false
    
    Android
    Web
    useSystemCaptionStyle?: boolean

    Sets whether captions should automatically apply a system-defined style.

    false
    
    Android


    - Any user-defined overrides are still respected.