mirror of https://github.com/Chocobozzz/PeerTube
Make it works on iOS
parent
635a5686e3
commit
0f56c6e5ff
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue