Commit 48193e29 by tonihei Committed by Oliver Woodman

Add QoE field reporter for formats.

This reports video and audio format selections.
See [] for spec details.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=199627176
parent bb684b52
...@@ -278,7 +278,7 @@ public final class MimeTypes { ...@@ -278,7 +278,7 @@ public final class MimeTypes {
* @param mimeType The MIME type. * @param mimeType The MIME type.
* @return The {@link C}{@code .TRACK_TYPE_*} constant that corresponds to a specified MIME type. * @return The {@link C}{@code .TRACK_TYPE_*} constant that corresponds to a specified MIME type.
*/ */
public static int getTrackType(String mimeType) { public static int getTrackType(@Nullable String mimeType) {
if (TextUtils.isEmpty(mimeType)) { if (TextUtils.isEmpty(mimeType)) {
return C.TRACK_TYPE_UNKNOWN; return C.TRACK_TYPE_UNKNOWN;
} else if (isAudio(mimeType)) { } else if (isAudio(mimeType)) {
......
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