Class
HtmlAudio

Wrapper class for a audio element <audio>...</audio>

Definition

Namespace:ArtOfTest.WebAii.Controls.HtmlControls

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class HtmlAudio : HtmlContainerControl

Inheritance: objectControlHtmlControlHtmlContainerControlHtmlAudio

Inherited Members HtmlContainerControl.TextContentHtmlContainerControl.InnerTextHtmlControl.FindParentContainer<TContainerControl>()HtmlControl.ValidateTag(string)HtmlControl.ValidateControl()HtmlControl.ParseResponseValue<T>(string, T)HtmlControl.GetAttributeAsString(string)HtmlControl.InitializeMappings(MappingsCollection)HtmlControl.GetRectangle()HtmlControl.IsVisible()HtmlControl.GetStyleValue(string)HtmlControl.GetStyle(string)HtmlControl.GetComputedStyleValue(string)HtmlControl.GetComputedStyle(string)HtmlControl.Parent<TContainerControl>()HtmlControl.Capture()HtmlControl.Capture(string, string)HtmlControl.Capture(string)HtmlControl.InvokeEvent(ScriptEventType)HtmlControl.InvokeEvent(ScriptEventType, bool)HtmlControl.InvokeEvent(ScriptEvent)HtmlControl.InvokeEvent(ScriptEvent, bool)HtmlControl.AddEventListener(string, EventHandler<JavascriptEventArgs>)HtmlControl.RemoveEventListener(string, EventHandler<JavascriptEventArgs>)HtmlControl.MouseClick()HtmlControl.MouseClick(MouseClickType)HtmlControl.MouseClick(MouseClickType, int, int)HtmlControl.MouseClick(MouseClickType, Point, OffsetReference)HtmlControl.MouseClick(MouseClickType, int, int, OffsetReference)HtmlControl.MouseHover()HtmlControl.MouseHover(Point)HtmlControl.MouseHover(int, int)HtmlControl.MouseHover(int, int, OffsetReference)HtmlControl.Click()HtmlControl.Click(bool)HtmlControl.ScrollToVisible()HtmlControl.ScrollToVisible(ScrollToVisibleType)HtmlControl.ScrollToVisible(ScrollToVisibleType, Rectangle)HtmlControl.Download(bool, DownloadOption, string, int)HtmlControl.CallMethod(string)HtmlControl.CallMethod<T>(string)HtmlControl.CallMethod<T>(string, T)HtmlControl.GetValue<T>(string)HtmlControl.GetValue<T>(string, T)HtmlControl.GetValue<T>(string, bool)HtmlControl.GetValue<T>(string, bool, T)HtmlControl.SetValue<T>(string, T)HtmlControl.SetValue<T>(string, T, bool)HtmlControl.Focus()HtmlControl.DragTo(OffsetReference, Point, int, int)HtmlControl.DragTo(OffsetReference, int, int, Rectangle, OffsetReference, int, int)HtmlControl.DragTo(Point)HtmlControl.DragTo(int, int)HtmlControl.DragTo(HtmlControl)HtmlControl.DragTo(HtmlControl, OffsetReference, Point)HtmlControl.DragTo(OffsetReference, Point, HtmlControl)HtmlControl.DragTo(OffsetReference, Point, HtmlControl, OffsetReference, Point)HtmlControl.DragTo(OffsetReference, int, int, bool, HtmlControl, OffsetReference, int, int, bool)HtmlControl.DragToWindowLocation(OffsetReference, int, int, bool, OffsetReference, int, int, bool)HtmlControl.ToString()HtmlControl.AsjQueryControl()HtmlControl.GetElementByTagNameClientSideLocatorHtmlControl.GetElementByIdClientSideLocatorHtmlControl.FindHtmlControl.ClientSideLocatorHtmlControl.ScrollTopHtmlControl.ScrollLeftHtmlControl.WaitHtmlControl.IDHtmlControl.CssClassHtmlControl.AttributesHtmlControl.MappingsHtmlControl.StylesHtmlControl.EventsHtmlControl.TagNameHtmlControl.ChildNodesHtmlControl.IsActiveElementHtmlControl.IsEnabledControl.Refresh()Control.AssignFailed(Exception)Control.SetTelerikComponentsVersion(TelerikComponentsVersion?)Control.MatchControl(Element, FindParam)Control.GetFamilyElement(int, Element)Control.ThrowOnInvalidAssignmentControl.TelerikComponentsVersionControl.IsRefreshControl.BaseElementControl.OwnerBrowserControl.LocatorControl.LocatorExpression

Constructors

HtmlAudio()

Create a new control.

Declaration

cs-api-definition
public HtmlAudio()

HtmlAudio(Element)

Create a new control.

Declaration

cs-api-definition
public HtmlAudio(Element element)

Parameters

element

Element

The base element.

Properties

Autoplay

The autoplay attribute determines whether a video begins playing as soon as the page loads

Declaration

cs-api-definition
public bool Autoplay { get; set; }

Property Value

bool

Controls

The controls attribute determines whether the standard playback controls are shown to the user

Declaration

cs-api-definition
public bool Controls { get; set; }

Property Value

bool

CurrentTime

Gets the current playback time

Declaration

cs-api-definition
public double CurrentTime { get; }

Property Value

double

Duration

Gets the duration of the audio source, in seconds

Declaration

cs-api-definition
public double Duration { get; }

Property Value

double

Ended

Gets whether the audio source has played through to its end

Declaration

cs-api-definition
public bool Ended { get; }

Property Value

bool

Error

Get the audio error.

Declaration

cs-api-definition
public HtmlMediaError Error { get; }

Property Value

HtmlMediaError

InError

Check whether the audio is in error state.

Declaration

cs-api-definition
public bool InError { get; }

Property Value

bool

InitialTime

Gets the initial playback position of the audio player, in seconds

Declaration

cs-api-definition
public double InitialTime { get; }

Property Value

double

Loop

Whether the video will start playing from its beginning again once it reaches its end

Declaration

cs-api-definition
public bool Loop { get; set; }

Property Value

bool

Paused

Get the audio paused state.

Declaration

cs-api-definition
public bool Paused { get; }

Property Value

bool

Sources

Get the audio sources.

Declaration

cs-api-definition
public IList<HtmlSource> Sources { get; }

Property Value

IList<HtmlSource>

Src

URL for the video file to play, if no source elements are specified for the video

Declaration

cs-api-definition
public string Src { get; set; }

Property Value

string

Methods

AssignElement(Element)

Assign element and initialize this control.

Declaration

cs-api-definition
public override void AssignElement(Element e)

Parameters

e

Element

The base element.

Overrides HtmlContainerControl.AssignElement(Element)

Load()

Cause the audio player to reload its source audio

Declaration

cs-api-definition
public void Load()

Pause()

Pause the audio.

Declaration

cs-api-definition
public void Pause()

Play()

Play the audio.

Declaration

cs-api-definition
public void Play()