Commit f3e0bdee by ibaker Committed by Tianyi Feng

Include timing info in some SCTE-35 `toString` implementations

This was helpful in investigating Issue: androidx/media#471

PiperOrigin-RevId: 545393217
(cherry picked from commit b076a670b6a922d279e62fe7417eda1b660421a9)
parent 0af25ccd
......@@ -58,6 +58,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
......
......@@ -225,6 +225,15 @@ public final class SpliceInsertCommand extends SpliceCommand {
}
}
@Override
public String toString() {
return "SCTE-35 SpliceInsertCommand { programSplicePts="
+ programSplicePts
+ ", programSplicePlaybackPositionUs= "
+ programSplicePlaybackPositionUs
+ " }";
}
// Parcelable implementation.
@Override
......
......@@ -69,6 +69,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 }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment