Search in sources :

Example 11 with DecoderCounters

use of com.google.android.exoplayer2.decoder.DecoderCounters in project ExoPlayer by google.

the class DebugTextViewHelper method getAudioString.

/**
 * Returns a string containing audio debugging information.
 */
protected String getAudioString() {
    Format format = player.getAudioFormat();
    DecoderCounters decoderCounters = player.getAudioDecoderCounters();
    if (format == null || decoderCounters == null) {
        return "";
    }
    return "\n" + format.sampleMimeType + "(id:" + format.id + " hz:" + format.sampleRate + " ch:" + format.channelCount + getDecoderCountersBufferCountString(decoderCounters) + ")";
}
Also used : Format(com.google.android.exoplayer2.Format) DecoderCounters(com.google.android.exoplayer2.decoder.DecoderCounters)

Aggregations

DecoderCounters (com.google.android.exoplayer2.decoder.DecoderCounters)7 EventTime (com.google.android.exoplayer2.analytics.AnalyticsListener.EventTime)4 Format (com.google.android.exoplayer2.Format)3 SurfaceTexture (android.graphics.SurfaceTexture)1 Looper (android.os.Looper)1 SparseArray (android.util.SparseArray)1 Surface (android.view.Surface)1 Nullable (androidx.annotation.Nullable)1 ApplicationProvider (androidx.test.core.app.ApplicationProvider)1 AndroidJUnit4 (androidx.test.ext.junit.runners.AndroidJUnit4)1 C (com.google.android.exoplayer2.C)1 ExoPlaybackException (com.google.android.exoplayer2.ExoPlaybackException)1 ExoPlayer (com.google.android.exoplayer2.ExoPlayer)1 MediaItem (com.google.android.exoplayer2.MediaItem)1 PlaybackException (com.google.android.exoplayer2.PlaybackException)1 PlaybackParameters (com.google.android.exoplayer2.PlaybackParameters)1 Player (com.google.android.exoplayer2.Player)1 Renderer (com.google.android.exoplayer2.Renderer)1 RenderersFactory (com.google.android.exoplayer2.RenderersFactory)1 Timeline (com.google.android.exoplayer2.Timeline)1