Merge pull request #373 from neilsb/incorrect-audio-track-playing

Tell Roku which Audio Track to play
This commit is contained in:
Anthony Lavado 2021-03-02 16:38:43 -05:00 committed by GitHub
commit d3d8a1e60c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,6 +127,7 @@ function VideoContent(video, audio_stream_idx = 1) as object
video.content.streamformat = container
video.content.switchingStrategy = ""
video.isTranscode = False
video.audioTrack = audio_stream_idx + 1 ' Tell Roku what Audio Track to play (convert from 0 based index for roku)
else
video.content.url = buildURL(Substitute("Videos/{0}/master.m3u8", video.id), transcodeParams)
video.isTranscoded = true