Fullscreen Config
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.
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
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.