Merge pull request #1705 from tomaThomas/fix-could-not-play-song

Do not use prepareAsync when player may be used in callback
This commit is contained in:
Daksh P. Jain 2025-01-06 16:28:36 +05:30 committed by GitHub
commit 394856e516
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -140,7 +140,7 @@ abstract class LocalPlayback(val context: Context) : Playback, MediaPlayer.OnErr
player.setOnPreparedListener(null)
completion(true)
}
player.prepareAsync()
player.prepare()
} catch (e: Exception) {
completion(false)
e.printStackTrace()