In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "what are the attributes of html5 audio audio and video video". In daily operation, I believe many people have doubts about the attributes of html5 audio audio and video video. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the questions of "what are the attributes of html5 audio audio and video video?" Next, please follow the editor to study!
Some new features have emerged in html5:
Canvas elements Video video and Audio audio elements
Support for local offline storage (localStorage,sessionStorage)
Add special content elements: article, footer, header, nav, section
Add form controls: calendar, date, time, email, url, search.
Look at video and audio today: the standard method for video is specified in html5: video
Your browser still does not support it. We can also set multiple source. The browser will select the first recognizable video for us to play, such as: your browser does not support oh video attribute:
Attribute value description
If this attribute appears in autoplay autoplay, the video will play as soon as it is ready.
Controls controls if this property appears, the control is displayed to the user, such as a play button.
Height pixels set the height of the video player.
If this attribute appears in loop loop, the playback starts again after the media file has finished playing.
Preload preload
If this property appears, the video is loaded when the page is loaded and ready to play.
If "autoplay" is used, this attribute is ignored.
Src url video address the URL of the video to be played.
Width pixels set the width of the video player.
Autobuffer
Autobuffer
(automatic buffering)
When a web page is displayed, the binary attribute indicates whether the content is buffered automatically by the user agent (browser) or by the user using the relevant API for content buffering
Poster
Url picture address
When the video is unresponsive or insufficient buffering, the attribute value is linked to an image. The image will be displayed in a certain proportion.
The audio standard in HTML5 is defined as the audio element, and the audio element can play sound files or audio streams.
Audio format is similar to video: direct line multiple source:
The copy code is as follows:
Your browser doesn't support it yet.
Its attributes have fewer height, width, and poster than video. Multimedia is becoming more and more important in our development, and these video and audio have emerged in html5.
At this point, the study on "what are the attributes of html5 audio audio and video video" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.