diff --git a/app-youtube/src/main/java/im/ene/toro/youtube/YouTubePlayerHelper.java b/app-youtube/src/main/java/im/ene/toro/youtube/YouTubePlayerHelper.java index 7b95a55d..3185b244 100644 --- a/app-youtube/src/main/java/im/ene/toro/youtube/YouTubePlayerHelper.java +++ b/app-youtube/src/main/java/im/ene/toro/youtube/YouTubePlayerHelper.java @@ -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; }