Английская Википедия:Comparison of HTML5 and Flash

Материал из Онлайн справочника
Перейти к навигацииПерейти к поиску

Шаблон:Short description

Шаблон:Update

Modern HTML5 has feature-parity with the now-obsolete Adobe Flash.[1] Both include features for playing audio and video within web pages. Flash was specifically built to integrate vector graphics and light games in a web page, features that HTML5 also supports.

On December 31, 2020, Adobe ended support of Flash.

"HTML5" in this article sometimes refers not only to the HTML5 specification, which does not itself define ways to do animation and interactivity within web pages,[2] but to HTML5 and related standards like SVG, JavaScript and CSS 3. Animation via JavaScript is also possible with HTML 4.

Comparison table

The table below compares the features of the Flash platform, the HTML5 specification and the features implemented in modern web browsers.

HTML5 standard HTML web browser features Adobe Flash/AIR features
Date started Work began in 2003
Working Draft as of 2011[3]
Шаблон:N/a Work began in 1996
Version 1 released in 1997
Desktop operating systems Шаблон:N/a Шаблон:Yes Шаблон:Yes
Mobile operating systems Шаблон:N/a Шаблон:Yes Шаблон:Terminated
Video game consoles Шаблон:N/a Шаблон:Yes Шаблон:Terminated
Device support Шаблон:N/a colspan="2" Шаблон:Yes
Market penetration Шаблон:N/a Шаблон:Depends[4] Шаблон:Terminated
Browser support Шаблон:N/a Шаблон:Yes Шаблон:Depends
Vector graphics formats Шаблон:N/a Шаблон:Yes Шаблон:Yes
Bitmap effects Шаблон:Yes Шаблон:Yes Шаблон:Yes, applied to text or graphics (e.g. Glow, Drop Shadow, Bevel)[5]
Vector text display Шаблон:Yes Шаблон:Yes Шаблон:Yes, with Saffron Type System
Font support Шаблон:N/a Шаблон:Yes Шаблон:Yes[6]
Text anti-aliasing Шаблон:N/a Шаблон:Yes, implemented in most browsers, for system and custom fonts Шаблон:Yes, in most casesШаблон:Efn
Text tab stops Шаблон:No Шаблон:Depends Шаблон:Yes, with Text Layout Framework
Liquid text layout Шаблон:Yes Шаблон:Yes, via "div" tag and CSS styling Шаблон:Depends
Tabular data Шаблон:Yes Шаблон:Yes, via "table" tag Шаблон:Depends
Linked text framesШаблон:Efn Шаблон:Depends Шаблон:Depends[7] Шаблон:Yes, with Text Layout Framework[8]
Programming languages Шаблон:Depends Шаблон:Yes Шаблон:Yes
C++ support Шаблон:Yes Шаблон:Yes Шаблон:Yes
Code delivery format Plaintext Plaintext JavaScript with limited obfuscation, WebAssembly bytecode, GLSL for GPUs, in Canvas elements Compiled bytecode, can be obfuscated
Data formats Шаблон:Depends Шаблон:Yes[9] Шаблон:Yes[10]
Data compression Шаблон:No Шаблон:Yes Шаблон:Yes
Image formats Шаблон:Depends Шаблон:Yes[note 1][11] Шаблон:Yes[12][13]
Video formats Шаблон:Depends Шаблон:Yes Шаблон:Yes[14]
Streaming video Шаблон:Yes[15] Шаблон:Yes[16] Шаблон:Yes
Audio formats Шаблон:Depends Шаблон:Yes Шаблон:Yes
Fullscreen support Шаблон:Yes[17] Шаблон:Yes Шаблон:Yes, with warning displayed
Encryption DRM Шаблон:Depends Шаблон:Depends Шаблон:Depends
File system access Шаблон:Depends Шаблон:Yes Шаблон:Yes
Bitmap manipulation Шаблон:Depends Шаблон:Yes Шаблон:Yes, via BitmapData class[18]
Binary manipulation Шаблон:Yes Шаблон:Yes, via JavaScript Typed Arrays[19] Шаблон:Yes, via ByteArray class[20]
Large binary data Шаблон:No Шаблон:Yes Шаблон:Yes, embedded or streaming binary data[21]
Offline storage Шаблон:Depends Шаблон:Yes, via Web storage, HTTP cookie, or Indexed DB to store binary, XML or JSON data[22] Шаблон:Yes, via Local Shared Objects to store AMF-formatted data
Metadata Шаблон:Yes Шаблон:Yes Шаблон:Yes

Notes

Шаблон:Notelist

Comparison

Software support

Flash

Originally, web browsers could not render Flash media themselves, and required the proprietary freeware plugin Adobe Flash Player. Until 2008, there was no official specification by which to create an alternative player. Alternative players were developed before 2008, but they supported Flash to a lesser degree than the official one.[23] Flash support is built in to Google Chrome,[24][25] Internet Explorer 10 (and later),[26][27] and Microsoft Edge.[28]

The last version of the Adobe Flash Player ran on Microsoft Windows, Apple macOS, RIM, QNX and Google TV.

Earlier versions ran on Android 2.2-4.0.x (Flash was released for 4.0, but Adobe discontinued support for Android 4.1 and higher.[29]) (Flash 11.2), Linux (Flash 11.2, except for Pepper Flash which is maintained and distributed by Google, not Adobe), PlayStation 3 (Flash 9), PSP (Flash 6). Adobe Flash Lite runs on Wii, Symbian, Maemo Linux, Windows Mobile, and Chumby.

Apple never allowed Flash to run on iOS, the operating system which runs on iPad, iPhone, iPod Touch and Apple TV.[30] Apple officially dropped support for Adobe Flash from the macOS version of Safari 14 released on September 17, 2020 for macOS 10.14 Mojave & macOS 10.15 Catalina.

In February 2012, Adobe announced it would discontinue development of Flash Player on Linux for all browsers, except Google Chrome, by dropping support for NPAPI and using only Chrome's PPAPI.[31][32] In August 2016, Adobe announced that, beginning with version 24, it would resume offering of Flash Player for Linux for other browsers.[33] Adobe stopped traditional support for the Flash platform in 2020 and both Firefox and Google Chrome phased out support of Flash.[34]

HTML5

Almost all web browsers support HTML and other Web standards to various degree. Adobe released a tool that converts Flash to HTML5,[35] and in June 2011, Google released an experimental tool that does the same.[36][37]

Шаблон:As of, versions of browsers such as Chrome, Firefox, Internet Explorer, Opera, and Safari implement HTML5 to a considerable degree. However, some portions of the HTML5 specification were still being implemented by browser makers.

As of January 2015, YouTube defaults to HTML5 players to better support more devices. HTML5 needs less processing power making it run faster on all browsers. The multimedia integration with HTML5 is quite easy and creates better support for live video streaming on mobile devices also.[38]

Vendor neutrality

Until 2008, the use of Flash was covered by restrictive licenses. The conditions prohibited use of the specification to develop any software (including players) which could render or read (and thus convert) SWF files, and required the output SWF files to be compatible with Adobe's players.[39]

In 2008, restrictions on use of the SWF and FLV/F4V specifications were dropped, and some specifications were released.[40] However, the "SWF File Format Specification Version 10" allegedly did not contain all the needed information, did not contain much information that hadn't been previously known by the community,[41] and itself could not be copied, printed out in more than one copy, distributed, resold or translated, without written approval of Adobe Systems Incorporated.[42]

Flash was not an open standard. It was controlled by one firm, Adobe Systems. In contrast, HTML5 is controlled mostly by a committee, the Web Hypertext Application Technology Working Group (WHATWG).[30]

Various people have praised Flash over the years for rendering consistently across platforms. Constructing sites in Flash was a way to prevent code forking, whereby different versions of a site are created for different browsers.[43][44]

Speaking at 'Adobe Max' in 2011, Itai Asseo likewise said that, unlike HTML5, Flash offers a way to develop applications that work across platforms. HTML5, he said, is currently implemented differently (if at all) by different browsers. Although the Flash browser plugin is not supported on the Apple iPhone OS, Flash applications can be exported to Adobe AIR, which runs on that operating system as a native application. In the same talk, Mr. Asseo lamented the return to another browser war (as seen in the late 1990s). If Flash falls out of favor, he said, web developers will either have to develop many different versions of their web sites and native applications to take into account different HTML5 implementations, deny access to browsers that do not support their version of HTML, or dramatically reduce the functionality of their sites in order to deliver content to the least-advanced browser.[45]

Authoring

Constructing Flash websites using Adobe tools is relatively easier than with integrated development environments for CSS, HTML, and JavaScript;[46] however, many of Adobe's tools are expensive and proprietary software.[46]

In 2011 Adobe released a Flash-to-HTML5 conversion tool for existing content[47]

Because HTML5 is an open format, tools like those for Flash can be built for it, too. Applications like Hype[48] and Adobe Edge are already on the market.

Performance

Шаблон:See also

Flash had a better performance than HTML according to a comparison of Flash with HTML in 2010 which listed Flash as being faster than the other technologies, when used for non-video animations, although they are catching up.[49][50]

Some users, more so those on macOS and Linux, complained about the relatively high CPU usage of Flash for video playback.[51]Шаблон:Unreliable source? This was partially because the Flash plugin did not use the GPU to render video. Adobe has responded to some of those criticisms in the 10.1 and 10.2 releases of the Flash plugin by offloading H.264 video decoding to dedicated hardware and by introducing a new video API called Stage Video.[52]Шаблон:Unreliable source? The use of the newer ActionScript 3.0 inside Flash movies instead of the older ActionScript 2.0 improves code execution speed by a factor of around 10.[53] The software routines written by developers can also affect the performance of applications built in Flash, reasons that would affect HTML5 animations as well.[54]

DRM

Flash included DRM support. The main HTML 5 standard does not include any digital rights management functionality directly, instead the Encrypted Media Extensions (EME) specification describes application interface (API) for communication channel between web browsers and digital rights management (DRM) agent software.

Historically, before EME introduction implementations could support DRM, for example in codecs.[55] The proposal to add DRM features to HTML5 itself has been criticized by those who consider openness and vendor-neutrality (both server- and client-side) one of the most important properties of HTML, because DRM is incompatible with free software,[56][57] and in the proposed form potentially not more vendor-neutral than proprietary plug-ins like Flash.[58][59]

Accessibility

Both Flash and HTML text can be read by screen readers. However, special care must be taken to ensure Flash movies are read correctly. For example, if a Flash movie is set to repeat indefinitely, this can cause a screen reader to repeat the content endlessly. Selecting the "Make object accessible" check box in Adobe Flash Professional would create a text-only version of the object for screen readers and hide any motion from the screen reader.[60] Since Flash content was usually placed on a single webpage, it appeared as a single entry in search engine result pages, unless developers utilized deep linking to provide multiple links within Flash websites and web applications. User interface widgets in Flash objects would not always behave like their host native counterparts. Keyboard, mouse and other accessibility shortcuts may not have worked unless the webpage developer explicitly added support for it.

Search engines

Both Flash content and HTML content could be indexed by Google, Yahoo!, and Bing, although bi-directional text (e.g. Arabic, Hebrew) is not supported by Google.[61][62] Yahoo! added support for indexing Flash sites in 2008, although Google had been able to index them for several years before that. Bing added support for Flash sites in 2010.

iOS devices

Шаблон:Main

Apple promoted HTML5 as an alternative to Flash for video and other content on the iOS, citing performance and security reasons for not allowing Adobe Flash Player to be installed on iOS devices, including the iPhone, iPod Touch and iPad.[30] Flash applications could be packaged as native iOS applications via the Adobe Integrated Runtime and the iOS Packager.[63]

See also

Шаблон:Portal

Notes

Шаблон:Reflist

References

Шаблон:Reflist

External links

Шаблон:Adobe Flash

  1. Шаблон:Cite web
  2. Шаблон:Cite video
  3. Шаблон:Cite web
  4. Шаблон:Cite web
  5. Шаблон:Cite web
  6. Шаблон:Cite web
  7. Шаблон:Cite web
  8. Шаблон:Cite web
  9. Шаблон:Cite web
  10. Шаблон:Cite web
  11. Ошибка цитирования Неверный тег <ref>; для сносок :w3.org:svg standard не указан текст
  12. Шаблон:Cite web
  13. Шаблон:Cite book
  14. Шаблон:Cite web
  15. Шаблон:Cite web
  16. Шаблон:Cite web
  17. Шаблон:Cite web
  18. Шаблон:Cite web
  19. Шаблон:Cite web
  20. Шаблон:Cite web
  21. Шаблон:Cite book
  22. Шаблон:Cite web
  23. Шаблон:Cite web
  24. Шаблон:Cite web
  25. Шаблон:Cite web
  26. Шаблон:Cite web
  27. Шаблон:Cite web
  28. Шаблон:Cite web
  29. Шаблон:Cite journal
  30. 30,0 30,1 30,2 Шаблон:Cite web
  31. Шаблон:Cite web
  32. Шаблон:Cite web
  33. Шаблон:Cite web
  34. Шаблон:Cite web
  35. Шаблон:Cite web
  36. Шаблон:Cite web
  37. Шаблон:Cite web
  38. Шаблон:Cite web
  39. Шаблон:Cite web
  40. Шаблон:Cite web
  41. Шаблон:Cite web
  42. Шаблон:Cite web
  43. Шаблон:Cite book
  44. Шаблон:Cite book
  45. Шаблон:Cite web
  46. 46,0 46,1 Шаблон:Cite magazine
  47. Шаблон:Cite web
  48. Шаблон:Cite web
  49. Шаблон:Cite web
  50. Шаблон:Cite web
  51. "Flash – CPU Usage – FPS – Frame Rate." Online posting. 10 December 2008. Reader discussions, Adobe Support Forums. 10 December 2010
  52. Шаблон:Cite web
  53. Шаблон:Cite web
  54. Шаблон:Cite conference
  55. Шаблон:Cite web
  56. Шаблон:Cite web
  57. Шаблон:Cite web
  58. Шаблон:Cite web
  59. Шаблон:Cite web
  60. Шаблон:Cite web
  61. Шаблон:Cite web
  62. Шаблон:Cite web
  63. Шаблон:Cite web


Ошибка цитирования Для существующих тегов <ref> группы «note» не найдено соответствующего тега <references group="note"/>