Skip to content

Commit

Permalink
fix unimplemented method
Browse files Browse the repository at this point in the history
  • Loading branch information
eneim committed Apr 11, 2018
1 parent 1252f70 commit 7da9e5d
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@ final class YouTubePlayerHelper extends ToroPlayerHelper implements Handler.Call
return volumeInfo;
}

@Override
public void addOnVolumeChangeListener(@NonNull ToroPlayer.OnVolumeChangeListener listener) {
throw new UnsupportedOperationException("YouTube helper doesn't allow to do this.");
}

@Override public void removeOnVolumeChangeListener(ToroPlayer.OnVolumeChangeListener listener) {
throw new UnsupportedOperationException("YouTube helper doesn't allow to do this.");
}

@Override public boolean isPlaying() {
return youTubePlayer != null;
}
Expand Down

0 comments on commit 7da9e5d

Please sign in to comment.