Commit 23afdd6f by tonihei Committed by Oliver Woodman

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
parent 841ce9df
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
package com.google.android.exoplayer2.analytics; package com.google.android.exoplayer2.analytics;
import android.net.NetworkInfo; import android.net.NetworkInfo;
import android.support.annotation.Nullable;
import android.view.Surface; import android.view.Surface;
import com.google.android.exoplayer2.ExoPlaybackException; import com.google.android.exoplayer2.ExoPlaybackException;
import com.google.android.exoplayer2.Format; import com.google.android.exoplayer2.Format;
...@@ -111,7 +112,7 @@ public abstract class DefaultAnalyticsListener implements AnalyticsListener { ...@@ -111,7 +112,7 @@ public abstract class DefaultAnalyticsListener implements AnalyticsListener {
public void onViewportSizeChange(EventTime eventTime, int width, int height) {} public void onViewportSizeChange(EventTime eventTime, int width, int height) {}
@Override @Override
public void onNetworkTypeChanged(EventTime eventTime, NetworkInfo networkInfo) {} public void onNetworkTypeChanged(EventTime eventTime, @Nullable NetworkInfo networkInfo) {}
@Override @Override
public void onMetadata(EventTime eventTime, Metadata metadata) {} public void onMetadata(EventTime eventTime, Metadata metadata) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment