Hi,
I am using a video Texture. Sometimes the video is not playing. And in the console, I am getting the following error.
babylon.js:16 Uncaught (in promise) DOMException: play() failed because the user didn’t interact with the document first. Autoplay policy in Chrome - Chrome Developers
Any Solutions?
You can not autoplay a video unless muted in the browsers.
Try to always start playing after a user click.
like button.onclick = () => { video.play(); }
2 Likes
Thanks for your reply @sebavan . But this is video texture, while the scene is loaded, the texture needs to be there.
I know but it is impossible to autoplay not muted in the browsers today or you would still have plenty of ads playing in all your web pages.
It is not a Babylon restriction but a browser one ![:frowning: :frowning:](https://emoji.discourse-cdn.com/win10/frowning.png?v=10)
1 Like