Skip to content

Commit

Permalink
Merge pull request #504 from neilsb/set-mediasourceid-correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonylavado authored Dec 3, 2021
2 parents d5c3165 + 3812ff2 commit 0e2d621
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/VideoPlayer.brs
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,11 @@ 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.audioIndex = audio_stream_idx

if playbackInfo = invalid
Expand Down

0 comments on commit 0e2d621

Please sign in to comment.