public static interface BroadcastPlayer.Observer
Modifier and Type | Method and Description |
---|---|
void |
onBroadcastLoaded(boolean live,
int width,
int height)
Called on the main thread when initial data about the broadcast has been successfully
loaded, providing some information useful for UI layout.
|
void |
onStateChange(PlayerState state)
This will be called on the main thread every time the BroadcastPlayer state changes.
|
void onStateChange(PlayerState state)
state
- The new BroadcastPlayer state.void onBroadcastLoaded(boolean live, int width, int height)
live
- True if the broadcast is live, false if archived.width
- Broadcast width in pixels.height
- Broadcast height in pixels.