code: private void setMediaSessionCompatPlaybackState(int state) {
          mStateBuilder.setState(state, PlaybackStateCompat.PLAYBACK_POSITION_UNKNOWN, 1.0f);
          mMediaSession.setPlaybackState(mStateBuilder.build());
      }
docs: Propagate playback state to the media session compat.
  
  @param state playback state.