Report live stream ID

This commit is contained in:
Damontecres 2025-10-21 22:55:16 -04:00
parent 59e2a5dc32
commit 2aed5e995d
No known key found for this signature in database
2 changed files with 5 additions and 0 deletions

View file

@ -460,6 +460,7 @@ class PlaybackViewModel
listOf(), listOf(),
playMethod = transcodeType, playMethod = transcodeType,
playSessionId = response.playSessionId, playSessionId = response.playSessionId,
liveStreamId = source.liveStreamId,
) )
val itemPlayback = val itemPlayback =
currentItemPlayback.copy( currentItemPlayback.copy(
@ -746,6 +747,7 @@ data class CurrentPlayback(
val tracks: List<TrackSupport>, val tracks: List<TrackSupport>,
val playMethod: PlayMethod, val playMethod: PlayMethod,
val playSessionId: String?, val playSessionId: String?,
val liveStreamId: String?,
) )
val Format.idAsInt: Int? val Format.idAsInt: Int?

View file

@ -56,6 +56,7 @@ class TrackActivityPlaybackListener(
isMuted = false, isMuted = false,
audioStreamIndex = itemPlayback.audioIndex.takeIf { itemPlayback.audioIndexEnabled }, audioStreamIndex = itemPlayback.audioIndex.takeIf { itemPlayback.audioIndexEnabled },
subtitleStreamIndex = itemPlayback.subtitleIndex.takeIf { itemPlayback.subtitleIndexEnabled }, subtitleStreamIndex = itemPlayback.subtitleIndex.takeIf { itemPlayback.subtitleIndexEnabled },
liveStreamId = playback.liveStreamId,
), ),
) )
} }
@ -100,6 +101,7 @@ class TrackActivityPlaybackListener(
positionTicks = position, positionTicks = position,
failed = false, failed = false,
playSessionId = playback.playSessionId, playSessionId = playback.playSessionId,
liveStreamId = playback.liveStreamId,
), ),
) )
} }
@ -144,6 +146,7 @@ class TrackActivityPlaybackListener(
playSessionId = playback.playSessionId, playSessionId = playback.playSessionId,
audioStreamIndex = itemPlayback.audioIndex.takeIf { itemPlayback.audioIndexEnabled }, audioStreamIndex = itemPlayback.audioIndex.takeIf { itemPlayback.audioIndexEnabled },
subtitleStreamIndex = itemPlayback.subtitleIndex.takeIf { itemPlayback.subtitleIndexEnabled }, subtitleStreamIndex = itemPlayback.subtitleIndex.takeIf { itemPlayback.subtitleIndexEnabled },
liveStreamId = playback.liveStreamId,
), ),
) )
} }