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

我已经搜索了Stackoverflow,并用谷歌搜索了,当然,我在Flowplayer网站上的论坛中进行了搜索。我发现一些有关Flash文件丢失其元数据的文章,这些文章使flowplayer脱颖而出。我正在使用Movavi Video Suite 8执行从mp4到Flash的转换。我认为元数据在转换时会包含在Flash文件中,但我不确定。我使用了在这里找到的元数据注入(inject)器:http://www.buraks.com/flvmdi/将元数据注入(inject)到Flash文件中,但仍然无法正常工作。

还要注意的是,播放器的进度条显示了视频的开始时间,当前时间和结束时间,因此我认为元数据在那里。我仍然不知道为什么这不起作用。

我想知道这是否是我的* .flv文件,因为播放器会加载从中生成的mp4文件。我使用了一个名为MOVAVI Video Suite的高级应用程序来执行转换。我认为情况并非如此,因为我可以将转换后的* .flv文件上传到youtube,并且可以正常播放。

另外值得注意的是,当flv源指向我的godaddy网站以及指向硬盘驱动器上包含播放器,文件,视频文件,以及用于测试此内容的示例.html页面。

可能还有其他值得一提的事情是,我还没有将Flow Player文件放到我的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/

10-12 07:25
查看更多