MediaPlayerTagHelper
Kendo UI MediaPlayer TagHelper MediaPlayerTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-mediaplayer")]
[RestrictChildren("media", new string[] { "messages" })]
public class MediaPlayerTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseMediaPlayerTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-mediaplayer name="mediaplayer" auto-play="true">
</kendo-mediaplayer>
Child Tags
Constructors
Initializes a new instance of the MediaPlayerTagHelper class.
public MediaPlayerTagHelper(IKendoHtmlGenerator generator)
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; }
If set to true, the option enables the keyboard navigation for the widget.
public bool? Navigatable { get; set; }
The name of the JavaScript function that will handle the end event. Fires when the media finishes playing.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnEnd { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the MediaPlayer is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnKendoKeydown { get; set; }
The name of the JavaScript function that will handle the pause event. Fires when the media is paused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnPause { get; set; }
The name of the JavaScript function that will handle the play event. Fires when the media begins playing.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnPlay { get; set; }
The name of the JavaScript function that will handle the ready event. Fires when loading is over and the widget is ready to start playing the media.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnReady { get; set; }
The name of the JavaScript function that will handle the timeChange event. Fires when the user selects a new play time.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnTimeChange { get; set; }
The name of the JavaScript function that will handle the volumeChange event. This event is fired upon changing the volume level.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnVolumeChange { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: