kendoMediaPlayer
Namespace: Wisej.Web.Ext.Kendo
Assembly: Wisej.Web.Ext.Kendo (4.1.0.0)
The MediaPlayer plays video files from static sources or streams online YouTube videos and enriches your website with dynamic content in a user-friendly interface.
- C#
- VB.NET
public class kendoMediaPlayer : kendoBase
Public Class kendoMediaPlayer
Inherits kendoBase
Constructors
kendoMediaPlayer()
Constructs a new instance of the kendoMediaPlayer class.
Example:
The following example creates a media player and sets the video to play through the Options property.
var player = new kendoMediaPlayer();
player.Options.media = new { title = "Product tour", source = "Videos/tour.mp4" };
player.Options.autoPlay = true;
player.Dock = DockStyle.Fill;
this.Controls.Add(player);
kendoMediaPlayer(options)
Constructs a new instance of the kendoMediaPlayer class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a media player that waits for the user to start the video and then pauses it from the server by calling the pause function of the Kendo UI widget.
var player = new kendoMediaPlayer(new
{
autoPlay = false,
navigatable = true,
media = new { title = "Product tour", source = "Videos/tour.mp4" }
});
player.Dock = DockStyle.Fill;
this.Controls.Add(player);
// later, for example in the click handler of a button.
player.Instance.pause();