Skip to content

Commit

Permalink
Merge pull request #516 from neilsb/audio-track-selection
Browse files Browse the repository at this point in the history
Fix Audio Track Selection
  • Loading branch information
anthonylavado authored Jan 10, 2022
2 parents e3c1ac5 + 5b46785 commit 3d54283
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/VideoPlayer.brs
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ sub AddVideoContent(video, audio_stream_idx = 1, subtitle_idx = -1, playbackPosi
video.content.PlayStart = int(playbackPosition / 10000000)

' Call PlayInfo from server
mediaSourceId = video.mediaSourceId
mediaSourceId = video.id
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 3d54283

Please sign in to comment.