Add the listener type to MediaSourceEventDispatcher.add/removeListener
Without this change there's confusing behaviour if you pass e.g. AnalyticsCollector (which implements both DrmSessionEventListener and MediaSourceEventListener) to MediaSource.addEventListener: It will receive DRM events too, even though you never passed it to MediaSource.addDrmEventListener. Also add some tests for MediaSourceEventDispatcher. PiperOrigin-RevId: 301169915
Showing
with
242 additions
and
29 deletions
Please
register
or
sign in
to comment