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