Skip to main content
Version: 4.1

Media

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Base implementation for media controls.

public class Media : Control

Properties​

Instance member AutoPlay​

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

Instance member BorderStyle​

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

Instance member CurrentTime​

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

Instance member Loop​

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

Instance member Muted​

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

Instance member ShowControls​

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

Instance member SourceURL​

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

For the Video control this is the URL to the video file, while for the Audio control this is the URL to the audio file.

Instance member Volume​

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

Methods​

Protected member OnCurrentTimeChanged(e)​

Fires the CurrentTimeChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnEnded(e)​

Fires the Ended event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnError(e)​

Fires the Error event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnPaused(e)​

Fires the Paused event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnPlaying(e)​

Fires the Playing event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnVolumeChanged(e)​

Fires the VolumeChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnWaiting(e)​

Fires the Waiting event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnWebEvent(e)​

Processes the event from the client.

ParameterTypeDescription
eWisejEventArgsEvent arguments.

Protected member OnWebRender(config)​

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Protected member OnWebUpdate(state)​

Updates the client component using the state information.

ParameterTypeDescription
stateObjectDynamic state object.

Instance member Pause()​

Pauses the currently playing audio/video.

Instance member Play()​

Starts playing the audio/video.

Events​

Instance member CurrentTimeChanged​

EventHandler Fired when the current time has been changed.

Instance member Ended​

EventHandler Fired when the audio/video has finished playing.

Instance member Error​

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

Instance member Paused​

EventHandler Fired when the audio/video has been paused.

Instance member Playing​

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

Instance member VolumeChanged​

EventHandler Fired when the volume has been changed.

Instance member Waiting​

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
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
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.