javascript - JW Player 嵌入式 Flash 播放器无法正常播放

标签 javascript flash jwplayer

问题:当我按播放时,音频开始,但视频不开始。

代码:

<!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

解决方案?

最佳答案

使用此处找到的脚本,http://www.walkernews.net/2008/01/11/how-to-embed-flv-flash-in-wordpress-or-html/ ,与新玩家。它可以在 IE 中运行。我还在大小参数后面添加了allowfullscreen =“true”allowsscriptaccess =“always”。可以在 IE 中播放,但不能全屏。如果可以的话请帮忙解决这个问题。

关于javascript - JW Player 嵌入式 Flash 播放器无法正常播放,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1312690/

相关文章:

Javascript:在数组中查找对象的索引,不知道索引,只知道对象

php - 使用 ffmpeg 而不是 flvmdi 将元数据添加到 flv 文件

javascript - Protractor :预期 'pop up window to be visible' 语句不起作用

javascript - 提供嵌入内容的 JavaScript 链接

apache-flex - Flex 中的 JSON。 "Access of undefined property JSON"

javascript - jwplayer 6 : get filename

javascript - 如何隐藏JWPlayer播放按钮?

jquery - 全屏背景视频的 JWPlayer

javascript if语句如果url包含子字符串

javascript - 从 Web 应用程序 (java/jsp) 端点调用 google api explorer 方法