BBPlayerState
Reactive state holder that bridges BBNativePlayerViewDelegate callbacks to Compose state.
Observe any property directly in a composable to trigger recomposition when it changes. Use the imperative control methods (play, pause, seek, etc.) to control the player.
Create with rememberBBPlayerState.
Properties
Functions
End the current Cast session and stop playback on the Cast device. Uses reflection: Cast SDK is an implementation dep of the core module, not transitive.
Enter fullscreen mode. Requires the hosting Activity to extend AppCompatActivity.
Exit fullscreen mode.
Load a clip by ID. Convenience for loadWithContentIdAndType with type "mediaclip". For playlist context (auto-advance), use loadWithContentIdAndType instead.
Load content by ID and type. Routes to the correct SDK method based on contentType. Matches RN's loadWithContentIdAndType.
Seek relative to the current position (e.g. +10.0 or -10.0 seconds).
Show the Chromecast device picker by programmatically clicking the cast button in the player UI.