Interface THEOplayerViewProps

interface THEOplayerViewProps {
    config?: PlayerConfiguration;
    onPlayerDestroy?: ((player) => void);
    onPlayerReady?: ((player) => void);
    posterStyle?: StyleProp<ImageStyle>;
    style?: StyleProp<ViewStyle>;
}

Properties

The player configuration with THEOplayer license.

onPlayerDestroy?: ((player) => void)

Callback for when the internal THEOplayer will be destroyed.

Type declaration

    • (player): void
    • Parameters

      Returns void

onPlayerReady?: ((player) => void)

Callback for when the internal THEOplayer is ready.

Type declaration

    • (player): void
    • Parameters

      Returns void

posterStyle?: StyleProp<ImageStyle>

The style applied to the optional Poster component.

Default Value

A style that enforces aspectRatio 16:9.

Remarks


- This property only applies to iOS & Android platforms.

style?: StyleProp<ViewStyle>

The style applied to the player view.