mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Merge pull request #1025 from v-novaltd:dsparano-exo209
PiperOrigin-RevId: 612485043
This commit is contained in:
commit
bbdaf2b092
1 changed files with 5 additions and 3 deletions
|
|
@ -22,6 +22,7 @@ import androidx.annotation.Nullable;
|
|||
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 @@ public class DebugTextViewHelper {
|
|||
@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 @@ public class DebugTextViewHelper {
|
|||
+ "(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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue