Skip to main content

igVideoPlayer

Namespace: Wisej.Web.Ext.Ignite

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

The igVideoPlayer is a jQuery UI widget that displays HTML5 video displaying a consistent user interface across browsers.

public class igVideoPlayer : igBase

Constructors​

Instance member igVideoPlayer()​

Constructs a new instance of the igVideoPlayer class.

Example:

The following example creates a video player and sets the video to play through the Options object.

var player = new igVideoPlayer();
player.Options.sources = new[] { "https://myserver/media/introduction.mp4" };
player.Options.title = "Introduction";
player.Size = new Size(640, 360);
this.Controls.Add(player);

Instance member igVideoPlayer(options)​

Constructs a new instance of the igVideoPlayer class using the specified options.

NameTypeDescription
optionsObjectInitial set of options passed to the igVideoPlayer widget: an anonymous object, a JSON string or a dynamic object.

Example:

The following example creates a video player with a poster image and controls the playback from the server.

var player = new igVideoPlayer(new
{
sources = new[] { "https://myserver/media/introduction.mp4" },
posterUrl = "https://myserver/media/introduction.png",
title = "Introduction",
autoplay = false
});
player.Size = new Size(640, 360);
this.Controls.Add(player);

// later, i.e. in the click handlers of two buttons.
player.Instance.play();
player.Instance.pause();

Implements​