Example usage for android.media.session PlaybackState ACTION_PLAY_FROM_SEARCH

List of usage examples for android.media.session PlaybackState ACTION_PLAY_FROM_SEARCH

Introduction

In this page you can find the example usage for android.media.session PlaybackState ACTION_PLAY_FROM_SEARCH.

Prototype

long ACTION_PLAY_FROM_SEARCH

To view the source code for android.media.session PlaybackState ACTION_PLAY_FROM_SEARCH.

Click Source Link

Document

Indicates this session supports the play from search command.

Usage

From source file:hkapps.playmxtv.Activities.PlaybackOverlayActivity.java

private long getAvailableActions() {
    long actions = PlaybackState.ACTION_PLAY_PAUSE | PlaybackState.ACTION_PLAY_FROM_MEDIA_ID
            | PlaybackState.ACTION_PLAY_FROM_SEARCH;

    return actions;
}

From source file:de.kraenksoft.c3tv.ui.PlaybackOverlayFragment.java

private long getAvailableActions(int nextState) {
    long actions = PlaybackState.ACTION_PLAY | PlaybackState.ACTION_PLAY_FROM_MEDIA_ID
            | PlaybackState.ACTION_PLAY_FROM_SEARCH | PlaybackState.ACTION_SKIP_TO_NEXT
            | PlaybackState.ACTION_SKIP_TO_PREVIOUS | PlaybackState.ACTION_PAUSE;

    if (nextState == PlaybackState.STATE_PLAYING) {
        actions |= PlaybackState.ACTION_PAUSE;
    }//from   w  w w.j  av  a  2 s .  c  o  m

    return actions;
}

From source file:org.mythtv.android.presentation.view.fragment.TvPlaybackOverlayFragment.java

private long getAvailableActions(int nextState) {

    long actions = PlaybackState.ACTION_PLAY | PlaybackState.ACTION_PLAY_FROM_MEDIA_ID
            | PlaybackState.ACTION_PLAY_FROM_SEARCH | PlaybackState.ACTION_SKIP_TO_NEXT
            | PlaybackState.ACTION_SKIP_TO_PREVIOUS | PlaybackState.ACTION_PAUSE;

    if (nextState == PlaybackState.STATE_PLAYING) {

        actions |= PlaybackState.ACTION_PAUSE;

    }/*from   ww w .j a  v a  2  s.com*/

    return actions;
}

From source file:com.aengbee.android.leanback.ui.PlaybackOverlayCustomFragment.java

private long getAvailableActions(int nextState) {
    long actions = PlaybackState.ACTION_PLAY | PlaybackState.ACTION_PLAY_FROM_MEDIA_ID
            | PlaybackState.ACTION_PLAY_FROM_SEARCH | PlaybackState.ACTION_SKIP_TO_NEXT
            | PlaybackState.ACTION_SKIP_TO_PREVIOUS | PlaybackState.ACTION_FAST_FORWARD
            | PlaybackState.ACTION_REWIND | PlaybackState.ACTION_PAUSE;

    if (nextState == PlaybackState.STATE_PLAYING) {
        actions |= PlaybackState.ACTION_PAUSE;
    }/*from  w w w .ja va  2 s  .c  o m*/

    return actions;
}