mirror of
https://github.com/androidx/media.git
synced 2025-05-16 20:19:57 +08:00
Include timing info in some SCTE-35 toString
implementations
This was helpful in investigating Issue: androidx/media#471 PiperOrigin-RevId: 545393217
This commit is contained in:
parent
81c83e4213
commit
3456382ae7
@ -54,6 +54,15 @@ public final class PrivateCommand extends SpliceCommand {
|
||||
return new PrivateCommand(identifier, privateBytes, ptsAdjustment);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SCTE-35 PrivateCommand { ptsAdjustment="
|
||||
+ ptsAdjustment
|
||||
+ ", identifier= "
|
||||
+ identifier
|
||||
+ " }";
|
||||
}
|
||||
|
||||
// Parcelable implementation.
|
||||
|
||||
@Override
|
||||
|
@ -231,6 +231,15 @@ public final class SpliceInsertCommand extends SpliceCommand {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SCTE-35 SpliceInsertCommand { programSplicePts="
|
||||
+ programSplicePts
|
||||
+ ", programSplicePlaybackPositionUs= "
|
||||
+ programSplicePlaybackPositionUs
|
||||
+ " }";
|
||||
}
|
||||
|
||||
// Parcelable implementation.
|
||||
|
||||
@Override
|
||||
|
@ -64,6 +64,15 @@ public final class TimeSignalCommand extends SpliceCommand {
|
||||
return ptsTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SCTE-35 TimeSignalCommand { ptsTime="
|
||||
+ ptsTime
|
||||
+ ", playbackPositionUs= "
|
||||
+ playbackPositionUs
|
||||
+ " }";
|
||||
}
|
||||
|
||||
// Parcelable implementation.
|
||||
|
||||
@Override
|
||||
|
@ -13,10 +13,10 @@ MediaCodecAdapter (exotest.video.mpeg2):
|
||||
MetadataOutput:
|
||||
Metadata[0]:
|
||||
presentationTimeUs = 33366
|
||||
entry[0] = SCTE-35 splice command: type=SpliceInsertCommand
|
||||
entry[0] = SCTE-35 SpliceInsertCommand { programSplicePts=200000, programSplicePlaybackPositionUs= 1000000822222 }
|
||||
Metadata[1]:
|
||||
presentationTimeUs = 33366
|
||||
entry[0] = SCTE-35 splice command: type=SpliceInsertCommand
|
||||
entry[0] = SCTE-35 SpliceInsertCommand { programSplicePts=200000, programSplicePlaybackPositionUs= 1000000822222 }
|
||||
Metadata[2]:
|
||||
presentationTimeUs = 33366
|
||||
entry[0] = SCTE-35 splice command: type=SpliceInsertCommand
|
||||
entry[0] = SCTE-35 SpliceInsertCommand { programSplicePts=300000, programSplicePlaybackPositionUs= 1000001933333 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user