Interface BroadcastPlayer.Observer

Enclosing class:
BroadcastPlayer

public static interface BroadcastPlayer.Observer
  • Method Summary

    Modifier and Type
    Method
    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
    This will be called on the main thread every time the BroadcastPlayer state changes.
  • Method Details

    • onStateChange

      void onStateChange(PlayerState state)
      This will be called on the main thread every time the BroadcastPlayer state changes.
      Parameters:
      state - The new BroadcastPlayer state.
    • onBroadcastLoaded

      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.
      Parameters:
      live - True if the broadcast is live, false if archived.
      width - Broadcast width in pixels.
      height - Broadcast height in pixels.