Improve loudnessDb handling
This commit is contained in:
parent
b579b23acb
commit
308808a363
1 changed files with 10 additions and 1 deletions
|
@ -51,4 +51,13 @@ fun Player.enqueue(mediaItems: List<MediaItem>) {
|
|||
} else {
|
||||
addMediaItems(mediaItemCount, mediaItems)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun Player.findNextMediaItemById(mediaId: String): MediaItem? {
|
||||
for (i in currentMediaItemIndex until mediaItemCount) {
|
||||
if (getMediaItemAt(i).mediaId == mediaId) {
|
||||
return getMediaItemAt(i)
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue