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.
- C#
- VB.NET
public class ejMediaPlayer : ejBase
Public Class ejMediaPlayer
Inherits ejBase
Constructors
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);
ejMediaPlayer(options)
Constructs a new instance of the ejMediaPlayer class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial 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);