Skip to content

Commit

Permalink
Add missing calls to AnalyticsCollector
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 427133919
  • Loading branch information
tonihei authored and icbaker committed Feb 8, 2022
1 parent d04ecb3 commit 2e34f9d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2776,6 +2776,7 @@ public void onAudioCodecError(Exception audioCodecError) {
@Override
public void onCues(List<Cue> cues) {
currentCues = cues;
analyticsCollector.onCues(cues);
// TODO(internal b/187152483): Events should be dispatched via ListenerSet
for (Listener listeners : listenerArraySet) {
listeners.onCues(cues);
Expand Down Expand Up @@ -2884,6 +2885,7 @@ public void onStreamTypeChanged(@C.StreamType int streamType) {
DeviceInfo deviceInfo = createDeviceInfo(streamVolumeManager);
if (!deviceInfo.equals(ExoPlayerImpl.this.deviceInfo)) {
ExoPlayerImpl.this.deviceInfo = deviceInfo;
analyticsCollector.onDeviceInfoChanged(deviceInfo);
// TODO(internal b/187152483): Events should be dispatched via ListenerSet
for (Listener listener : listenerArraySet) {
listener.onDeviceInfoChanged(deviceInfo);
Expand All @@ -2893,6 +2895,7 @@ public void onStreamTypeChanged(@C.StreamType int streamType) {

@Override
public void onStreamVolumeChanged(int streamVolume, boolean streamMuted) {
analyticsCollector.onDeviceVolumeChanged(streamVolume, streamMuted);
// TODO(internal b/187152483): Events should be dispatched via ListenerSet
for (Listener listener : listenerArraySet) {
listener.onDeviceVolumeChanged(streamVolume, streamMuted);
Expand Down

0 comments on commit 2e34f9d

Please sign in to comment.