HtmlAudioElement Class

https://html.spec.whatwg.org/multipage/media.html#htmlaudioelement

public sealed class HtmlAudioElement : HtmlMediaElement
Inheritance
HtmlMediaElement HtmlAudioElement

Methods

NameDescription
Create(Document, string?)Creates an audio element whose preload attribute is "auto" (https://html.spec.whatwg.org/multipage/media.html#dom-audio).

Create(Document, string?)

EmbeddedContent.cs

Creates an audio element whose preload attribute is "auto" (https://html.spec.whatwg.org/multipage/media.html#dom-audio).

public static HtmlAudioElement Create(Document document, string? src = null)

Parameters

document Document
The document of the element (the associated document of the current global object).
src string?
The value of the src attribute, or null.

Returns

HtmlAudioElement The new element.

See also