Improve loudnessDb handling

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

View file

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