FullscreenConfig

class FullscreenConfig(var enable: Boolean = true, var immersive: Boolean = true, var autoRotate: Boolean = true, var minAspectRatioForLandscapeForce: Float = 1.2f, var maxAspectRatioForPortraitForce: Float = 0.8f, var screenDefaultOrientation: Int? = null, var autoPiPOnBackground: Boolean = true)

Configuration for the fullscreen behavior of the player.

Constructors

Link copied to clipboard
constructor(enable: Boolean = true, immersive: Boolean = true, autoRotate: Boolean = true, minAspectRatioForLandscapeForce: Float = 1.2f, maxAspectRatioForPortraitForce: Float = 0.8f, screenDefaultOrientation: Int? = null, autoPiPOnBackground: Boolean = true)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether the player should automatically enter picture-in-picture mode when the app goes to the background while a stream being in fullscreen.

Link copied to clipboard

Whether the player should automatically change orientation.

Link copied to clipboard

Whether the fullscreen behavior should be enabled.

Link copied to clipboard

Whether the player should be in immersive mode. Recommended to be false if the EdgeToEdge is disabled on the Activity (may break on some very specific devices).

Link copied to clipboard

The maximum aspect ratio for forcing portrait orientation. Does not apply if autoRotate is false.

Link copied to clipboard

The minimum aspect ratio for forcing landscape orientation. Does not apply if autoRotate is false.

Link copied to clipboard

The default orientation of the screen.Will be forced after fullscreen escape if non-null. If null, the screen orientation will automatically reset to the state after exiting fullscreen. Should correspond to one of the ActivityInfo.SCREEN_ORIENTATION_* constants.