Identify whether the content is live or VOD

In some cases, you need to know whether the media content is live or VOD.

  1. Wait for the PSDK to call your PlaybackEventListener.onPrepared callback.

    This ensures that the media resource has successfully loaded. If the player is not in the PREPARED state, attempting to call the following methods throws an IllegalStateException.

  2. Call isLive from the MediaPlayerItem interface.
    boolean isLive();