In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "what are the new features of HTLM". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn what are the new features of HTLM.
1.Flash was replaced by HTML5
Flash drawing-Canvas/SVG drawing
Flash Animation-Canvas/SVG drawing + timer
Flash Audio and Video-- Video/Audio tag
Flash storage-WebStorage
New feature of 2.HTML5-Video playback
The VIDEO tag provided by H5 defaults to a 300 '150 inline-block. How to use it:
Your browser does not support VIDEO tags
Your browser does not support VIDEO tags
Common attributes of Video tags / objects:
Autoplay: false, whether to play it automatically.
Controls: false, whether to display the playback control
CurrentTime: 3.293401, which second is the current playback?
Duration: 60.041667, total duration
Loop: false, whether to play it in a loop
Paused: whether it is currently paused or not
PlaybackRate: 1 playback rate, which can be 0.x, 2,3...
Poster: play the movie poster shown before the first frame
Muted: false, whether to mute
Volume: 1, Video Volume (0,1)-object attribute
Preload: how to preload video content. There are three optional values:
Auto: preload video metadata and cache certain playback content
Metadata: preload only video metadata (width, height, duration, first frame)
None: do not preload anything
Common methods for Video tags / objects:
Play () lets the video start playing.
Pause () pauses the video playback
Common events for Video tags / objects:
Onplay: triggered when the video starts to play
Onpause: triggered when the video is paused
New feature of 3.HTML5-Audio playback
The VIDEO tag provided by H5 defaults to a 300 '150 inline-block. How to use it:
Your browser does not support AUDIO tags
Your browser does not support AUDIO tags
Common attributes of Audio tags / objects:
Autoplay: false, whether to play it automatically.
Controls: false, whether to display the playback control
CurrentTime: 3.293401, which second is the current playback?
Duration: 60.041667, total duration
Loop: false, whether to play it in a loop
Paused: whether it is currently paused or not
PlaybackRate: 1 playback rate, which can be 0.x, 2,3...
Muted: false, whether to mute
Volume: 1, Audio Volume (0,1)-object property
Preload: how to preload audio content. There are three optional values:
Auto: preload audio metadata and cache certain playback content
Metadata: preload only audio metadata (duration)
None: do not preload anything
Common methods for Audio tags / objects:
Play () lets the audio start playing
Pause () pause audio playback
Common events for Audio tags / objects:
Onplay: triggered when audio starts to play
Onpause: triggered when the audio is paused
At this point, I believe you have a deeper understanding of "what are the new features of HTLM". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.