File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
libraries/exoplayer/src/main/java/androidx/media3/exoplayer/util Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2222import androidx .media3 .common .ColorInfo ;
2323import androidx .media3 .common .Format ;
2424import androidx .media3 .common .Player ;
25+ import androidx .media3 .common .VideoSize ;
2526import androidx .media3 .common .util .Assertions ;
2627import androidx .media3 .common .util .UnstableApi ;
2728import androidx .media3 .exoplayer .DecoderCounters ;
@@ -127,6 +128,7 @@ protected String getPlayerStateString() {
127128 @ UnstableApi
128129 protected String getVideoString () {
129130 Format format = player .getVideoFormat ();
131+ VideoSize videoSize = player .getVideoSize ();
130132 DecoderCounters decoderCounters = player .getVideoDecoderCounters ();
131133 if (format == null || decoderCounters == null ) {
132134 return "" ;
@@ -136,11 +138,11 @@ protected String getVideoString() {
136138 + "(id:"
137139 + format .id
138140 + " r:"
139- + format .width
141+ + videoSize .width
140142 + "x"
141- + format .height
143+ + videoSize .height
142144 + getColorInfoString (format .colorInfo )
143- + getPixelAspectRatioString (format .pixelWidthHeightRatio )
145+ + getPixelAspectRatioString (videoSize .pixelWidthHeightRatio )
144146 + getDecoderCountersBufferCountString (decoderCounters )
145147 + " vfpo: "
146148 + getVideoFrameProcessingOffsetAverageString (
You can’t perform that action at this time.
0 commit comments