Player UI

This commit is contained in:
2026-10-14 14:23:47 +03:00
parent 5ddc026102
commit 9eafdfd5c2
24 changed files with 2422 additions and 205 deletions

View File

@@ -134,7 +134,8 @@ internal fun BaseItemDto.toPerson() = Person(
image = imageTags?.get(ImageType.PRIMARY)?.let { image(id, ImageKind.Primary, it) },
)
private fun MediaSourceInfo.toMediaInfo(): MediaInfo {
/** The file as the app models it; the player also maps the source its session got from PlaybackInfo. */
fun MediaSourceInfo.toMediaInfo(): MediaInfo {
val streams = mediaStreams.orEmpty()
return MediaInfo(
sourceId = id.orEmpty(),