From b822fbdac87262965e811fbc91782e1507297802 Mon Sep 17 00:00:00 2001 From: mayeaux Date: Thu, 6 Jan 2022 22:20:42 +0100 Subject: [PATCH] fix ios can autoplay bug (#640) --- ui/component/viewers/videoViewer/internal/videojs.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/component/viewers/videoViewer/internal/videojs.jsx b/ui/component/viewers/videoViewer/internal/videojs.jsx index 2003cbc63..2f0074bf6 100644 --- a/ui/component/viewers/videoViewer/internal/videojs.jsx +++ b/ui/component/viewers/videoViewer/internal/videojs.jsx @@ -294,7 +294,7 @@ export default React.memo(function VideoJs(props: Props) { useEffect(() => { (async function() { // test if perms to play video are available - let canAutoplayVideo = await canAutoplay.video({ timeout: 2000 }); + let canAutoplayVideo = await canAutoplay.video({ timeout: 2000, inline: true }); canAutoplayVideo = canAutoplayVideo.result === true;