Html Flash 的最新和最好的替代品是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9611624/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What's the latest and greatest alternative to Flash?
提问by atomSmasher
I recently accepted a part time gig revamping a set of multimedia/presentations that are used in med education courses. I have been asked to research the future of web and smartphone multimedia platforms. Basically, whats new. Currently, we use flash to create all of our educational multimedia applications but we are starting to develop a new theme and would like to develop apps that are compatible with the PC, apple products and android products.
我最近接受了一份兼职工作,改造了一套用于医学教育课程的多媒体/演示文稿。我被要求研究网络和智能手机多媒体平台的未来。基本上,什么是新的。目前,我们使用flash来创建我们所有的教育多媒体应用程序,但我们正在开始开发一个新的主题,并希望开发与PC、苹果产品和安卓产品兼容的应用程序。
I am not up to speed on what is currently trending as this is not my profession! My boss asked me to research HTML5, but I having a feeling that is not going to be a solution. Does anyone have any advice on the "new flash" for web and multimedia? Thanks for reading.
我跟不上当前的流行趋势,因为这不是我的职业!我的老板让我研究 HTML5,但我感觉这不是一个解决方案。有人对网络和多媒体的“新闪存”有什么建议吗?谢谢阅读。
采纳答案by Marty
As mentioned, using <canvas>
with JavaScript can reproduce almost all of the features of Flash like rendering and managing user input (keyboard, mouse & even game pads).
如前所述,使用<canvas>
JavaScript 可以重现 Flash 的几乎所有功能,例如渲染和管理用户输入(键盘、鼠标甚至游戏手柄)。
There are various JavaScript libraries (e.g. Pixi.js) that do some of the groundwork for you and there is a section on MDNdedicated to getting you started with game development in JavaScript.
有各种 JavaScript 库(例如Pixi.js)可以为您做一些基础工作,并且MDN 上有一个部分专门帮助您开始使用 JavaScript 进行游戏开发。
Also worth mentioning is TypeScriptwhich gives you a platform to write AS3-like object-oriented code for your web-based games. It is well worth checking out - it's near the top of my current favourite languages to use.
另外值得一提的是TypeScript,它为您提供了一个平台,可以为基于 Web 的游戏编写类似 AS3 的面向对象的代码。非常值得一试 - 它接近我目前最喜欢使用的语言的顶部。
回答by Joseph Ravenwolfe
Most likely the answer you're looking for is the HTML5 stack. This allows for rich animation and manipulation of text and multimedia through Canvas, CSS3 transforms, and JavaScript. HTML5 also has built in support for multimedia through <audio>
and <video>
tags. Multimedia can also be manipulated and analyzed through new API calls available in JavaScript. There are also a host of JavaScript libraries like RaphaelJS for creation of interactive vector graphics.
您正在寻找的答案很可能是 HTML5 堆栈。这允许通过 Canvas、CSS3 转换和 JavaScript 对文本和多媒体进行丰富的动画和操作。HTML5 还内置了对多媒体的支持<audio>
和<video>
标签。还可以通过 JavaScript 中提供的新 API 调用来操作和分析多媒体。还有许多 JavaScript 库,如 RaphaelJS,用于创建交互式矢量图形。
Since you are interested in creating multimedia presentations I would recommend checking out HTML5Wow which is essentially a presentation on the capabilities of HTML5, made with HTML5.
由于您对创建多媒体演示感兴趣,我建议您查看 HTML5Wow,它本质上是关于 HTML5 功能的演示,是用 HTML5 制作的。
http://www.htmlfivewow.com/slide1
http://www.htmlfivewow.com/slide1
There is also capability for 3D animation through CSS 3D transforms, and 3D rendering through WebGL. Check out Google Chrome Experiments for some intense HTML5 demos using WebGL and other HTML5 technologies.
还可以通过 CSS 3D 转换实现 3D 动画,通过 WebGL 实现 3D 渲染。查看 Google Chrome Experiment,了解一些使用 WebGL 和其他 HTML5 技术的 HTML5 演示。
http://www.chromeexperiments.com/
http://www.chromeexperiments.com/
There are also some great demos on HTML5's capabilities by Mr. Doob.
Doob 先生还提供了一些关于 HTML5 功能的精彩演示。
Even Adobe acknowledges that HTML5 is the future. They have invested a lot of resources in creating HTML5 manipulation tools, and modifying existing software like DreamWeaver to support HTML5. Take a look at Adobe's new "Edge" software.
甚至 Adobe 也承认 HTML5 是未来。他们投入了大量资源来创建 HTML5 操作工具,并修改 DreamWeaver 等现有软件以支持 HTML5。看看 Adobe 的新“Edge”软件。
http://labs.adobe.com/technologies/edge/
http://labs.adobe.com/technologies/edge/
In terms of portability, Google Chrome, Safari, Firefox, Opera, and IE9+ have good support for HTML5. It is also already built into Android, Blackberry, iPad, iPhone, and Windows Phone devices. HTML5 will also have a prominent role in application development on the Windows 8 platform.
在可移植性方面,Google Chrome、Safari、Firefox、Opera 和 IE9+ 对 HTML5 有很好的支持。它也已经内置到 Android、黑莓、iPad、iPhone 和 Windows Phone 设备中。HTML5 还将在 Windows 8 平台上的应用程序开发中发挥重要作用。
回答by Pablo Santa Cruz
You can take a look at Silverlight, from Microsoft.
你可以看看微软的 Silverlight。
回答by Sandeep
Silverlight i doubt will work on ipads and some mobile devices. If we talk about alternative to flash then HTML5 you can look as and HTML5 with canvas tag and good javascript we can make good html angry bird is a great example of that. if you are looking for alternative of flash video then ogg and mp4 is the alternative of the flash. Still development in browsers are going on so we will have more option in future with HTML 5.
Silverlight 我怀疑是否适用于 ipad 和某些移动设备。如果我们谈论 Flash 的替代品,那么 HTML5 你可以看起来和 HTML5 与画布标签和好的 javascript 我们可以制作好的 html 愤怒的小鸟就是一个很好的例子。如果您正在寻找 Flash 视频的替代品,那么 ogg 和 mp4 是 Flash 的替代品。浏览器的开发仍在进行中,因此我们将来会为 HTML 5 提供更多选择。
Solution come from garsinfotech.com labs.
解决方案来自 garsinfotech.com 实验室。
回答by SecurityMatt
HTML5 is the best replacement, if for no other reason than the fact that HTML5 will work on an IPhone (flash was famously banned by Steve Jobs) and the fact that flash won't work on IE10 in Metro-mode on Windows8 either (and nor will Silverlight for that matter).
HTML5 是最好的替代品,如果没有其他原因,除了 HTML5 可以在 iPhone 上运行(flash 被史蒂夫乔布斯著名禁止)以及 flash 不能在 Windows8 上的 Metro 模式下在 IE10 上运行的事实(和Silverlight 也不会这样做)。
If you want to be writing modern websites, getting to grips with HTML5 sooner rather is likely to pay off in the long run.
如果您想编写现代网站,从长远来看,尽早掌握 HTML5 可能会带来回报。
回答by Robert Kajic
HTML5, CSS3 and javascript are definitively comparable with Flash (Comparison of HTML5 and Flash) but Flash is still more widely supported. A notable exception to this is iOS where Flash is not supported at all.
HTML5、CSS3 和 javascript 绝对可以与 Flash 相媲美(HTML5 和 Flash 的比较),但 Flash 的支持仍然更广泛。一个值得注意的例外是 iOS,它根本不支持 Flash。