Skip to content

Commit

Permalink
Merge branch 'nam/hotfix/fix-youtube' into release/v3.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
eneim committed Apr 11, 2018
2 parents 1252f70 + 7da9e5d commit 57b169c
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 57b169c

Please sign in to comment.