Skip to content

Commit 57b169c

Browse files
committed
Merge branch 'nam/hotfix/fix-youtube' into release/v3.4.2
2 parents 1252f70 + 7da9e5d commit 57b169c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app-youtube/src/main/java/im/ene/toro/youtube/YouTubePlayerHelper.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,15 @@ final class YouTubePlayerHelper extends ToroPlayerHelper implements Handler.Call
109109
return volumeInfo;
110110
}
111111

112+
@Override
113+
public void addOnVolumeChangeListener(@NonNull ToroPlayer.OnVolumeChangeListener listener) {
114+
throw new UnsupportedOperationException("YouTube helper doesn't allow to do this.");
115+
}
116+
117+
@Override public void removeOnVolumeChangeListener(ToroPlayer.OnVolumeChangeListener listener) {
118+
throw new UnsupportedOperationException("YouTube helper doesn't allow to do this.");
119+
}
120+
112121
@Override public boolean isPlaying() {
113122
return youTubePlayer != null;
114123
}

0 commit comments

Comments
 (0)