Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/421.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
Javascript mediaelement.js视频不';我不玩IE8_Javascript_Jquery_Html_Internet Explorer 8_Mediaelement.js - Fatal编程技术网

Javascript mediaelement.js视频不';我不玩IE8

Javascript mediaelement.js视频不';我不玩IE8,javascript,jquery,html,internet-explorer-8,mediaelement.js,Javascript,Jquery,Html,Internet Explorer 8,Mediaelement.js,我已经看完了这里提出的所有其他问题,但没有什么真正解决了我的问题 目前,视频将在Chrome、Safari、FF和IE9中加载和播放,但不是IE8,IE8是我需要支持的最后一款浏览器。您可以查看该页面 我一直在尝试使用调试选项,但也没有从中得到任何帮助。以下是调试器告诉我的: Initializing... stage: 0x560 file: path/to/video.mp4 autoplay:true preload:true isvideo:true smoothing:false ti

我已经看完了这里提出的所有其他问题,但没有什么真正解决了我的问题

目前,视频将在Chrome、Safari、FF和IE9中加载和播放,但不是IE8,IE8是我需要支持的最后一款浏览器。您可以查看该页面

我一直在尝试使用调试选项,但也没有从中得到任何帮助。以下是调试器告诉我的:

Initializing...
stage: 0x560
file: path/to/video.mp4
autoplay:true
preload:true
isvideo:true
smoothing:false
timerrate:250
displayState:true
ExternalInterface.available:true
ExternalInterface.objectID: me_flash_0
Adding callbacks...
Success...
METADATA RECEIVED:900x560
positioning video
seek:0
play
这是我的密码:

<video id="player1" width="900" height="560" loop="true" autoplay="true" preload="none" >
  <source type="video/mp4" src="<?php echo get_template_directory_uri(); ?>/images/curtainLoop.mp4" />
  <source type="video/webm" src="<?php echo get_template_directory_uri(); ?>/images/curtainLoop.webm" />
    <object width="900" height="560" type="application/x-shockwave-flash" data="<?php echo get_template_directory_uri(); ?>/js/flashmediaelement.swf"> 
        <param name="movie" value="<?php echo get_template_directory_uri(); ?>/js/flashmediaelement.swf" /> 
        <param name="flashvars" value="autoplay=true&amp;controls=true&amp;file=<?php echo get_template_directory_uri(); ?>/images/echo-hereweare.mp4" />                       
    </object></video>

<span id="player1-mode"></span>
 <script>
    jQuery(document).ready(function($) {
    var player = new MediaElementPlayer('#player1', {
        enablePluginDebug: true,
        enableAutosize: true,
        success: function(media, node, player) {  
            $('#' + node.id + '-mode').html('mode: ' + player.pluginType);  
        }  
        });
    });
</script>


我以前也有过这个问题,花了一段时间才找到原因。我已经对此进行了测试,它似乎也适用于您的情况:

在MediaElement创建的.me插件div上,有一个
位置:绝对引用。当我将其设置为
位置时:静态在IE8中一切正常

我通常会这样做:

.ie8 .me-plugin { position: static; }