How can I autoplay youtube video in the app?

I’m testing on emulator (Samsung Galaxy S6, S5, S4) and on a real device (Samsung Galaxy S4)

I am still having an issue where the youtube video will not play programmatically after the playerReady event.
I am running the example code you provided on an iPhone running iOS 9.3.3

If I don’t use the playVideo() command, but instead tap the video, it plays fine.

When looking at the logs, the playVideo command initiates, and the video status changes from UNSTARTED to BUFFERING. However it never leaves the buffering state, and is compeletely unresponsive to user interaction on the phone. However, during buffering it changes from a mere loading symbol to a frame showing the start of the video.

Does iOS 9 not allow the programmatic start of videos even in a UIWebView? (Is that not what Ionic is housed in?) I have set the config option AllowInlineMediaPlayback to true as well as MediaPlaybackRequiresUserAction explicitly to false.

Does anyone have any experience with this?

Found a solution:
We can’t detect a click in Iframe you better place a image or a button in iframe,In that button or image you can enable autoplay by playmethod & pausemethod.You can hide the button after a click is made by hide(). Hope it helps you!

toggle(){
    this.slides.stopAutoplay();
    if(this.hideButton)
    {
      this.hideButton = false;
    let listaFrames = document.getElementsByTagName("iframe");  
    for(var i=0;i<listaFrames.length;i++)
    {
      let iframe=listaFrames[i].contentWindow
      iframe.postMessage('{"event":"command","func":"'+ 'playVideo'+ '","args":""}', '*');
    }
}