Make it works on iOS

pull/333/head
Chocobozzz 2018-03-06 10:01:46 +01:00
parent 635a5686e3
commit 0f56c6e5ff
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 8 additions and 4 deletions

View File

@ -33,11 +33,15 @@ function renderMedia (file, elem: HTMLVideoElement, opts: RenderMediaOptions, ca
let currentTime = 0 let currentTime = 0
let renderer let renderer
try {
if (VIDEOSTREAM_EXTS.indexOf(extension) >= 0) { if (VIDEOSTREAM_EXTS.indexOf(extension) >= 0) {
renderer = useVideostream() renderer = useVideostream()
} else { } else {
renderer = useMediaSource() renderer = useMediaSource()
} }
} catch (err) {
return callback(err)
}
function useVideostream () { function useVideostream () {
prepareElem() prepareElem()