ClassHtmlAudio
Wrapper class for a audio element <audio>...</audio>
Definition
Namespace:ArtOfTest.WebAii.Controls.HtmlControls
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class HtmlAudio : HtmlContainerControl
Inheritance: objectControlHtmlControlHtmlContainerControlHtmlAudio
Inherited Members
Constructors
HtmlAudio(Element)
Create a new control.
Declaration
public HtmlAudio(Element element)
Parameters
element
The base element.
Properties
Autoplay
The autoplay attribute determines whether a video begins playing as soon as the page loads
Controls
The controls attribute determines whether the standard playback controls are shown to the user
CurrentTime
Gets the current playback time
Duration
Gets the duration of the audio source, in seconds
Ended
Gets whether the audio source has played through to its end
Error
Get the audio error.
InError
Check whether the audio is in error state.
InitialTime
Gets the initial playback position of the audio player, in seconds
Loop
Whether the video will start playing from its beginning again once it reaches its end
Paused
Get the audio paused state.
Sources
Get the audio sources.
Declaration
public IList<HtmlSource> Sources { get; }
Property Value
Methods
AssignElement(Element)
Assign element and initialize this control.
Declaration
public override void AssignElement(Element e)
Parameters
e
The base element.
Overrides
Load()
Cause the audio player to reload its source audio
Declaration
public void Load()