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:
parent
694d040d7e
commit
db7c33b01c
@ -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
|
@UnstableApi
|
||||||
|
@Deprecated
|
||||||
public static @C.AudioContentType int getAudioContentTypeForStreamType(
|
public static @C.AudioContentType int getAudioContentTypeForStreamType(
|
||||||
@C.StreamType int streamType) {
|
@C.StreamType int streamType) {
|
||||||
switch (streamType) {
|
switch (streamType) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user