Set MediaSourceId to the correct value, no videoId

This commit is contained in:
Neil Burrows 2021-12-03 07:15:08 +00:00
parent d5c316586b
commit f1b753911d

View File

@ -56,12 +56,12 @@ sub AddVideoContent(video, audio_stream_idx = 1, subtitle_idx = -1, playbackPosi
video.content.PlayStart = int(playbackPosition / 10000000)
' Call PlayInfo from server
mediaSourceId = video.id
mediaSourceId = video.mediaSourceId
if meta.live then mediaSourceId = "" ' Don't send mediaSourceId for Live media
playbackInfo = ItemPostPlaybackInfo(video.id, mediaSourceId, audio_stream_idx, subtitle_idx, playbackPosition)
video.videoId = video.id
video.mediaSourceId = video.id
video.mediaSourceId = video.mediaSourceId
video.audioIndex = audio_stream_idx
if playbackInfo = invalid