INNER CODE UNIT · JavaScript

loadYouTubeIFrameAPIs

PierfrancescoSoffritti/android-youtube-player · chromecast-receiver/js/main.js:32

function loadYouTubeIFrameAPIs() {
    const script = document.createElement('script')
    script.src = "https://www.youtube.com/iframe_api"
    document.getElementsByTagName('head')[0].appendChild(script)
}

// called automatically by the IFrame APIs
function onYouTubeIframeAPIReady() {
    isYouTubeIframeAPIReady = true
    youTubePlayer.initialize()
}

window.main_onYouTubeIframeAPIReady = onYouTubeIframeAPIReady

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…