Add container to Format.toLogString

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
(cherry picked from commit 6853ffccae53b0f01c8a818d64ed8dc18d1c60b0)
This commit is contained in:
ibaker 2023-12-19 04:31:15 -08:00 committed by microkatz
parent 5d7c9142ba
commit 1da24b2875

View File

@ -1228,6 +1228,9 @@ public final class Format implements Bundleable {
}
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);
}