com.google.android.exoplayer.upstream.BandwidthMeter

Here are the examples of the java api class com.google.android.exoplayer.upstream.BandwidthMeter taken from open source projects.

1. DebugTextViewHelper#getBandwidthString()

Project: ExoPlayer
Source File: DebugTextViewHelper.java
View license
private String getBandwidthString() {
    BandwidthMeter bandwidthMeter = debuggable.getBandwidthMeter();
    if (bandwidthMeter == null || bandwidthMeter.getBitrateEstimate() == BandwidthMeter.NO_ESTIMATE) {
        return "bw:?";
    } else {
        return "bw:" + (bandwidthMeter.getBitrateEstimate() / 1000);
    }
}