Skip to content

Commit

Permalink
Merge pull request #1025 from v-novaltd:dsparano-exo209
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 612485043
(cherry picked from commit bbdaf2b)
  • Loading branch information
Copybara-Service authored and SheenaChhabra committed Apr 2, 2024
1 parent cf9ff4d commit e28d772
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 "";
Expand All @@ -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(
Expand Down

0 comments on commit e28d772

Please sign in to comment.