New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI MediaPlayer component

Definition

Constructors

Initializes a new instance of the MediaPlayer class.

C#
public MediaPlayer(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

If set to true, the widget will start playing the video or videos after initializing.Note Some browser do not allow autoplay and will block this feature. A common solution is to mute the video or disable the browser's autoplay policy.

C#
public bool? AutoPlay { get; set; }

If set to true, the widget will start playing the video or videos after initializing.

C#
public bool? AutoRepeat { get; set; }

If set to false, the user will be prevented from seeking the video forward.

C#
public bool? ForwardSeek { get; set; }

If set to true, the widget will enter fullscreen mode.

C#
public bool? FullScreen { get; set; }

Media member.

C#
public MediaPlayerMedia Media { get; set; }

The object which holds the localization strings.

C#
public MediaPlayerMessagesSettings Messages { get; }

If set to true, the video will be played without sound.

C#
public bool? Mute { get; set; }

If set to true, the option enables the keyboard navigation for the widget.

C#
public bool? Navigatable { get; set; }

A value between 0 and 100 that specifies the volume of the video.

C#
public double? Volume { get; set; }

Methods

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML content.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

The text writer.

Overrides: WidgetBase.WriteHtml(TextWriter)

WriteInitializationScript method.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteInitializationScript(TextWriter)