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

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

问题描述

自从 iPad 面世以来,一个重新兴起的争论话题是 Flash 与 HTML5 的问题.有些人认为 HTML5 有一天会取代/取代 Adob​​e Flash.

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 是一种纯文本标记语言,通过 HTTP 传送到客户端浏览器.客户端浏览器会根据标准规范解释标记并呈现(具有不同程度的成功)页面.
  • Adobe Flash 是用于处理音频、视频、声音和光栅/矢量图形的专有框架.它需要特殊的创作工具(也许是编译器?)和可作为大多数常见浏览器插件使用的自定义播放器.

有人可以(向这位 C/C++ 开发人员)解释一下如何从技术/编码的角度将基于文本的标记语言 (HTML5) 视为一种替代多媒体框架(Flash)?

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

请不要固执己见——只是技术事实.

推荐答案

人们在本次讨论的上下文中松散地提到 HTML5 是将 HTML 作为标记语言、指定其呈现方式的 CSS 以及 javascript 的组合动态操作 HTML 和 CSS 的代码.

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.

此外,HTML5不仅有标准的文本元素,还有可以在其上绘制二维图形的,以及嵌入的元素视频(顾名思义).

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

因此,在 HTML5 的成熟实现中,您可以在不使用 Flash 的情况下实现动态网站.一个例子是 YouTube 的 HTML5 版本,它最近作为 Safari/Chrome 用户的测试版推出,请参阅此处.另一个是 javascript + HTML 中的 NES 模拟器.(后者并不真正关心 HTML5...它使用 .)

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天全站免登陆