MediaSupport

Queries preflight media support for the current platform backend.

Query methods are suspend functions because codec support may inspect system decoders or browser media capabilities. Platform implementations cache runtime-heavy results where needed.

Functions

Link copied to clipboard

Queries player capabilities and codec support in one snapshot.

Link copied to clipboard

Queries audio codecs reported as supported.

Link copied to clipboard
suspend fun queryCanPlaySource(source: MediaSourceSpec): Boolean

Queries whether the current platform can play a source.

suspend fun queryCanPlaySource(uri: String, mimeType: String? = null): Boolean

Queries whether the current platform can play a source by URI and optional MIME type.

Link copied to clipboard
suspend fun queryCapabilities(): PlayerCapabilities

Queries player/source capabilities without creating a VideoPlayerState.

Link copied to clipboard

Queries a snapshot of all audio and video codecs reported as supported.

Link copied to clipboard
suspend fun queryDisplayColorCapabilities(): DisplayColorCapabilities

Queries capabilities of the display that would currently present video.

Link copied to clipboard
suspend fun queryDynamicRangeSupport(dynamicRange: VideoDynamicRange): VideoDynamicRangeSupport

Queries tri-state support for one display dynamic range.

Link copied to clipboard

Queries whether codec is reported as supported.

Link copied to clipboard
suspend fun queryIsDynamicRangeSupported(dynamicRange: VideoDynamicRange): Boolean
Link copied to clipboard
suspend fun querySupportedDynamicRanges(): Set<VideoDynamicRange>

Queries dynamic ranges reported or independently verified for the active display.

Link copied to clipboard
suspend fun querySupportedHdrDynamicRanges(): Set<VideoDynamicRange>

Queries only HDR dynamic ranges supported by the active display.

Link copied to clipboard

Queries video codecs reported as supported.