Youtube iframe src autoplay not working in chrome browser

后端 未结 2 1049
耶瑟儿~
耶瑟儿~ 2020-12-10 20:03

I have attached this iframe code to my plain html page. here i want to make an auto play when the page is loaded. i tried in firefox its working fine for me . when i load in

2条回答
  •  长情又很酷
    2020-12-10 20:16

    The chrome developer team disabled the autoplay feature to avoid irritation among users because of the automatic video play. You can enable it by the following steps:

    1. Opening a Chrome browser and typing: chrome://flags/#autoplay-policy
    2. Changing the "Autoplay policy" from "Default" to "No user gesture is required"
    3. Pressing "relaunch"
    4. Rebooting the device

    From now on autoplay works again in webview components used in your app.

提交回复
热议问题