Improve loudnessDb handling

This commit is contained in:
vfsfitvnm 2022-06-26 17:03:37 +02:00
parent b579b23acb
commit 308808a363

View file

@ -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
}