好吧,我整天都在研究这个,这让我发疯了。流播放器将播放 *.flv 的音频,但不播放视频,我不知道为什么。使用默认 flowplayer flv url 的初始示例页面可以正常工作。当我将网址更改为我的 Godaddy 网站时,它不起作用。
我搜索过 Stackoverflow,用谷歌搜索,当然,还查看了 Flowplayer 网站上的论坛。我发现一些文章谈论闪存文件缺少它的元数据以及将 flowplayer 扔掉。我正在使用 Movavi Video Suite 8 执行从 mp4 到 flash 的转换。我认为元数据在转换时包含在闪存文件中,但我不确定。我使用在这里找到的元数据注入器:http ://www.buraks.com/flvmdi/将元数据注入到闪存文件中,但它仍然无法正常工作。
另外值得注意的是,播放器的进度条显示视频的开始、当前和结束时间值,所以我认为元数据就在那里。不过,我仍然不知道为什么这不起作用。
我想知道它是否是我的 *.flv 文件,因为播放器将加载生成它的 mp4 文件。我使用了一个名为 MOVAVI Video Suite 的高级应用程序来执行转换。我不认为是这种情况,因为我可以将转换后的 *.flv 文件上传到 youtube 并且可以正常播放。
另外值得注意的是,当flv源指向我的godaddy站点以及指向包含播放器的硬盘驱动器上的本地文件夹时,Flow Player播放音频而不是视频,它是文件,视频文件,以及用于测试的示例 .html 页面。
可能还有其他值得一提的事情是我还没有将流播放器文件放在我的godaddy网站上,因为视频图片没有在本地显示。
我对 LongTailVideo 播放器有同样的问题。
这是我的测试页面的 html:
<!--
include flowplayer JavaScript file that does
Flash embedding and provides the Flowplayer API.
-->
<script type="text/javascript" src="flowplayer-3.1.4.min.js"></script>
<!-- some minimal styling, can be removed -->
<link rel="stylesheet" type="text/css" href="style.css">
<!-- page title -->
<title>Minimal Flowplayer setup</title>
<div id="page">
<h1>Minimal Flowplayer setup</h1>
<p>View commented source code to get familiar with Flowplayer installation.</p>
<!-- this A tag is where your Flowplayer will be placed. it can be anywhere -->
<a
href="http://www.thebaisenzone.com/rememberthejourney/example/VID00003.flv"
style="display:block;width:520px;height:330px"
id="player">
</a>
<!--<a
href="file:///C:/Development/MVC/flowplayer/example/VID00003.flv"
style="display:block;width:520px;height:330px"
id="player">
</a> -->
<!-- this will install flowplayer inside previous A- tag. -->
<script>
flowplayer("player", "flowplayer-3.1.5.swf");
</script>
<!--
after this line is purely informational stuff.
does not affect on Flowplayer functionality
-->
<p>
If you are running these examples <strong>locally</strong> and not on some webserver you must edit your
<a href="http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html">
Flash security settings</a>.
</p>
<p class="less">
Select "Edit locations" > "Add location" > "Browse for files" and select
flowplayer-x.x.x.swf you just downloaded.
</p>
<h2>Documentation</h2>
<p>
<a href="http://flowplayer.org/documentation/installation/index.html">Flowplayer installation</a>
</p>
<p>
<a href="http://flowplayer.org/documentation/configuration/index.html">Flowplayer configuration</a>
</p>
<p>
See this identical page on <a href="http://flowplayer.org/demos/example/index.htm">Flowplayer website</a>
</p>
</div>