You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
starts the player in function startPlayback, even if config.autoplay is set to false. The reason is, getEnv is run on init and starts the video player.
This leads to unexpected video playback and throws an error in Safari, where Safari blocks autoplay.
To Reproduce
Steps to reproduce the behavior:
Clone master branch
Set autoplay to false
Put console.logs in can-autoplay library
Expected behavior
Ultimately, .init should not playback video if autoplay is set to false.
In calculating getEnv object, can-autoplay should not playback the video.
Screenshots
Desktop (please complete the following information):
OS Windows 10
Browser Edge
Version 96.0.1054.43
The text was updated successfully, but these errors were encountered:
Describe the bug
When calculating the property
canAutoplay
ofenv
, thecan-autoplay
library fromindigo-player/src/utils/getEnv.ts
Line 4 in 7749c06
startPlayback
, even ifconfig.autoplay
is set to false. The reason is,getEnv
is run oninit
and starts the video player.This leads to unexpected video playback and throws an error in Safari, where Safari blocks autoplay.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Ultimately,
.init
should not playback video ifautoplay
is set to false.In calculating
getEnv
object, can-autoplay should not playback the video.Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: