mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 23:51:21 +02:00
Report live stream ID
This commit is contained in:
parent
59e2a5dc32
commit
2aed5e995d
2 changed files with 5 additions and 0 deletions
|
|
@ -460,6 +460,7 @@ class PlaybackViewModel
|
|||
listOf(),
|
||||
playMethod = transcodeType,
|
||||
playSessionId = response.playSessionId,
|
||||
liveStreamId = source.liveStreamId,
|
||||
)
|
||||
val itemPlayback =
|
||||
currentItemPlayback.copy(
|
||||
|
|
@ -746,6 +747,7 @@ data class CurrentPlayback(
|
|||
val tracks: List<TrackSupport>,
|
||||
val playMethod: PlayMethod,
|
||||
val playSessionId: String?,
|
||||
val liveStreamId: String?,
|
||||
)
|
||||
|
||||
val Format.idAsInt: Int?
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ class TrackActivityPlaybackListener(
|
|||
isMuted = false,
|
||||
audioStreamIndex = itemPlayback.audioIndex.takeIf { itemPlayback.audioIndexEnabled },
|
||||
subtitleStreamIndex = itemPlayback.subtitleIndex.takeIf { itemPlayback.subtitleIndexEnabled },
|
||||
liveStreamId = playback.liveStreamId,
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
@ -100,6 +101,7 @@ class TrackActivityPlaybackListener(
|
|||
positionTicks = position,
|
||||
failed = false,
|
||||
playSessionId = playback.playSessionId,
|
||||
liveStreamId = playback.liveStreamId,
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
@ -144,6 +146,7 @@ class TrackActivityPlaybackListener(
|
|||
playSessionId = playback.playSessionId,
|
||||
audioStreamIndex = itemPlayback.audioIndex.takeIf { itemPlayback.audioIndexEnabled },
|
||||
subtitleStreamIndex = itemPlayback.subtitleIndex.takeIf { itemPlayback.subtitleIndexEnabled },
|
||||
liveStreamId = playback.liveStreamId,
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue