class AudioPlayerViewModel extends ViewModel implements MediaPlayer.OnCompletionListener {

    public LiveData<Boolean> isPlaying(@NonNull String clipID) {
        return Transformations.map(currentlyPlaying, value -> {
            if (isCurrentPlayingClip(clipID, value)) {
                return !value.isPaused();
            } else {
                return false;
            }
        });
    }

      AudioPlayerViewModel(MediaPlayerFactory mediaPlayerFactory, Scheduler scheduler);

}