【问题标题】:How to add video to html using flash player如何使用 Flash 播放器将视频添加到 html
【发布时间】:2015-08-05 06:06:45
【问题描述】:

我想使用 Flash 播放器(不是 html5)将格式为 (mp4) 的视频添加到我的页面。我已经尝试过使用 Flowplayer,但我无法做到这一点:

<html>
    <head></head>
    <body>
        <div class="flowplayer is-splash"
            data-engine="flash"
            data-swf="../dist/flowplayer.swf">
            <video src="http://d32wqyuo10o653.cloudfront.net/Extremists.m4v" preload="none"></video>
        </div>
    </body>
</html>

有人可以解释一下吗?我搜索了很多,尝试了很多,但没有得到结果。

【问题讨论】:

    标签: html flash video flowplayer flash-video


    【解决方案1】:

    试试这个它对我有用!

    <!DOCTYPE html>
     <html>
     <body>
    
     <video width="320" height="240" controls>
       <source src="http://d32wqyuo10o653.cloudfront.net/Extremists.m4v" type="video/mp4">
     <source src="movie.ogg" type="video/ogg">
    </video>
    
    </body>
    </html>
    

    【讨论】:

      【解决方案2】:

      如果你只想使用flowplayer flash version,你可以这样做:

      <html>
      <head>
          <script src="http://releases.flowplayer.org/js/flowplayer-3.2.13.min.js"></script>
      </head>
      <body>
          <a href="http://d32wqyuo10o653.cloudfront.net/Extremists.m4v" class="player" style="display:block;width:425px;height:300px;margin:10px auto" id="player"></a>
          <script>
              flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.18.swf");
          </script>
      </body>
      </html>
      

      您可以在 codebeautify.org here 上看到此代码。

      希望能有所帮助。

      【讨论】:

        猜你喜欢
        • 2011-03-02
        • 1970-01-01
        • 1970-01-01
        • 2021-09-17
        • 1970-01-01
        • 2011-05-31
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多