Merge pull request #352 from trekkie690/patch-1

Support mp4 container for direct stream
This commit is contained in:
Neil Burrows 2021-02-05 07:46:40 +00:00 committed by GitHub
commit f7e3ee0fcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -253,7 +253,12 @@ function directPlaySupported(meta as object) as boolean
streamInfo.Profile = LCase(meta.json.MediaStreams[0].Profile)
end if
if meta.json.MediaSources[0].container <> invalid and meta.json.MediaSources[0].container.len() > 0 then
streamInfo.Container = meta.json.MediaSources[0].container
'CanDecodeVideo() requires the .container to be format: “mp4”, “hls”, “mkv”, “ism”, “dash”, “ts” if its to direct stream
if meta.json.MediaSources[0].container = "mov" then
streamInfo.Container = "mp4"
else
streamInfo.Container = meta.json.MediaSources[0].container
end if
end if
return devinfo.CanDecodeVideo(streamInfo).result
end function
@ -377,4 +382,4 @@ function autoPlayNextEpisode(videoID as string, showID as string)
else
RemoveCurrentGroup()
end if
end function
end function