YouTube player iframe API: playVideo doesn't work on Firefox 9.0.1

后端 未结 4 1816
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-15 18:16

I\'ve got some YouTube embedding code (I will paste only code which is causing the trouble for me and cut things which are not public):

console.log(ytplayer);
yt         


        
4条回答
  •  清酒与你
    2021-02-15 18:30

    I personally found on preset IFrames, that the API won't work properly if you wouldn't use https://www.youtube.com as the domain. So be careful not to miss on the "www". Otherwise the API will create the player object but will fail to execute methods.

提交回复
热议问题