Skip to content

Commit 1d976ad

Browse files
toniheicopybara-github
authored andcommitted
Clarify intended meaning of FORMAT_UNSUPPORTED_SUBTYPE
PiperOrigin-RevId: 775728985
1 parent 929faf1 commit 1d976ad

File tree

1 file changed

+13
-6
lines changed
  • libraries/common/src/main/java/androidx/media3/common

1 file changed

+13
-6
lines changed

libraries/common/src/main/java/androidx/media3/common/C.java

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,17 +1669,24 @@ private C() {}
16691669
@UnstableApi public static final int FORMAT_UNSUPPORTED_DRM = 0b010;
16701670

16711671
/**
1672-
* Formats with the same top-level type are generally supported, but not this format or any other
1673-
* format with the same MIME type because the sub-type is not supported.
1672+
* Formats with the same type of media (e.g. video, audio, image or text) are generally supported,
1673+
* but not this format.
16741674
*
1675-
* <p>Example: The player supports audio and the format's MIME type matches audio/[subtype], but
1676-
* there does not exist a suitable decoder for [subtype].
1675+
* <p>Example: The player supports audio and the format's {@linkplain MimeTypes#isAudio(String)
1676+
* MIME type is for audio}, but there does not exist a suitable decoder for this format's MIME
1677+
* type.
1678+
*
1679+
* @see MimeTypes#isAudio(String)
1680+
* @see MimeTypes#isVideo(String)
1681+
* @see MimeTypes#isImage(String)
1682+
* @see MimeTypes#isText(String)
16771683
*/
16781684
@UnstableApi public static final int FORMAT_UNSUPPORTED_SUBTYPE = 0b001;
16791685

16801686
/**
1681-
* The format is unsupported, because no formats with the same top-level type are supported or
1682-
* there is only specialized support for different MIME types of the same top-level type.
1687+
* The format is unsupported, because no formats with the same type of media (e.g. video, audio,
1688+
* image or text) are supported or there is only specialized support for different MIME types of
1689+
* the same type.
16831690
*
16841691
* <p>Example 1: The player is a general purpose audio player, but the format has a video MIME
16851692
* type.

0 commit comments

Comments
 (0)