Skip to main content
Version: 3.5

Media

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Base implementation for media controls.

public class Media : Control

Properties​

Instance memberAutoPlay​

Boolean: Plays the media directly when it is loaded / the page is loaded. (Default: False)

Instance memberBorderStyle​

BorderStyle: Indicates the border style for the control. (Default: None)

Instance memberCurrentTime​

Double: Sets or returns the current playback position in the audio/video (in seconds). (Default: 0)

Instance memberLoop​

Boolean: Indicates that the media element is to seek back to the start of the media resource upon reaching the end. (Default: False)

Instance memberMuted​

Boolean: Specifies that the audio output of the video should be muted. (Default: False)

Instance memberShowControls​

Boolean: Shows or hides the native control of the video element. (Default: True)

Instance memberSourceURL​

String: Returns or sets the URL of the video file to display in the video control. (Default: null)

Instance memberVolume​

Double: Indicates the border style for the control. (Default: 0.5)

Methods​

Instance memberPause()​

Pauses the currently playing audio/video.

Instance memberPlay()​

Starts playing the audio/video.

Events​

Instance memberCurrentTimeChanged​

EventHandler Fired when the current time has been changed.

Instance memberEnded​

EventHandler Fired when the audio/video has finished playing.

Instance memberError​

EventHandler Fired when an error occurred during the loading of an audio/video.

Instance memberPaused​

EventHandler Fired when the audio/video has been paused.

Instance memberPlaying​

EventHandler Fires when the audio/video is playing after having been paused or stopped for buffering.

Instance memberVolumeChanged​

EventHandler Fired when the volume has been changed.

Instance memberWaiting​

EventHandler Fired when the video stops because it needs to buffer the next frame.

Inherited By​

NameDescription
VideoRepresents a Video control that displays a video file.
AudioRepresents a Audio control that plays an audio file.

Implements​

NameDescription
IBindableComponentBindable components implement this interface.
IDropTargetControls that support drag & drop operations implement this interface.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.