Skip to content

Commit

Permalink
Add container to Format.toLogString
Browse files Browse the repository at this point in the history
While investigating Issue: androidx/media#887 I naively assumed the CEA-608
captions were in a TS file, but they're actually in an MP4 (which is
possibly obvious given DASH only supports MP4). This change includes
container info in the `EventLogger` `tracks` output.

PiperOrigin-RevId: 592192752
  • Loading branch information
icbaker authored and copybara-github committed Dec 19, 2023
1 parent 0b8a9a2 commit 6853ffc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,9 @@ public static String toLogString(@Nullable Format format) {
}
StringBuilder builder = new StringBuilder();
builder.append("id=").append(format.id).append(", mimeType=").append(format.sampleMimeType);
if (format.containerMimeType != null) {
builder.append(", container=").append(format.containerMimeType);
}
if (format.bitrate != NO_VALUE) {
builder.append(", bitrate=").append(format.bitrate);
}
Expand Down

0 comments on commit 6853ffc

Please sign in to comment.