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:
parent
75e4fdeba3
commit
0043c2ebc1
|
@ -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
Loading…
Reference in New Issue
Block a user