audio constructor
const
audio(})
The <audio> HTML element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element: the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.
Implementation
const audio(
this.children, {
this.autoplay = false,
this.controls = false,
this.crossOrigin,
this.loop = false,
this.muted = false,
this.preload,
this.src,
this.id,
this.classes,
this.styles,
this.attributes,
this.events,
super.key,
});