HTML5可以做大部分的Flash功能吗? [英] Can HTML5 do most of what Flash does today?

查看:254
本文介绍了HTML5可以做大部分的Flash功能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它可以做什么?它不能做什么? (相对于Flash而言)HTML5本身并不做任何事情。这是规范; 还没有完成。当然,其许多建议的功能将允许开发人员生成与Flash类似的功能,但是由浏览器开发人员来实现上述规范。目前,不同浏览器供应商以不同的方式实施了大量的建议规范。如果您的应用程序只使用支持某些HTML5规范(例如基于Webkit的Safari 5 / Chrome / Chromium)的东西,那么您可以做很多事情(猜测您的问题源于Steve Jobs在Keynote™中提到HTML5)。 ..但会与跨平台的支持斗争。许多浏览器市场的主要参与者甚至还没有就视频的通用编解码器达成一致(H.264是很多的,目前还没有被Firefox / Opera /等使用的ogg / theora支持),所以基本上我们要回到预渲染的插件疯狂的日子。



这个规范提出的一些令人兴奋的功能是:



个人会发现使用建议的HTML5规范会产生一个痛苦:


  • ani mation和设计。好的,这是一个编码网站,但是我是一个设计师,我和很多设计师合作。我不想以编程方式为矢量漫游创建动画:D ... canvas对于设计师来说几乎没有任何支持。你可以看到你的设计师朋友编写的代码像这个?) b
  • 一个显示HTML5的应用程序: http://9elements.com/io/projects/ html5 / canvas /



    你会注意到它可能会加速你的处理器(嘿,就像flash!)。 >

    在未来的5 - 10年内,这一切都是可能的。大多数规范(如果有的话)在主流浏览器中得到部分支持。您可以跟上哪个主要浏览器的布局引擎支持此处。不过官方表示,这个规范预定在2012年完成,到2022年推荐。闪存仍然是一个主要参与者。



    http://html5gallery.com/



    只是以下情况:

    http://ishtml5readyyet.com/




    编辑只是为了添加我最近发布的博客评论中的一些注释 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:

    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.

    http://html5gallery.com/

    and just in case:

    http://ishtml5readyyet.com/


    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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆