Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Youtube api Internet Explorer-iframe api不工作_Youtube Api - Fatal编程技术网

Youtube api Internet Explorer-iframe api不工作

Youtube api Internet Explorer-iframe api不工作,youtube-api,Youtube Api,我正在使用iframeapi 我希望能够通过iframe api暂停/播放和静音/取消静音视频 我创建了一个示例: // 2. 此代码异步加载IFrame播放器API代码。 var tag=document.createElement'script'; tag.src=https://www.youtube.com/iframe_api; var firstScriptTag=document.getElementsByTagName'script'[0]; firstScriptTag.p

我正在使用iframeapi

我希望能够通过iframe api暂停/播放和静音/取消静音视频

我创建了一个示例:

// 2. 此代码异步加载IFrame播放器API代码。 var tag=document.createElement'script'; tag.src=https://www.youtube.com/iframe_api; var firstScriptTag=document.getElementsByTagName'script'[0]; firstScriptTag.parentNode.insertBeforetag,firstScriptTag; var播放器; 函数onYouTubeIframeAPIReady{ 玩家=新的YT。玩家'bg'{ 活动:{ “onReady”:函数事件{ event.target.setVolume50; } } }; } 函数pauseVideo{ player.pauseVideo; } 功能播放视频{ player.playVideo; }
所以,我在谷歌上发布了同样的东西。 现在可以了

我仍然不确定是我的电脑还是他们做了什么