Deprecate Util.getAudioContentTypeForStreamType

This method isn't used by the library (since <unknown commit>).

It doesn't really work well (e.g. arbitrarily defaults to `MUSIC` when
`UNKNOWN` would be a better default). There's no suggested replacement.

PiperOrigin-RevId: 566676744
This commit is contained in:
ibaker 2023-09-19 10:40:04 -07:00 committed by Copybara-Service
parent 694d040d7e
commit db7c33b01c

View File

@ -2317,8 +2317,12 @@ public final class Util {
}
}
/** Returns the {@link C.AudioContentType} corresponding to the specified {@link C.StreamType}. */
/**
* @deprecated This method is no longer used by the media3 library, it does not work well and
* should be avoided. There is no direct replacement.
*/
@UnstableApi
@Deprecated
public static @C.AudioContentType int getAudioContentTypeForStreamType(
@C.StreamType int streamType) {
switch (streamType) {