Add QoEAnalyticsListener implementation and test.

The implementation keeps track of QoE sessions and forwards events to the
field reporters of the relevant sessions.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=199269574
This commit is contained in:
tonihei 2018-06-05 02:58:21 -07:00 committed by Oliver Woodman
parent 841ce9df71
commit 23afdd6f66

View file

@ -16,6 +16,7 @@
package com.google.android.exoplayer2.analytics;
import android.net.NetworkInfo;
import android.support.annotation.Nullable;
import android.view.Surface;
import com.google.android.exoplayer2.ExoPlaybackException;
import com.google.android.exoplayer2.Format;
@ -111,7 +112,7 @@ public abstract class DefaultAnalyticsListener implements AnalyticsListener {
public void onViewportSizeChange(EventTime eventTime, int width, int height) {}
@Override
public void onNetworkTypeChanged(EventTime eventTime, NetworkInfo networkInfo) {}
public void onNetworkTypeChanged(EventTime eventTime, @Nullable NetworkInfo networkInfo) {}
@Override
public void onMetadata(EventTime eventTime, Metadata metadata) {}