mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
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
1 changed files with 5 additions and 1 deletions
|
|
@ -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…
Reference in a new issue