ofResourceUri
Plays the address a Compose Multiplatform resource has on Android (#457), the file:///android_asset/composeResources/... that Res.getUri returns there, from the app's assets through context. An asset stored uncompressed reads by position, as through ofAsset; one stored compressed reads as a stream that seeks by opening it again, which costs little for a clip an app bundles. Null for any other address, which then plays as it is.
The player does this by itself for an item with no reader of its own, so MediaItem(Res.getUri(...)) plays as it is. This door is for an app that configures a resolver of its own, which the player asks first and alone, or that removed the library's context provider from its manifest.
Plays the address a Compose Multiplatform resource has in a packaged desktop app (#457), the jar:file:...!/composeResources/... that Res.getUri returns there, by reading the entry out of the app's jar. The entry seeks, by opening it again when a seek goes back, because it is stored compressed. Null for any other address, which then plays as it is: a file: address through FFmpeg's own file reader, as when Res.getUri runs from the build directory.
The player does this by itself for an item with no reader of its own, so MediaItem(Res.getUri(...)) plays as it is. This door is for an app that configures a resolver of its own, which the player asks first and alone.