HTML5, this most popular word on the Internet currently affects the hearts of countless manufacturers and users. Although the HTML5 specification has not yet been fully determined, major browser manufacturers and video service providers have begun to seize HTML5 to seize market opportunities and build momentum for themselves. Both Google, Mozilla and Apple seem to be preparing to use HTML5 as the main means of next-generation online video playback, and their common goal seems to be to kill the video player that has been monopolized by Flash in the past (with Microsoft With the emergence of silverlit (the advantages of Flash have gradually faded), what are the shortcomings of HTML5 VS Flash? Let's take a look together.
Youtube, the largest video site in the world, has been actively promoting the Flash-free reform of the website recently. They even launched an HTML5 player for trial. However, earlier this week, Youtube expressed its support for HTML5 playback. some concerns about the device.
Currently all browser manufacturers plan to transform to the HTML5 standard later this year, including Microsoft's IE9. Google's Android mobile platform and Microsoft's Windows Phone7 platform Flash player will continue to be supported. At the same time, although Apple's Safari5 is compatible with Flash, the version of the browser on iPhone/iPod/iPad will not support Flash player.
However, Youtube has expressed some concerns at this time about the new HTML5 player that will replace the traditional Flash player. First of all, although they all belong to the HTML5 standard, the encoding technology used by various browsers when playing videos using the HTML5 standard may not be the same. For websites like Youtube with a huge number of videos, the ideal situation is to control the content of these videos as much as possible. The type of encoder used, otherwise it will be difficult to do unified processing.
Judging from the current situation, Google, Opera and Mozilla support the WebM VP8 video encoder engine led by Google. VP8 is an open source encoder engine. Microsoft and Apple are supporters of commercial H.264 encoders, but Microsoft's IE9 allows users to freely choose to install the WebM engine.
Before various browser manufacturers have yet to agree on the format of the video encoder, Youtube stated that it will continue to use the existing H.264 format, which they have been using since 2007. .
Not only the encoder, there are also some problems in the performance of the HTML5 player when playing video streams and the utilization of system resources. When playing real-time videos, whether it can fully control the system buffering and video graphics Quality is very important to player performance. In addition, DRM piracy protection technology is also one of the headaches for Youtube. It is expected that they are likely to provide services similar to online movie rentals. This service may only allow some authorized users to watch, and Users do not have the right to copy these videos and distribute them online.
Anyone who has used an HTML5 player knows that using this player requires relatively large changes to the web page. In addition, when the HTML5 player is playing a video, if the user pulls the play bar to jump to the next part of the video, the player will always have a delay of 1-2 seconds, while the Flash player generally does not have such problems.
The following picture is a comparison of two pictures when playing videos in Chrome6.0.447.0 browser + Wiondows7 64-bit ultimate operating system running HTML5 video player and Flash10.1.53.64 player respectively. From the perspective of video loading waiting time and video quality, Flash has certain advantages.
Comparison between html5 and flash
Thirdly, the Youtube website also has the function of directly embedding external videos, while HTML5’s performance in this regard is average. Not as good as Flash.
Finally, the HTML5 player does not support the camera/microphone, but the Flash player of the Youtube website can support the function of using the player to directly record the video with the camera/microphone. Without Flash, this is very difficult. Did it.
It can be seen that although many media and manufacturers have almost promoted HTML5 to the sky, from the perspective of practical application, HTML5 player actually still has many areas that need further improvement, and if it wants to replace Flash player, it is currently status, there is still a long way to go.
The above is the detailed content of A detailed introduction to the comparison between HTML5 and Flash. For more information, please follow other related articles on the PHP Chinese website!

H5 and HTML5 are different concepts: HTML5 is a version of HTML, containing new elements and APIs; H5 is a mobile application development framework based on HTML5. HTML5 parses and renders code through the browser, while H5 applications need to run containers and interact with native code through JavaScript.

Key elements of HTML5 include,,,,,, etc., which are used to build modern web pages. 1. Define the head content, 2. Used to navigate the link, 3. Represent the content of independent articles, 4. Organize the page content, 5. Display the sidebar content, 6. Define the footer, these elements enhance the structure and functionality of the web page.

There is no difference between HTML5 and H5, which is the abbreviation of HTML5. 1.HTML5 is the fifth version of HTML, which enhances the multimedia and interactive functions of web pages. 2.H5 is often used to refer to HTML5-based mobile web pages or applications, and is suitable for various mobile devices.

HTML5 is the latest version of the Hypertext Markup Language, standardized by W3C. HTML5 introduces new semantic tags, multimedia support and form enhancements, improving web structure, user experience and SEO effects. HTML5 introduces new semantic tags, such as, ,, etc., to make the web page structure clearer and the SEO effect better. HTML5 supports multimedia elements and no third-party plug-ins are required, improving user experience and loading speed. HTML5 enhances form functions and introduces new input types such as, etc., which improves user experience and form verification efficiency.

How to write clean and efficient HTML5 code? The answer is to avoid common mistakes by semanticizing tags, structured code, performance optimization and avoiding common mistakes. 1. Use semantic tags such as, etc. to improve code readability and SEO effect. 2. Keep the code structured and readable, using appropriate indentation and comments. 3. Optimize performance by reducing unnecessary tags, using CDN and compressing code. 4. Avoid common mistakes, such as the tag not closed, and ensure the validity of the code.

H5 improves web user experience with multimedia support, offline storage and performance optimization. 1) Multimedia support: H5 and elements simplify development and improve user experience. 2) Offline storage: WebStorage and IndexedDB allow offline use to improve the experience. 3) Performance optimization: WebWorkers and elements optimize performance to reduce bandwidth consumption.

HTML5 code consists of tags, elements and attributes: 1. The tag defines the content type and is surrounded by angle brackets, such as. 2. Elements are composed of start tags, contents and end tags, such as contents. 3. Attributes define key-value pairs in the start tag, enhance functions, such as. These are the basic units for building web structure.

HTML5 is a key technology for building modern web pages, providing many new elements and features. 1. HTML5 introduces semantic elements such as, , etc., which enhances web page structure and SEO. 2. Support multimedia elements and embed media without plug-ins. 3. Forms enhance new input types and verification properties, simplifying the verification process. 4. Offer offline and local storage functions to improve web page performance and user experience.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Notepad++7.3.1
Easy-to-use and free code editor

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment