open

suspend fun open(media: MediaItem)

Opens media and returns once the first frame is ready and the player is paused on it.

Throws

with PlaybackError.ConfigurationInvalid for an item with a reader of its own, which cannot cross to the worker, or with the error the open failed with.