Youtube Iframe Video autoplay is not working

Hi there, hope you will be fine. I m using youtube iframe in my Ionic project and I want youtube videos to autoplay. It works fine in the web but not in the real device. The video does not autoplay. I also used lot of npm packages for youtube iframe to autoplay in real device but no success. Please help, Thanks!

Since April 2018, Google made some changes to the Autoplay Policy. You not only need to add the autoplay=1 as a query param, but also add allow=‘autoplay’ as an iframe’s attribute

So while embed youtube video, you will have to do something like this:

<iframe src="" allow='autoplay'></iframe>