Class VeeplayCastManager

java.lang.Object
com.appscend.media.cast.VeeplayCastManager
All Implemented Interfaces:
androidx.media3.cast.SessionAvailabilityListener, androidx.media3.common.Player.Listener, com.google.android.gms.cast.framework.CastStateListener

public class VeeplayCastManager extends Object implements androidx.media3.cast.SessionAvailabilityListener, com.google.android.gms.cast.framework.CastStateListener, androidx.media3.common.Player.Listener
  • Method Details

    • getInstance

      public static VeeplayCastManager getInstance()
    • init

      public void init(android.content.Context ctx)
    • getCastContext

      public com.google.android.gms.cast.framework.CastContext getCastContext()
    • onCastSessionAvailable

      public void onCastSessionAvailable()
      Specified by:
      onCastSessionAvailable in interface androidx.media3.cast.SessionAvailabilityListener
    • onCastSessionUnavailable

      public void onCastSessionUnavailable()
      Specified by:
      onCastSessionUnavailable in interface androidx.media3.cast.SessionAvailabilityListener
    • onCastStateChanged

      public void onCastStateChanged(int state)
      Specified by:
      onCastStateChanged in interface com.google.android.gms.cast.framework.CastStateListener
    • release

      public void release()
    • sessionAvailable

      public boolean sessionAvailable()
    • getCastPlayer

      public androidx.media3.cast.CastPlayer getCastPlayer()
    • addCastStateListener

      public void addCastStateListener(VeeplayCastManager.VeeplayCastManagerStateListener listener)
    • removeCastStateListener

      public void removeCastStateListener(VeeplayCastManager.VeeplayCastManagerStateListener listener)
    • addObserver

      public void addObserver(CastStateObserver observer)
    • removeObserver

      public void removeObserver(CastStateObserver observer)
    • getCastState

      public int getCastState()
    • onPlayerStateChanged

      public void onPlayerStateChanged(boolean playWhenReady, int playbackState)
      Specified by:
      onPlayerStateChanged in interface androidx.media3.common.Player.Listener
    • getPlaybackState

      public int getPlaybackState()