UserInterfaceApi

interface UserInterfaceApi

API methods related to the user interface.

Functions

enterFullscreen
Link copied to clipboard
abstract fun enterFullscreen()
The player enters fullscreen mode.
enterPictureInPicture
Link copied to clipboard
abstract fun enterPictureInPicture()
The player enters Picture-In-Picture (PiP) mode.
exitFullscreen
Link copied to clipboard
abstract fun exitFullscreen()
The player exits fullscreen mode.
exitPictureInPicture
Link copied to clipboard
abstract fun exitPictureInPicture()
The player exits Picture-In-Picture (PiP) mode.
getPlayer
Link copied to clipboard
abstract fun getPlayer(): Player
Returns the player instance currently used by this interface.
getScalingMode
Link copied to clipboard
abstract fun getScalingMode(): ScalingMode
Returns the current `ScalingMode`.
isFullscreen
Link copied to clipboard
abstract fun isFullscreen(): Boolean
Returns {@code true} if the player is currently in fullscreen mode.
isPictureInPicture
Link copied to clipboard
abstract fun isPictureInPicture(): Boolean
Returns {@code true} if player is currently in Picture-in-Picture (PiP) mode.
isPictureInPictureAvailable
Link copied to clipboard
abstract fun isPictureInPictureAvailable(): Boolean
Returns {@code true} if current device supports Picture-In-Picture (PiP) mode.
isUiVisible
Link copied to clipboard
abstract fun isUiVisible(): Boolean
Returns if the UI is currently visible.
setCustomMessageHandler
Link copied to clipboard
abstract fun setCustomMessageHandler(customMessageHandler: CustomMessageHandler)
Set a CustomMessageHandler which handles the communication with the Bitmovin Web UI in both directions
setPlayer
Link copied to clipboard
abstract fun setPlayer(@Nullable() player: Player)
Sets the Player instance, for which the UI acts.
setPosterImage
Link copied to clipboard
abstract fun setPosterImage(url: String, keepPersistent: Boolean)
Sets a poster image which will be displayed before playback starts.
setScalingMode
Link copied to clipboard
abstract fun setScalingMode(scalingMode: ScalingMode)
Sets a new `ScalingMode`.
setUiVisible
Link copied to clipboard
abstract fun setUiVisible(visible: Boolean)
Sets if the UI should be visible or not.

Inheritors

PlayerView
Link copied to clipboard