How to make a YouTube chromeless player?

后端 未结 2 600
心在旅途
心在旅途 2021-01-20 03:11

This may sound stupid but I looked online for some time and I could not find how to make a YouTube player chromeless. I am making a web app and I am using the YouTube JavaSc

2条回答
  •  生来不讨喜
    2021-01-20 03:48

    Well first you would the HTML Code

    
    

    Now this takes the url: http://www.youtube.com/apiplayer?enablejsapi=1&version=3

    This one doesn't take a ID due to the fact you give it one in JS on the function

    onYouTubePlayerReady() 
    

    Here is a little example

    
    

    That is the basic script, hope this works!

提交回复
热议问题