0

我想使用 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>

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

4

2 回答 2

0

试试这个它对我有用!

<!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>
于 2015-08-05T06:42:34.927 回答
0

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

<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 上运行的代码。

希望能有所帮助。

于 2015-08-05T11:06:34.983 回答