MediaIoResolverProvider

An optional transport module's lightweight discovery entry. Construction must not perform I/O. A provider creates one process-lived resolver on first automatic resolution. That resolver must support concurrent opens, keep player state out of the registry, and give each returned reader ownership of its resources. An unsupported URI returns null so the next provider may handle it.

Properties

Link copied to clipboard
abstract val id: String

Stable unique identifier. Providers are tried in ascending identifier order.

Link copied to clipboard

True for a provider whose resolver opens local paths, a bare path or a file: address (#430). Automatic resolution never asks such a provider, so a local file stays on the backend's own reader. The engine asks it only for an item that needs a Kotlin reader of a local file, which is one still being written (io.github.yuroyami.kiteplayer.MediaItem.growth). False by default.

Functions

Link copied to clipboard
abstract fun create(): MediaIoResolver

Creates the resolver lazily. Do not open clients or other closeable resources here.