gpt4 book ai didi

flash - Flowplayer flash 组件播放声音但不播放视频

转载 作者:行者123 更新时间:2023-12-04 20:59:48 24 4
gpt4 key购买 nike

好吧,我整天都在研究这个,这让我发疯了。流播放器将播放 *.flv 的音频,但不播放视频,我不知道为什么。使用默认 flowplayer flv url 的初始示例页面可以正常工作。当我将网址更改为我的 Godaddy 网站时,它不起作用。

我搜索过 Stackoverflow,用谷歌搜索,当然,还查看了 Flowplayer 网站上的论坛。我发现一些文章谈论闪存文件缺少它的元数据以及将 flowplayer 扔掉。我正在使用 Movavi Video Suite 8 执行从 mp4 到 flash 的转换。我认为元数据在转换时包含在闪存文件中,但我不确定。我使用了在这里找到的元数据注入(inject)器:http://www.buraks.com/flvmdi/将元数据注入(inject)闪存文件,但它仍然不起作用。

另外值得注意的是,播放器的进度条显示视频的开始、当前和结束时间值,所以我认为元数据就在那里。不过,我仍然不知道为什么这不起作用。

我想知道它是否是我的 *.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" &gt; "Add location" &gt; "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>

最佳答案

我遇到过同样的问题。
我的 flowplayer 在页面正文中生成类似这样的内容

<a href="../resimler/video/test.flv" class="flowplayer">
<object width="100%" height="100%" type="application/x-shockwave-flash" data="../mult/flowplayer-3.2.7.swf" id="fp_43298124_api">
<param value="true" name="allowfullscreen">
<param value="always" name="allowscriptaccess">
<param value="high" name="quality">
<param value="false" name="cachebusting">
<param value="#000000" name="bgcolor"><param value="config={&quot;playerId&quot;:&quot;fp_43298124&quot;,&quot;clip&quot;:{&quot;url&quot;:&quot;../resimler/video/test.flv&quot;},&quot;playlist&quot;:[{&quot;url&quot;:&quot;../resimler/video/test.flv&quot;}]}" name="flashvars">
</object>
</a>

当我把 style="width:200px;height:200px"<object>标签,我可以看到视频。
可能是帮助别人

关于flash - Flowplayer flash 组件播放声音但不播放视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2079481/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com