Answers for "how to access youtube in iframe"

1

youtube in iframe opens youtube aoo

You can use "playsinline" parameter to play the video inline instead.

//Update Config.xml to include the follwing
<platform name="ios">
  <allow-navigation href="*://*youtube.com/*"/>
</platform>
Posted by: Guest on October-06-2020
2

load youtube iframe player api

// This code loads the IFrame Player API code asynchronously.
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
Posted by: Guest on September-28-2020

Browse Popular Code Answers by Language