1

问题:当我按下播放时音频开始但视频没有。

代码:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>JW Player for Flash</title>

</head><body>

<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
    swfobject.registerObject("player","9.0.98","expressInstall.swf");
</script>

<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="468" height="262">
    <param name="movie" value="player-licensed.swf" />
    <param name="allowfullscreen" value="true" />
    <param name="allowscriptaccess" value="always" />
    <param name="flashvars" value="file=Bioshphere-Museum-of-Water.flv&image=preview.jpg" />
    <object type="application/x-shockwave-flash" data="player-licensed.swf" width="468" height="262">
        <param name="movie" value="player-licensed.swf" />
        <param name="allowfullscreen" value="true" />
        <param name="allowscriptaccess" value="always" />
        <param name="flashvars" value="file=video.flv&image=preview.jpg" />
        <p><a href="http://get.adobe.com/flashplayer">Get Flash</a> to watch this video.</p>
    </object>
</object>
</body>
</html>

现场示例:http ://solomongiles.com/mediamar/readme.html

解决方案?

4

3 回答 3

1

使用此处找到的脚本http://www.walkernews.net/2008/01/11/how-to-embed-flv-flash-in-wordpress-or-html/和新播放器。它适用于 IE。我还在 size 参数之后添加了 allowfullscreen="true" allowscriptaccess="always" 。在 IE 中播放,但没有全屏。如果可以的话,请提供帮助。

于 2009-10-17T02:51:01.763 回答
0

在 mac/safari 4.0.3 中工作正常。

但是我确实注意到一件事 - 您的对象和参数位的 flashvars 不匹配。他们应该是一样的。

此外,您还想研究更灵活的嵌入解决方案,例如 SWFObject(它可以帮助您进行播放器检测,并让您的文档也验证为 XHTML)

于 2009-08-21T15:51:17.133 回答
0
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="640" height="480"><param name="flashvars" value="file=http://www.webiste.com/admin/php_uploads/video.flv&image=imgs/image_large.jpg" /><param name="movie" value="flvplayer/player.swf" /><embed src="flvplayer/player.swf" width="640" height="480" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=http://www.webiste.com/admin/php_uploads/video.flv&image=imgs/image_large.jpg" /></object>
于 2009-11-03T06:41:39.047 回答