MediaPlayer
Kendo UI MediaPlayer component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class MediaPlayer : WidgetBase, IHtmlAttributesContainer
Inheritance: objectWidgetBaseMediaPlayer
Implements:
Inherited Members
Constructors
Initializes a new instance of the MediaPlayer class.
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.
public bool? AutoPlay { get; set; }
If set to true, the widget will start playing the video or videos after initializing.
public bool? AutoRepeat { get; set; }
If set to false, the user will be prevented from seeking the video forward.
public bool? ForwardSeek { get; set; }
If set to true, the widget will enter fullscreen mode.
public bool? FullScreen { get; set; }
Media member.
public MediaPlayerMedia Media { get; set; }
The object which holds the localization strings.
public MediaPlayerMessagesSettings Messages { get; }
If set to true, the option enables the keyboard navigation for the widget.
public bool? Navigatable { get; set; }
Methods
Serializes the component settings to a dictionary.
public override IDictionary<string, object> Serialize()
A dictionary of settings.
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML content.
protected override void WriteHtml(TextWriter writer)
The text writer.
Overrides:
WriteInitializationScript method.
public override void WriteInitializationScript(TextWriter writer)
Overrides: