HTML5可以做大部分的Flash功能吗? [英] Can HTML5 do most of what Flash does today?
问题描述
这个规范提出的一些令人兴奋的功能是:
- 灵活
画布
编写脚本的图形,图像,动画 更多的语义准确的文档 自定义数据属性 - 视频和音频支持(假设已经与RE:to codecs)
- 网页/浏览器数据库
个人会发现使用建议的HTML5规范会产生一个痛苦:
你会注意到它可能会加速你的处理器(嘿,就像flash!)。 >
在未来的5 - 10年内,这一切都是可能的。大多数规范(如果有的话)在主流浏览器中得到部分支持。您可以跟上哪个主要浏览器的布局引擎支持此处。不过官方表示,这个规范预定在2012年完成,到2022年推荐。闪存仍然是一个主要参与者。
只是以下情况:
编辑只是为了添加我最近发布的博客评论中的一些注释 HTML5是关于语义和互操作性的;它定义了关于HTML生产者应该如何生成文档的建议。如果浏览器采用这些标准,这将使生产者更容易创建可以被消费的无插件的互操作内容。
这就是我喜欢Flash的原因。因为标准是由写标准的同一个人执行的。它表现出相同的跨平台(主要),因为它是一个插件。 HTML5的主要目的是减少对插件的需求。
我们(作为开发人员,设计师)需要小心的是将CSS3和Javascript集成到HTML5中。你看到的很多很酷的东西都是HTML5,不是(苹果公司最近的HTML5展示,其中大部分不是HTML5)就是一个很好的例子。这是jQuery;这是CSS3的动画和转换;它是专有的视频编解码器,只支持一个浏览器。很让我懊恼的是,HTML5已经成为新的Web 2.0,代表了大量相关的技术。
What can it do? and what can't it do? (in relation to flash)
HTML5 doesn't do anything, per se. It's a spec; one that isn't finished yet. Sure, many of its proposed features will allow developers to produce similar features as Flash, but it's up to the browser developers to implement said specification. Currently, there's a good amount of its proposed spec implemented in different ways by different browser vendors. If your application only uses something that supports some of the HTML5 spec (webkit-based Safari 5/Chrome/Chromium for instance), you can do a lot (ahem, guessing your question stems from Steve Jobs mentioning HTML5 in a Keynote™)...but will struggle with cross-platform support. Many of the major players in the browser market haven't even agreed on a common codec for video yet (H.264 for many, not supported currently by Firefox/Opera/etc. which use ogg/theora) so basically we're going back to pre-flash days of plugin-madness for a bit.
Some of the exciting features proposed in the spec for me are:
- flexible
canvas
for scripting drawings, images, animations - more semantically accurate documents
- custom data attributes
- video and audio support (assuming something is agreed upon with RE: to codecs)
- web/browser database
One of the major things that I personally would find to be a pain to produce using the proposed HTML5 spec:
- animation and design. Ok, this is a coding site, but I'm a designer who codes and I work with a lot of designers. I don't want to have to programmatically animate a vector walkcycle :D ...canvas has little to no support for designers..do you see your designer friend writing code like this?)
Here's an app that shows a little bit of HTML5: http://9elements.com/io/projects/html5/canvas/
You'll note that it may "run up" your processor a bit (hey, just like flash!).
In the next 5-10 years it'll all be possible. Most of the spec is (if at all) partially supported in major browsers. You can keep up with which major browser's layout engines support what here. Officially though, the spec is scheduled to be complete in 2012, and recommended by 2022. Flash will still be a major player for a bit.
and just in case:
Edit just to add a few more notes from a blog comment I posted recently
HTML5 is about semantics and interoperability; it defines a recommendation about how HTML producers should produce documents. If browsers adopt these standards, it will make it easier for producers to create interoperable content that can be consumed sans plugin. This is why I love Flash; because it’s standards are implemented by the same people who "wrote" the standards. It behaves the same cross-platform (mostly) because it’s a plugin. The primary intention of HTML5 is to reduce the need for plugins.
One thing we (we being developers, designers) need to be careful with is lumping CSS3 and Javascript in with HTML5. Much of the cool stuff you see that is denoted as HTML5, isn't (Apple's recent "HTML5" showcase–which, the majority of which was not HTML5–is a great example). It's jQuery; it's CSS3 animations and transformations; it's proprietary video codecs that are only supported it one browser. Much to my chagrin, HTML5 has become the new "Web 2.0", representing a wide body of somewhat related technologies.
这篇关于HTML5可以做大部分的Flash功能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!