Skip to content

Commit 3c3da15

Browse files
committed
Update code docs
1 parent 9b2f258 commit 3c3da15

9 files changed

Lines changed: 53 additions & 33 deletions

docs/components_GetPlaybackInfoTask.bs.html

Lines changed: 21 additions & 29 deletions
Large diffs are not rendered by default.

docs/components_ItemGrid_LoadVideoContentTask.bs.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@
206206
video.videoId = video.id
207207
video.mediaSourceId = mediaSourceId
208208
video.audioIndex = audio_stream_idx
209+
video.playbackInfo = m.playbackInfo
209210

210211
video.PlaySessionId = m.playbackInfo.PlaySessionId
211212

docs/components_manager_ViewCreator.bs.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@
207207
return
208208
end if
209209

210+
' Set cached playback info right before running (when it's actually available)
211+
m.getPlaybackInfoTask.cachedPlaybackInfo = m.view.cachedPlaybackInfo
210212
m.getPlaybackInfoTask.control = "RUN"
211213
end sub
212214

docs/components_video_VideoPlayerView.bs.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@
462462
m.top.transcodeParams = videoContent[0].transcodeparams
463463
m.chapters = videoContent[0].chapters
464464
m.top.showID = videoContent[0].showID
465+
m.top.cachedPlaybackInfo = videoContent[0].playbackInfo
465466

466467
if isValidAndNotEmpty(videoContent[0].json)
467468
m.osd.json = formatJson(videoContent[0].json)

docs/data/search.json

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

docs/module-GetPlaybackInfoTask.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_VideoPlayer.bs.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,14 @@
526526
end if
527527

528528
if havePlaybackInfo()
529-
stream = m.playbackInfo.mediaSources[0].MediaStreams[0]
529+
' Find the first video stream (MediaStreams[0] might be subtitle/audio)
530+
videoStream = getFirstVideoStream(m.playbackInfo.mediaSources[0].MediaStreams)
531+
if not isValid(videoStream)
532+
' No video stream found - skip Stream Information section
533+
return sessionStats
534+
end if
535+
536+
stream = videoStream
530537
sessionStats.push("** " + tr("Stream Information") + " **")
531538
if isValid(stream.Container)
532539
data = tr("Container") + ": " + stream.Container

docs/source_utils_misc.bs.html

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

0 commit comments

Comments
 (0)