VIDEO Element

The VIDEO element provides a way to manipulate a video window in a skin, using the following attributes and events. A predefined VIDEO element is also provided for convenience.

The VIDEO element supports the following attributes.

Attribute Description
backgroundColor Specifies or retrieves the background color of the Video control.
cursor Specifies or retrieves the cursor value that is used when the mouse is over a clickable area of the video.
fullScreen Specifies or retrieves a value indicating whether the video is displayed in full-screen mode. Can only be set at run time.
maintainAspectRatio Specifies or retrieves a value indicating whether the video will maintain the aspect ratio when trying to fit within the width and height defined for the control.
shrinkToFit Specifies or retrieves a value indicating whether the video will shrink to the width and height defined for the Video control.
stretchToFit Specifies or retrieves a value indicating whether the video will stretch itself to the width and height defined for the Video control.
toolTip Specifies or retrieves the ToolTip text for the video window.
windowless Specifies or retrieves a value indicating whether the Video control will be windowed or windowless; that is, whether the entire rectangle of the control will be visible at all times or can be clipped. Can only be set at design time.
zoom Specifies the percentage by which to scale the video.

 

The VIDEO element can implement the following event handlers.

Event handler Description
onvideoend Handles an event that occurs when the video stops rendering and is unloaded.
onvideostart Handles an event that occurs when the video is loaded and begins to render.

 

The VIDEO element supports the ambient attributes and can implement the ambient event handlers, except where noted. For more information, see Ambient Attributes and Ambient Event Handlers.

Predefined video elements are normal VIDEO elements with various common attribute settings specified by default. The following predefined video elements are available.

Predefined VIDEO Description
WMPVIDEO A VIDEO element that stretches the video when resized.

 

Skin Programming Reference