Refactor deviceCapabilities, fix vp9, and make 6 channel videos downmix if possible (#1366)

Co-authored-by: Charles Ewert <cewert@gmail.com>
This commit is contained in:
Seven Rats 2023-11-04 15:10:47 -04:00 committed by GitHub
parent 75e4fdeba3
commit 0043c2ebc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 811 additions and 739 deletions

View File

@ -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
@ -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
@ -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

File diff suppressed because it is too large Load Diff