Configures the visual presentation and behaviour of the PlayerView.

interface PlayerViewConfig {
    hideFirstFrame?: boolean;
    pictureInPictureConfig?: PictureInPictureConfig;
    surfaceType?: SurfaceType;
    uiConfig?: UiConfig;
}

Properties

hideFirstFrame?: boolean

When set to true, the first frame of the main content will not be rendered before playback starts. Default is false. This configuration has no effect for the UserInterfaceType.Subtitle on iOS/tvOS.

To reliably hide the first frame before a pre-roll ad, please ensure that you are using the AdvertisingConfig to schedule ads and not the Player.scheduleAd API call.

pictureInPictureConfig?: PictureInPictureConfig

Provides options to configure Picture in Picture playback.

surfaceType?: SurfaceType

Specify on which surface type the video should be rendered.

See a surface type for more information.

Default is SurfaceType.SurfaceView.

Platform

Android

uiConfig?: UiConfig

Configures the visual presentation and behaviour of the Bitmovin Player UI. A WebUiConfig can be used to configure the default Bitmovin Player Web UI.

Default is WebUiConfig.

Limitations: Configuring the uiConfig only has an effect if the StyleConfig.userInterfaceType is set to UserInterfaceType.Bitmovin.