public class VeeplayCastManager
extends java.lang.Object
implements com.google.android.exoplayer2.ext.cast.SessionAvailabilityListener, com.google.android.gms.cast.framework.CastStateListener, com.google.android.exoplayer2.Player.EventListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
VeeplayCastManager.VeeplayCastManagerStateListener |
| Modifier and Type | Method and Description |
|---|---|
void |
addCastStateListener(VeeplayCastManager.VeeplayCastManagerStateListener listener) |
com.google.android.gms.cast.framework.CastContext |
getCastContext() |
com.google.android.exoplayer2.ext.cast.CastPlayer |
getCastPlayer() |
int |
getCastState() |
static VeeplayCastManager |
getInstance() |
int |
getPlaybackState() |
void |
init(Context ctx) |
void |
onCastSessionAvailable() |
void |
onCastSessionUnavailable() |
void |
onCastStateChanged(int state) |
void |
onPlayerStateChanged(boolean playWhenReady,
int playbackState) |
void |
release() |
void |
removeCastStateListener(VeeplayCastManager.VeeplayCastManagerStateListener listener) |
boolean |
sessionAvailable() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonAvailableCommandsChanged, onEvents, onIsLoadingChanged, onIsPlayingChanged, onLoadingChanged, onMediaItemTransition, onMediaMetadataChanged, onPlaybackParametersChanged, onPlaybackStateChanged, onPlaybackSuppressionReasonChanged, onPlayerError, onPlayWhenReadyChanged, onPositionDiscontinuity, onPositionDiscontinuity, onRepeatModeChanged, onSeekProcessed, onShuffleModeEnabledChanged, onStaticMetadataChanged, onTimelineChanged, onTimelineChanged, onTracksChangedpublic static VeeplayCastManager getInstance()
public void init(Context ctx)
public com.google.android.gms.cast.framework.CastContext getCastContext()
public void onCastSessionAvailable()
onCastSessionAvailable in interface com.google.android.exoplayer2.ext.cast.SessionAvailabilityListenerpublic void onCastSessionUnavailable()
onCastSessionUnavailable in interface com.google.android.exoplayer2.ext.cast.SessionAvailabilityListenerpublic void onCastStateChanged(int state)
onCastStateChanged in interface com.google.android.gms.cast.framework.CastStateListenerpublic void release()
public boolean sessionAvailable()
public com.google.android.exoplayer2.ext.cast.CastPlayer getCastPlayer()
public void addCastStateListener(VeeplayCastManager.VeeplayCastManagerStateListener listener)
public void removeCastStateListener(VeeplayCastManager.VeeplayCastManagerStateListener listener)
public int getCastState()
public void onPlayerStateChanged(boolean playWhenReady,
int playbackState)
onPlayerStateChanged in interface com.google.android.exoplayer2.Player.EventListenerpublic int getPlaybackState()