Skip to content

Commit

Permalink
Refactor deviceCapabilities, fix vp9, and make 6 channel videos downm…
Browse files Browse the repository at this point in the history
…ix if possible (jellyfin#1366)

Co-authored-by: Charles Ewert <[email protected]>
  • Loading branch information
sevenrats and cewert authored Nov 4, 2023
1 parent 75e4fde commit 0043c2e
Show file tree
Hide file tree
Showing 2 changed files with 614 additions and 542 deletions.
11 changes: 4 additions & 7 deletions components/ItemGrid/LoadVideoContentTask.brs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ sub LoadItems_AddVideoContent(video as object, mediaSourceId as dynamic, audio_s


' 'TODO: allow user selection of subtitle track before playback initiated, for now set to no subtitles

video.directPlaySupported = m.playbackInfo.MediaSources[0].SupportsDirectPlay
fully_external = false

Expand All @@ -164,8 +163,8 @@ sub LoadItems_AddVideoContent(video as object, mediaSourceId as dynamic, audio_s
end if

if video.directPlaySupported
addVideoContentURL(video, mediaSourceId, audio_stream_idx, fully_external)
video.isTranscoded = false
addVideoContentURL(video, mediaSourceId, audio_stream_idx, fully_external)
else
if m.playbackInfo.MediaSources[0].TranscodingUrl = invalid
' If server does not provide a transcode URL, display a message to the user
Expand Down Expand Up @@ -203,15 +202,13 @@ sub addVideoContentURL(video, mediaSourceId, audio_stream_idx, fully_external)
fully_external = true
video.content.url = m.playbackInfo.MediaSources[0].Path
end if
else:
params = {}

params.append({
else
params = {
"Static": "true",
"Container": video.container,
"PlaySessionId": video.PlaySessionId,
"AudioStreamIndex": audio_stream_idx
})
}

if mediaSourceId <> ""
params.MediaSourceId = mediaSourceId
Expand Down
Loading

0 comments on commit 0043c2e

Please sign in to comment.