code: @SuppressWarnings("deprecation")
      public void setPlaybackState(int state) {
          switch (state) {
              case PLAYBACK_STATE_STOPPED:
                  setRemoteControlClientPlaybackState(RemoteControlClient.PLAYSTATE_STOPPED);
                  setMediaSessionCompatPlaybackState(PlaybackStateCompat.STATE_STOPPED);
                  mMediaSession.setActive(false);
                  break;
              case PLAYBACK_STATE_PLAYING:
                  setRemoteControlClientPlaybackState(RemoteControlClient.PLAYSTATE_PLAYING);
                  setMediaSessionCompatPlaybackState(PlaybackStateCompat.STATE_PLAYING);
                  mMediaSession.setActive(true);
                  break;
              case PLAYBACK_STATE_PAUSED:
                  setRemoteControlClientPlaybackState(RemoteControlClient.PLAYSTATE_PAUSED);
                  setMediaSessionCompatPlaybackState(PlaybackStateCompat.STATE_PAUSED);
                  break;
              default:
                  Log.e(TAG, "Unknown playback state.");
                  break;
          }
      }
docs: Propagate the playback state to the media session and the lock screen remote control.
  <p/>
  See also :
  {@link fr.tvbarthel.cheerleader.library.media.MediaSessionWrapper#PLAYBACK_STATE_STOPPED}
  {@link fr.tvbarthel.cheerleader.library.media.MediaSessionWrapper#PLAYBACK_STATE_PLAYING}
  {@link fr.tvbarthel.cheerleader.library.media.MediaSessionWrapper#PLAYBACK_STATE_PAUSED}
  
  @param state playback state.