In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you what is the use of audio tags and audio objects in HTML, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Audio tags and audio object-.audio tags
Simple grammar
Property value description autoplay if this property appears, the audio plays as soon as it is ready. Controls if this property appears, the control is displayed to the user, such as a play button. Loop if this attribute appears, playback restarts whenever the audio ends. Preload if this attribute appears, the audio is loaded when the page is loaded and ready to play. If "autoplay" is used, this attribute is ignored. The URL of the audio to be played by srcurl. II. Audio object 1. Object property property description audioTracks returns an AudioTrackList object that represents available audio tracks. Autoplay sets or returns whether audio is played as soon as it is ready (loading is complete). Buffered returns a TimeRanges object that represents the buffered portion of the audio. Controller returns a MediaController object that represents the current media controller for the audio. Controls sets or returns whether the audio should display controls (such as play / pause, etc.). CrossOrigin sets or returns the CORS setting for audio. CurrentSrc returns the URL of the current audio. CurrentTime sets or returns the current playback position (in seconds) in the audio. DefaultMuted sets or returns whether the audio is muted by default. DefaultPlaybackRate sets or returns the default playback speed for audio. Duration returns the length of the audio in seconds. Ended returns whether the playback of the audio has ended. Error returns a MediaError object that represents the audio error status. Loop sets or returns whether the audio should be played again at the end. MediaGroup sets or returns the name of the media combination to which the audio belongs. Muted sets or returns whether to turn off sound. NetworkState returns the current network status of the audio. Paused sets or returns whether the audio is paused. PlaybackRate sets or returns the speed of audio playback. Played returns a TimeRanges object that represents the played part of the audio. Preload sets or returns the value of the preload property of the audio. ReadyState returns the current ready state of the audio. Seekable returns a TimeRanges object that represents the addressable portion of the audio. Seeking returns whether the user is currently looking in the audio. Src sets or returns the value of the src property of the audio. TextTracks returns a TextTrackList object that represents the available text tracks. Volume sets or returns the volume of the audio. two。 The object method method describes how addTextTrack () adds a new text track to the audio. CanPlayType () checks whether the browser can play the specified audio type. FastSeek () specifies the playback time in the audio player. GetStartDate () returns a new Date object that represents the current timeline offset. Load () reloads the audio element. Play () starts playing audio. Pause () pauses the currently played audio.
The above is all the content of the article "what is the use of audio tags and audio objects in HTML". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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: 226
*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.