fix ios can autoplay bug (#640)
This commit is contained in:
parent
a89cb17ce4
commit
b822fbdac8
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ export default React.memo<Props>(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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue