BunnyLiveStreamPlayer
Public Compose entry point for live-stream playback. Mirrors Bunny's web player behaviour for every non-running state (offline overlays, countdown, pre-stream trailer) and auto-connects to the live source when polling reports the stream is running — the viewer never needs to refresh.
UI customization is server-driven, mirroring the iOS SDK: the accent colour, font family, UI language, control set and compact mode all come from the live /play endpoint (the Bunny dashboard's player settings). There is no client-side configuration object; SDK defaults apply until play-data arrives or for any field the endpoint doesn't provide.
The behaviour mirrors Bunny's web player; the state resolver in resolveLiveStreamPlayerState codifies it. This composable is intentionally thin: it observes BunnyLiveStreamPlayerViewModel.state and renders one of a handful of branches with no decision logic of its own.
Parameters
the Bunny library id the stream lives in.
GUID of the live stream to play.
optional embed-view token for token-authenticated libraries.
embed-view token expiration timestamp (epoch seconds).
Compose modifier for the root container.
the SDK instance to play from. Leave it null to use the default instance registered by net.bunny.api.BunnyStreamApi.initialize; pass one from BunnyStreamApi.create when the app addresses more than one library.
injected for testability; defaults to a lifecycle-scoped instance bound to bunny.