Is there any way to autoplay YouTube embed videos on iOS and Android?
// 2. 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); // 3. This function creates an (and YouTube player) // after the API code downloads. var player; function onYouTubeIframeAPIReady() { player = new YT.Player(‘player’, { width: ‘100%’, videoId: ‘(Youtube Video ID … Leggi tutto