I am using Exoplayer2 and i have no callback when i override the onBandwidthSample
method. What am i doing bad? This is my code:
new DefaultBandwidthMeter(new Handler(), new BandwidthMeter.EventListener() {
@Override
public void onBandwidthSample(int elapsedMs, long bytes, long bitrate) {
Log.i(TAG, "onBandwidthSample bitrateEstimate = " + bitrate);
Log.i(TAG, "onBandwidthSample bytesDownloaded = " + bytes);
}
});