gpt4 book ai didi

flash - 将 Flash 视频转换为 HTML5

转载 作者:行者123 更新时间:2023-11-27 22:50:53 24 4
gpt4 key购买 nike

我的网站上有一个 Flash 视频 (.swf),我希望将它转换成这样的格式,以便它在 iphone/ipad 上仍然可用。有什么可能的方法吗?我可以将它转换成 HTML5 吗?如果是,任何人都可以建议该过程,如果否,任何人都可以建议任何其他方法吗?任何帮助将不胜感激。

最佳答案

完全可以将 flash 转换为 html 5,具体取决于您要执行的操作。这样做的一个很好的例子是 www.zombo.com (flash) -> http://html5zombo.com/ (html 5)。

如果您查看 html5zombo.com 上的源代码,可以看到他是如何做到的(转载如下)

HTML5zombo.com Bertrand Fan (bertrand@fan.net) 5/19/2010

        I wanted zombo.com on my iPad. That is all.

===================================================================
How I did it, for nerds:
===================================================================

Watched the Net tab for zombo.com in Firebug

wget http://www.zombo.com/inrozxa.swf
wget http://www.zombo.com/welcomeclip.swf

Opened them in SWFRIP to extract the MP3 and SVG representations of the logo and spinner.
Opened the SVG files in Adobe Illustrator (ironic, I know), tweaked a bit, exported new SVG files

Copy-pasted the SVG contents into this HTML file, tweaked the attributes a bit

Wrote the JS code to rotate the SVG spinner

Converted the MP3 to OGG using oggenc2 (not really necessary for the iPad, but apparently for Firefox)

Discovered that the iPad does not respect autoplay on HTML5 audio tags, crafted a javascript link for iPads

wget http://www.zombo.com/favicon.ico

===================================================================
References:
===================================================================

http://www.zombo.com/
http://twitter.com/zombocom
http://sourceforge.net/projects/swfrip/
http://developer.apple.com/safari/library/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/AudioandVideoTagBasics/AudioandVideoTagBasics.html
http://html5doctor.com/native-audio-in-the-browser/
http://emacsformacosx.com/
http://www.apple.com/hotnews/thoughts-on-flash/

关于flash - 将 Flash 视频转换为 HTML5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3475808/

24 4 0
文章推荐: css - 让
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com