5

好吧,我整天都在研究这个,这让我发疯了。流播放器将播放 *.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" &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>

4

3 回答 3

2

我遇到过同样的问题。我的 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>标签时,我可以看到视频。可能是帮助别人

于 2011-12-03T11:25:00.863 回答
1

我知道这是一篇旧帖子,但我遇到了同样的问题,也许这可能对某人有所帮助。我通过在视频显示的播放器容器上放置宽度和高度来发现。

<div style="width: 200px; height: 200px">
    <a href="" .... flowplayer call
</div>
于 2013-08-30T07:23:14.333 回答
0

Is your file compatible with flash? I mean is the audio & video codecs supported by the Adobe Flash runtime? List of codecs supported by Adobe Flash Player That might be causing the error.

As another means you could try a different encoding application, WinFF is pretty good and very easy to use, based on FFmpeg. In the main WinFF window click Convert To -> Websites Device Preset -> Flash Video for Web

于 2011-03-10T10:46:39.107 回答