Search in sources :

Example 6 with MediaSessionStatus

use of android.support.v7.media.MediaSessionStatus in project AndroidChromium by JackyAndroid.

the class DefaultMediaRouteController method logMediaSessionStatus.

@RemovableInRelease
private void logMediaSessionStatus(Bundle data) {
    MediaSessionStatus status = MediaSessionStatus.fromBundle(data.getBundle(MediaControlIntent.EXTRA_SESSION_STATUS));
    int sessionState = status.getSessionState();
    Log.d(TAG, "Session state after ending session: %s", sessionState);
}
Also used : MediaSessionStatus(android.support.v7.media.MediaSessionStatus) RemovableInRelease(org.chromium.base.annotations.RemovableInRelease)

Aggregations

MediaSessionStatus (android.support.v7.media.MediaSessionStatus)6 Bundle (android.os.Bundle)4 MediaItemStatus (android.support.v7.media.MediaItemStatus)2 RemotePlaybackClient (android.support.v7.media.RemotePlaybackClient)2 ItemActionCallback (android.support.v7.media.RemotePlaybackClient.ItemActionCallback)2 SessionActionCallback (android.support.v7.media.RemotePlaybackClient.SessionActionCallback)2 RemovableInRelease (org.chromium.base.annotations.RemovableInRelease)1