[jquery] Chromeでauto playを許可する方法

ChromeでJqueryのauto playを行うと下記エラーが出る場合の対処方法

“Uncaught (in promise) DOMException: play() failed because the user didn’t interact with the document first.”

 

下記URLをChrome上で開く

chrome://flags/#autoplay-policy

”No user gesture is required”という設定にする

Chromeを再起動する

 

以上で、音声や動画をauto playすることができる

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です