Class
HtmlVideo

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

Definition

Namespace:ArtOfTest.WebAii.Controls.HtmlControls

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class HtmlVideo : HtmlContainerControl

Inheritance: objectControlHtmlControlHtmlContainerControlHtmlVideo

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

HtmlVideo()

Create a new control.

Declaration

cs-api-definition
public HtmlVideo()

HtmlVideo(Element)

Create a new control.

Declaration

cs-api-definition
public HtmlVideo(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 video, in seconds

Declaration

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

Property Value

double

Ended

Gets whether the video has played through to its end

Declaration

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

Property Value

bool

Error

Get the video element error.

Declaration

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

Property Value

HtmlMediaError

Height

The height of the image element.

Declaration

cs-api-definition
public int Height { get; set; }

Property Value

int

InError

Get whether the video element is in error state.

Declaration

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

Property Value

bool

InitialTime

Gets the initial playback position of the video, 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 video element paused state.

Declaration

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

Property Value

bool

Poster

URL for the image that is shown before the video begins playing

Declaration

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

Property Value

string

Sources

The video 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

Width

The video element width.

Declaration

cs-api-definition
public int Width { get; set; }

Property Value

int

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 video player to reload its source video

Declaration

cs-api-definition
public void Load()

Pause()

Pause the video.

Declaration

cs-api-definition
public void Pause()

Play()

Play the video.

Declaration

cs-api-definition
public void Play()