代码之家  ›  专栏  ›  技术社区  ›  jason

Flowplayer flash组件只播放声音而不播放视频

  •  5
  • jason  · 技术社区  · 16 年前

    我搜索了Stackoverflow,google,当然,在Flowplayer网站的论坛里也查过了。我发现一些文章谈到了flash文件丢失了它的元数据,以及把flowplayer扔了。我正在使用Movavi视频套件8执行从mp4到flash的转换。我认为元数据在转换时包含在flash文件中,但我不确定。我使用了这里的元数据注入器: http://www.buraks.com/flvmdi/ 将元数据注入flash文件,但仍然无法工作。

    我想知道这是否是我的*.flv文件,因为播放器将加载从中生成的mp4文件。我使用了一个名为MOVAVI视频套件的高级应用程序来执行转换。我不认为是这样,因为我可以将转换后的*.flv文件上传到youtube,而且播放效果很好。

    可能还有一点值得一提的是,我还没有把流播放器文件放在我的godaddy网站上,因为视频图片没有在本地显示。

    我对长尾视频播放器也有同样的问题。

    这是我的测试页的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>
    

    3 回复  |  直到 16 年前
        1
  •  2
  •   Simasher    14 年前

    我也有同样的问题。 我的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> 也许对某些人有帮助

        2
  •  1
  •   ZombieCode    12 年前

    <div style="width: 200px; height: 200px">
        <a href="" .... flowplayer call
    </div>
    
        3
  •  0
  •   wonea Ilya Smagin    15 年前

    你的文件与flash兼容吗?我是说Adobe Flash运行时是否支持音频和视频编解码器? List of codecs supported by Adobe Flash Player 这可能是错误的原因。

    另一种方法是尝试不同的编码应用程序, WinFF 基于FFmpeg,非常好用。在WinFF主窗口中单击 ->网站设备 预设 ->网络Flash视频