开发者

existing swf mp4 player? [closed]

开发者 https://www.devze.com 2023-03-01 05:08 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is no开发者_C百科t currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is no开发者_C百科t currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 7 years ago.

Improve this question

I have a mp4 file put in my website, say http://example.com/a.mp4, I want a swf player that can be embedded into my html, and play the mp4 file. I don't know how to write actionscript so I just want to have an existing swf file.

Requirement: small, fancy, full function, ad free.

Thanks.


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).


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

0

精彩评论

暂无评论...
验证码 换一张
取 消