Skip to main content

ejMediaPlayer

Namespace: Wisej.Web.Ext.Syncfusion

Assembly: Wisej.Web.Ext.Syncfusion (4.1.0.0)

MediaPlayer component is a html5 component which is used to embed a media in a web page such as web videos, YouTube and audio files.

public class ejMediaPlayer : ejBase

Constructors​

Instance member ejMediaPlayer()​

Constructs a new instance of the ejMediaPlayer class.

Example:

The following example creates the media player and sets the media to play through the options.

var player = new ejMediaPlayer();
player.Options.source = new[]
{
new { url = "Media/intro.mp4", title = "Introduction" }
};
player.Size = new Size(640, 400);
this.Controls.Add(player);

Instance member ejMediaPlayer(options)​

Constructs a new instance of the ejMediaPlayer class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a media player with a list of two videos.

var player = new ejMediaPlayer(new
{
source = new[]
{
new { url = "Media/intro.mp4", title = "Introduction" },
new { url = "Media/setup.mp4", title = "Setup" }
}
});
player.Size = new Size(640, 400);
this.Controls.Add(player);

Implements​