diff --git a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/util/DebugTextViewHelper.java b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/util/DebugTextViewHelper.java index 08a42bfc5c8..2e92539fb63 100644 --- a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/util/DebugTextViewHelper.java +++ b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/util/DebugTextViewHelper.java @@ -22,6 +22,7 @@ import androidx.media3.common.ColorInfo; import androidx.media3.common.Format; import androidx.media3.common.Player; +import androidx.media3.common.VideoSize; import androidx.media3.common.util.Assertions; import androidx.media3.common.util.UnstableApi; import androidx.media3.exoplayer.DecoderCounters; @@ -127,6 +128,7 @@ protected String getPlayerStateString() { @UnstableApi protected String getVideoString() { Format format = player.getVideoFormat(); + VideoSize videoSize = player.getVideoSize(); DecoderCounters decoderCounters = player.getVideoDecoderCounters(); if (format == null || decoderCounters == null) { return ""; @@ -136,11 +138,11 @@ protected String getVideoString() { + "(id:" + format.id + " r:" - + format.width + + videoSize.width + "x" - + format.height + + videoSize.height + getColorInfoString(format.colorInfo) - + getPixelAspectRatioString(format.pixelWidthHeightRatio) + + getPixelAspectRatioString(videoSize.pixelWidthHeightRatio) + getDecoderCountersBufferCountString(decoderCounters) + " vfpo: " + getVideoFrameProcessingOffsetAverageString(