From 797b2d9bcb92ec26762013eb0ad17418b4a6c4ca Mon Sep 17 00:00:00 2001 From: Neil Burrows Date: Sun, 21 Feb 2021 16:59:52 +0000 Subject: [PATCH] Tell Roku which Audio Track to play --- source/VideoPlayer.brs | 1 + 1 file changed, 1 insertion(+) diff --git a/source/VideoPlayer.brs b/source/VideoPlayer.brs index 4d43cedf..84d4315a 100644 --- a/source/VideoPlayer.brs +++ b/source/VideoPlayer.brs @@ -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