Execute callback on prepare
This commit is contained in:
parent
a096825f0c
commit
92400516e7
1 changed files with 1 additions and 0 deletions
|
@ -58,6 +58,7 @@ fun MediaController.maybePreparePlayer(context: Context, callback: (success: Boo
|
|||
context.audioHelper.getAllQueuedTracksLazily { tracks, startIndex, startPositionMs ->
|
||||
if (!prepared) {
|
||||
prepareUsingTracks(tracks = tracks, startIndex = startIndex, startPosition = startPositionMs) {
|
||||
callback(it)
|
||||
prepared = it
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue