The Audio plays audio files in a web page.
The user can control audio playing in the web pages as well as controlling audio volume and loading audio files.
The user can control audio playing in the web pages as well as controlling audio volume and loading audio files.
Type
- uiplugin
Property Summary
- autoplay
- Automatically plays audio.
- class
- Same as the class property in HTML.
- controls
- Displays the replaying tool provided by the browser.
- id
- Component ID
- loop
- Repeats audio playing.
- muted
- Mutes audio.
- preload
- Sets buffering of the audio data.
Event Summary
Method Summary
Property Detail
- autoplay
-
Automatically plays audio.
- class
-
Same as the class property in HTML.
The class defined in the CSS file or style block can be applied. Multiple classes can be defined with being divided by blank space.
WebSquare5 Engine applies different classes to different components. By defining a common class, the common class can be applied to multiple components. - controls
-
Displays the replaying tool provided by the browser.
- id
-
Component ID
The component ID is allocated as a global object. The script can access each object through the component ID. - loop
-
Repeats audio playing.
- muted
-
Mutes audio.
- preload
-
Sets buffering of the audio data.