class AudioPlayerViewModel extends ViewModel implements MediaPlayer.OnCompletionListener {

    public void pause() {
        getMediaPlayer().pause();

        CurrentlyPlaying currentlyPlayingValue = currentlyPlaying.getValue();
        if (currentlyPlayingValue != null) {
            currentlyPlaying.setValue(currentlyPlayingValue.paused());
        }
    }

      AudioPlayerViewModel(MediaPlayerFactory mediaPlayerFactory, Scheduler scheduler);

}