existing swf mp4 player? [closed]

主宰稳场 提交于 2019-12-02 21:30:31

There are plenty of players available, for example http://www.longtailvideo.com/players/jw-flv-player/ or http://flowplayer.org/.

I was recently looking for a simple, robust, usable, non-branded swf video player to use as a flash fallback when using the HTML5 <video> element, and I found the Strobe Media Playback player from Adobe. It fills all those requirements, and is fairly feature-rich. The files are directly downloadable from their Sourceforge directory. Here, more or less, is how I use it:

<video controls poster="video.jpg">
    <source src="video.mp4" type="video/mp4">
    <source src="video.webm" type="video/webm">
    <object type="application/x-shockwave-flash" data="StrobeMediaPlayback.swf">
        <param name="movie" value="StrobeMediaPlayback.swf">
        <param name="flashvars" value="src=video.mp4&amp;poster=video.jpg">
        <img src="video.jpg" alt="Video">
        <p>Your browser can’t play HTML5 or flash video. <a href="video.mp4">Download it</a> instead.</p>
    </object>
</video>

It supports lots of parameters specifiable from within the flashvars parameter, such as autoplay and a whole host of parameters related to the controls (the documentation lists them).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!