List of usage examples for android.media.session PlaybackState STATE_NONE
int STATE_NONE
To view the source code for android.media.session PlaybackState STATE_NONE.
Click Source Link
From source file:com.aengbee.android.leanback.ui.PlaybackOverlayCustomFragment.java
private void pause() { mPauseTransient = false;// ww w .j a va 2 s. c om if (mPlayer == null) { setPlaybackState(PlaybackState.STATE_NONE); return; } if (mGlue.isMediaPlaying()) { mPlayer.getPlayerControl().pause(); setPlaybackState(PlaybackState.STATE_PAUSED); } }
From source file:org.mythtv.android.presentation.view.fragment.TvPlaybackOverlayFragment.java
private int getPlaybackState() { Activity activity = getActivity();/*from w w w. ja va 2s . c om*/ if (activity != null) { PlaybackState state = activity.getMediaController().getPlaybackState(); if (state != null) { return state.getState(); } else { return PlaybackState.STATE_NONE; } } return PlaybackState.STATE_NONE; }
From source file:com.aengbee.android.leanback.ui.PlaybackOverlayCustomFragment.java
private int getPlaybackState() { Activity activity = getActivity();/*from ww w.j a va 2 s. c o m*/ if (activity != null) { PlaybackState state = activity.getMediaController().getPlaybackState(); if (state != null) { return state.getState(); } else { return PlaybackState.STATE_NONE; } } return PlaybackState.STATE_NONE; }