HTML5如何“替代”闪? [英] How can HTML5 "replace" Flash?

查看:234
本文介绍了HTML5如何“替代”闪?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自iPad揭幕以来,一场激起争议的话题就是Flash与HTML5的问题。有些人认为HTML5将会取代/取代Adobe Flash。



我没有开发在浏览器中运行的软件,所以我的(有限的)理解是:


  • HTML是一种纯文本标记语言,通过HTTP传递给客户端浏览器。客户端浏览器根据标准规范解释标记并呈现(不同程度的成功)页面。

  • Adob​​e Flash是一个适用于音频,视频,声音和光栅的框架/矢量图形。它需要特殊的编辑工具(一个编译器也许?)和一个自定义的播放器,它可以作为大多数普通浏览器的插件。


是否有人可以向技术/编码观点解释(对于这个C / C ++开发人员),基于文本的标记语言(HTML5)可以被认为是替代多媒体框架(Flash)? b
$ b

请勿置评自己的观点 - 仅仅是技术性的事实。 在讨论的上下文中,人们宽松地引用HTML5的是HTML作为标记语言,指定了它如何呈现的CSS,以及处理这些HTML代码的JavaScript代码的组合此外,HTML5不仅具有标准的文本元素,而且还包含< canvas>< / code>其上可以绘制2D图形,嵌入视频的< video> 元素(顾名思义)。因此,在全面实施HTML5的过程中,您可以在不使用Flash的情况下实现动态网站。例如最近推出的HTML5版Youtube,作为Safari / Chrome用户的测试版,请参阅此处。另一个是javascript + HTML中的 NES模拟器。 (那么后者并没有真正关注HTML5 ...它使用< canvas> 。)


A topic of debate that's seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5. There are those that suggest that HTML5 will one day supplant/replace Adobe Flash.

I do not develop software that runs in a browser, so my (limited) understanding is:

  • HTML is a pure-text markup language that is delivered over HTTP to a client browser. The client browser interprets the markup and renders (with varying degrees of success) the page according to an standard specification.
  • Adobe Flash is a propriety framework for working with audio, video, sound and raster/vector graphics. It requires special authoring tools (a compiler perhaps?) and a custom player that's available as a plug-in to most common browsers.

Could someone please explain (to this C/C++ developer) how it is possible from a technical/coding point-of-view that a text-based markup language (HTML5) could be considered a replacement to a multimedia framework (Flash)?

Please no opinionated arguments - just technical facts.

解决方案

What people loosely refer to HTML5 in the context of this discussion is the combination of HTML as a markup language, CSS which specifies how it is rendered, and the javascript code which manipulates the HTML and CSS dynamically.

Furthermore, HTML5 not only has the standard text elements, but also <canvas> on which 2d graphics can be drawn, and <video> elements which embeds the video (as the name suggests).

So, in a full-fledged implementation of HTML5, you can implement dynamic web sites without using Flash. An example is the HTML5 version of Youtube, recently introduced as beta for Safari/Chrome users, see here. Another is an NES emulator in javascript + HTML. (Well the latter does not really concern HTML5... it uses <canvas>.)

这篇关于HTML5如何“替代”闪?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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