app/src/main/java/com/vdocipher/sampleapp/tv/PlaybackOverlayFragment.java
// called when state change callback is received from VdoPlayer
called when state change callback is received from VdoPlayer
called when state change callback is received from VdoPlayer
public void playbackStateChanged(boolean playWhenReady, int state) {
        mVdoPlayerState = state;
        if (playWhenReady) {
            setFadingEnabled(true);
            mPlayPauseAction.setIndex(PlaybackControlsRow.PlayPauseAction.PAUSE);
            mPlayPauseAction.setIcon(mPlayPauseAction.getDrawable(PlaybackControlsRow.PlayPauseAction.PAUSE));
        } else {
            mPlayPauseAction.setIndex(PlaybackControlsRow.PlayPauseAction.PLAY);
            mPlayPauseAction.setIcon(mPlayPauseAction.getDrawable(PlaybackControlsRow.PlayPauseAction.PLAY));
        }
        notifyPlaybackRowChanged();
    }
public void playbackStateChanged ( boolean playWhenReady , int state ) { mVdoPlayerState = state ; if ( playWhenReady ) { setFadingEnabled ( true ) ; mPlayPauseAction . setIndex ( PlaybackControlsRow . PlayPauseAction . PAUSE ) ; mPlayPauseAction . setIcon ( mPlayPauseAction . getDrawable ( PlaybackControlsRow . PlayPauseAction . PAUSE ) ) ; } else { mPlayPauseAction . setIndex ( PlaybackControlsRow . PlayPauseAction . PLAY ) ; mPlayPauseAction . setIcon ( mPlayPauseAction . getDrawable ( PlaybackControlsRow . PlayPauseAction . PLAY ) ) ; } notifyPlaybackRowChanged ( ) ; }
called when state change callback is received from VdoPlayer
called when state change callback is received from VdoPlayer
//setFadingEnabled(false);