ClassHtmlVideo
Wrapper class for a video element <video>...</video>
Definition
Namespace:ArtOfTest.WebAii.Controls.HtmlControls
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class HtmlVideo : HtmlContainerControl
Inheritance: objectControlHtmlControlHtmlContainerControlHtmlVideo
Inherited Members
Constructors
HtmlVideo(Element)
Create a new control.
Declaration
public HtmlVideo(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 video, in seconds
Ended
Gets whether the video has played through to its end
Error
Get the video element error.
Height
The height of the image element.
InError
Get whether the video element is in error state.
InitialTime
Gets the initial playback position of the video, in seconds
Loop
Whether the video will start playing from its beginning again once it reaches its end
Paused
Get the video element paused state.
Poster
URL for the image that is shown before the video begins playing
Sources
The video sources.
Declaration
public IList<HtmlSource> Sources { get; }
Property Value
Src
URL for the video file to play, if no source elements are specified for the video
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 video player to reload its source video
Declaration
public void Load()