我有以下代码来显示mp4视频:
<video id='video_862e6bcdcf1e4ac9a0dadb2789' width='625' height='385' controls>
<source src='/img/user/file/test.mp4' type='video/mp4'/>
<object width='625' height='385' type='application/x-shockwave-flash' data='/flashvideo/player.swf'>
<param name='movie' value='/flashvideo/player.swf' />
<param name='flashvars' value='controlbar=over&file=/img/user/file/test.mp4' />
</object>
</video>
除了Firefox之外,它在所有浏览器中都很完美。在Firefox中我的页面上没有显示任何内容。
问题是代码甚至没有被解析。我在页面源代码中找不到相同的代码。我找到的唯一代码是:
<div id='video_2693a6d0cfd8462db077da0225b88fd5'></div>
<script type='text/javascript'>
var params = {
allowfullscreen: 'true',
allowscriptaccess: 'always'
};
var flashvars = {
file: '/img/user/file/test.mp4'
};
var koef = 625 / $('video_2693a6d0cfd8462db077da0225b88fd5').offsetWidth;
swfobject.embedSWF(
'/flashvideo/player.swf',
'video_2693a6d0cfd8462db077da0225b88fd5',
$('video_2693a6d0cfd8462db077da0225b88fd5').offsetWidth,
385 / koef,
'10.0.0',
'expressInstall.swf'
, flashvars, params);
</script>
为什么我的代码会从<video />
更改为<script />
??