Skip to content

Commit bf3878f

Browse files
committed
Update code docs
1 parent 4d5587d commit bf3878f

7 files changed

Lines changed: 99 additions & 24 deletions

docs/components_ItemGrid_LoadVideoContentTask.bs.html

Lines changed: 14 additions & 18 deletions
Large diffs are not rendered by default.

docs/components_video_VideoPlayerView.bs.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,10 @@
520520
m.top.observeField("selectedSubtitle", "onSubtitleChange")
521521

522522
if isValid(m.top.audioIndex)
523-
m.top.audioTrack = (m.top.audioIndex + 1).toStr()
523+
' Convert Jellyfin audio stream index to Roku's 1-indexed audio track position
524+
m.top.audioTrack = getRokuAudioTrackPosition(m.top.audioIndex, m.top.fullAudioData)
524525
else
525-
m.top.audioTrack = "2"
526+
m.top.audioTrack = "1"
526527
end if
527528

528529
stopLoadingSpinner()

docs/data/search.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/module-LoadVideoContentTask.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/module-misc.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/source_api_Items.bs.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@
3131
end if
3232

3333
if audioTrackIndex > -1 and isValid(videoMetadata) and isValid(videoMetadata.MediaStreams)
34-
selectedAudioStream = videoMetadata.MediaStreams[audioTrackIndex]
34+
' Find the audio stream with the matching Jellyfin index
35+
selectedAudioStream = invalid
36+
for each stream in videoMetadata.MediaStreams
37+
if isValid(stream.index) and stream.index = audioTrackIndex
38+
selectedAudioStream = stream
39+
exit for
40+
end if
41+
end for
3542

3643
if isValid(selectedAudioStream)
3744
params.AudioStreamIndex = audioTrackIndex

docs/source_utils_misc.bs.html

Lines changed: 71 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)