player-ui-web-compose
The player-ui-web-compose module provides a Jetpack Compose wrapper around the Android PlayerView. It can be used from Compose UI while keeping the Player lifecycle caller-owned.
Add the module in addition to the main player dependency:
dependencies {
implementation("com.bitmovin.player:player-ui-web-compose:<bitmovin-player-version>")
}Use the same <bitmovin-player-version> as your com.bitmovin.player:player dependency. Only Bitmovin Player artifacts with the same version are compatible with each other.
The Compose API is experimental and requires opting in to ExperimentalBitmovinApi.
Lifecycle handling
By default, lifecycle owner start/resume/pause/stop events are forwarded to the wrapped Android PlayerView. The wrapper always destroys its owned Android PlayerView when released, after detaching the caller-owned Player.
This is an optional module of the Bitmovin Android Player that can be added to your dependencies in addition to the player module dependency.