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
This commit is contained in:
tonihei 2018-06-07 06:45:03 -07:00 committed by Oliver Woodman
parent bb684b528e
commit 48193e2901

View file

@ -278,7 +278,7 @@ public final class MimeTypes {
* @param mimeType The 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)) {
return C.TRACK_TYPE_UNKNOWN;
} else if (isAudio(mimeType)) {