open Uri
expect fun openUri(uri: String, initializeplayerState: InitialPlayerState = InitialPlayerState.PLAY)
Opens a media source from the given URI.
IMPORTANT: iOS AVPlayer has a tendency to auto-play when certain properties are set. To ensure proper behavior with InitialPlayerState.PAUSE, we need to:
Explicitly call pause() on the player
Set rate to 0
Not set rate during initialization
Update all relevant state variables
Parameters
uri
The URI of the media to open
initializeplayer State
Controls whether playback should start automatically after opening
Opens a media source from the given URI.
Parameters
uri
The URI of the media to open
initializeplayer State
Controls whether playback should start automatically after opening