Make it works on iOS
This commit is contained in:
parent
635a5686e3
commit
0f56c6e5ff
|
@ -33,10 +33,14 @@ function renderMedia (file, elem: HTMLVideoElement, opts: RenderMediaOptions, ca
|
||||||
let currentTime = 0
|
let currentTime = 0
|
||||||
let renderer
|
let renderer
|
||||||
|
|
||||||
if (VIDEOSTREAM_EXTS.indexOf(extension) >= 0) {
|
try {
|
||||||
renderer = useVideostream()
|
if (VIDEOSTREAM_EXTS.indexOf(extension) >= 0) {
|
||||||
} else {
|
renderer = useVideostream()
|
||||||
renderer = useMediaSource()
|
} else {
|
||||||
|
renderer = useMediaSource()
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
return callback(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
function useVideostream () {
|
function useVideostream () {
|
||||||
|
|
Loading…
Reference in New Issue