UserInterfaceApi

UserInterfaceApi

interface UserInterfaceApi

API methods related to the user interface.

Inheritors

Functions

NameSummary
enterFullscreenabstract fun enterFullscreen()
The player enters fullscreen mode.
enterPictureInPictureabstract fun enterPictureInPicture()
The player enters Picture-In-Picture (PiP) mode.
exitFullscreenabstract fun exitFullscreen()
The player exits fullscreen mode.
exitPictureInPictureabstract fun exitPictureInPicture()
The player exits Picture-In-Picture (PiP) mode.
getPlayer@Nullable
abstract fun getPlayer(): Player
Returns the player instance currently used by this interface.
getScalingModeabstract fun getScalingMode(): ScalingMode
Returns the current ScalingMode.
isFullscreenabstract fun isFullscreen(): Boolean
Returns true if the player is currently in fullscreen mode.
isPictureInPictureabstract fun isPictureInPicture(): Boolean
Returns true if player is currently in Picture-in-Picture (PiP) mode.
isPictureInPictureAvailableabstract fun isPictureInPictureAvailable(): Boolean
Returns true if current device supports Picture-In-Picture (PiP) mode.
isUiVisibleabstract fun isUiVisible(): Boolean
Returns if the UI is currently visible.
setCustomMessageHandlerabstract fun setCustomMessageHandler(customMessageHandler: CustomMessageHandler)
Set a CustomMessageHandler which handles the communication with the Bitmovin Web UI in both directions
setPlayerabstract fun setPlayer(@Nullableplayer: Player)
Sets the Player instance, for which the UI acts.
setPosterImageabstract fun setPosterImage(url: String, keepPersistent: Boolean)
Sets a poster image which will be displayed before playback starts.
setScalingModeabstract fun setScalingMode(scalingMode: ScalingMode)
Sets a new ScalingMode.
setUiVisibleabstract fun setUiVisible(visible: Boolean)
Sets if the UI should be visible or not.