Javascript YouTube IFrame Api于201年8月停止在IE8中工作

Javascript YouTube IFrame Api于201年8月停止在IE8中工作,javascript,iframe,internet-explorer-8,youtube-iframe-api,Javascript,Iframe,Internet Explorer 8,Youtube Iframe Api,2016年8月,YouTube IFrame API在Internet Explorer 8中停止工作。请尝试下面的代码(只需将其复制并粘贴到本地服务器的html页面中)。它在除IE8之外的所有浏览器中都可以正常工作 你能提出一个解决方案或解决办法吗?非常感谢 <!DOCTYPE html> <html> <head> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-

2016年8月,YouTube IFrame API在Internet Explorer 8中停止工作。请尝试下面的代码(只需将其复制并粘贴到本地服务器的html页面中)。它在除IE8之外的所有浏览器中都可以正常工作

你能提出一个解决方案或解决办法吗?非常感谢

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta id="viewport" name="viewport" content="initial-scale=1.0" />

<script type="text/javascript" src="https://www.youtube.com/iframe_api"></script>
<title></title>
</head>
<body onload='frmHelpVideo_startup();'>
<form method="POST" action=''>
    <div>LAUNCHING PLAYER IN 5 SECONDS (IT FAILS IN IE8. HOW TO FIX?) . . . </div>
    <div id='diviframeVideoHelp'></div>
</form>
</body>
<script type='text/javascript'>
var playerHelp = null;
function frmHelpVideo_startup(){
    window.setTimeout(function(){frmHelpVideo_player_init();}, 5000);
}
function frmHelpVideo_player_init(){
    playerHelp = new YT.Player  ('diviframeVideoHelp', {
        playerVars: {controls: 1, showInfo:0},
        events: {'onReady': Player_help_event_handler_ready, 'onStateChange': Player_help_event_handler_state_change, 'onError': Player_help_event_handler_error}
        }
    );
}
function Player_help_event_handler_ready(event){
    playerHelp.loadVideoById('1Ugle4aIous');
}
function Player_help_event_handler_state_change(event){
}

function Player_help_event_handler_error(event){
}
</script>
</html>

在5秒内启动播放器(在IE8中失败。如何修复?)。
var playerHelp=null;
函数frmHelpVideo_启动(){
setTimeout(函数(){frmHelpVideo_player_init();},5000);
}
函数frmHelpVideo_player_init(){
playerHelp=新的YT.Player('diviframeVideoHelp'{
PlayerBars:{控件:1,显示信息:0},
事件:{'onReady':玩家\帮助\事件\处理程序\准备就绪,'onStateChange':玩家\帮助\事件\处理程序\状态\更改,'onError':玩家\帮助\事件\处理程序\错误}
}
);
}
函数播放器\帮助\事件\处理程序\准备就绪(事件){
playerHelp.loadVideoById('1Ugle4aIous');
}
函数播放器\帮助\事件\处理程序\状态\更改(事件){
}
函数播放器\帮助\事件\处理程序\错误(事件){
}