mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-12-02 05:19:17 -06:00
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 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
Block a user