Merge pull request #352 from trekkie690/patch-1
Support mp4 container for direct stream
This commit is contained in:
commit
f7e3ee0fcf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user