Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set MediaSourceId to the correct value, not the videoId #504

Merged
merged 2 commits into from
Dec 3, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/VideoPlayer.brs
Original file line number Diff line number Diff line change
Expand Up @@ -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
neilsb marked this conversation as resolved.
Show resolved Hide resolved
video.audioIndex = audio_stream_idx

if playbackInfo = invalid
Expand Down