Improve loudnessDb handling
This commit is contained in:
parent
b579b23acb
commit
308808a363
1 changed files with 10 additions and 1 deletions
|
@ -52,3 +52,12 @@ fun Player.enqueue(mediaItems: List<MediaItem>) {
|
|||
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