2

I can show only play / pause button in phone device

mRemoteControlClientCompat.setTransportControlFlags(
            RemoteControlClient.FLAG_KEY_MEDIA_PLAY_PAUSE);
    if (info == null) {
        mRemoteControlClientCompat.setPlaybackState(RemoteControlClient.PLAYSTATE_PAUSED);
        return;
    } else {
        mRemoteControlClientCompat.setPlaybackState(RemoteControlClient.PLAYSTATE_PLAYING);
    }

This code from cast library : https://github.com/googlecast/CastCompanionLibrary-android

but in some devices, such as tablet : Xperia™ Z2 Tablet SOT21

it will show previous / next button, Do you know how to hide them ?

Thank you.

enter image description here

Hsiao-Ting
  • 3,456
  • 2
  • 15
  • 20
  • oops, I created the duplicated issue.... http://stackoverflow.com/questions/9721695/android-4-x-remotecontrolclient-settransportcontrolflags-not-working – Hsiao-Ting Sep 08 '15 at 08:10

0 Answers0