Sort the lines in the right order to create a MediaPlayer with the provided URI.
Playing audio with MediaPlayer
Create with URI
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
val mediaPlayer = MediaPlayer().apply {
setDataSource(applicationContext, myUri)
}
start()
prepare()
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.