Defines the fluent API for configuring the Kendo UI MediaPlayer for ASP.NET MVC events.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class MediaPlayerEventBuilder : EventBuilder
Inheritance: objectEventBuilderMediaPlayerEventBuilder
Inherited Members
Constructors
Initializes a new instance of the MediaPlayerEventBuilder class.
public MediaPlayerEventBuilder(IDictionary<string, object> events)
The MediaPlayer event handlers.
Methods
Defines the handler of the End client-side 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 MediaPlayerEventBuilder End(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MediaPlayerEventBuilder .
Defines the handler of the End client-side 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 MediaPlayerEventBuilder End(string handler)
The name of the JavaScript function that will handle the End event.
Returns:Returns the current instance of MediaPlayerEventBuilder .
Defines the handler of the KendoKeydown client-side 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 MediaPlayerEventBuilder KendoKeydown(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MediaPlayerEventBuilder .
Defines the handler of the KendoKeydown client-side 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 MediaPlayerEventBuilder KendoKeydown(string handler)
The name of the JavaScript function that will handle the KendoKeydown event.
Returns:Returns the current instance of MediaPlayerEventBuilder .
Defines the handler of the Pause client-side 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 MediaPlayerEventBuilder Pause(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MediaPlayerEventBuilder .
Defines the handler of the Pause client-side 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 MediaPlayerEventBuilder Pause(string handler)
The name of the JavaScript function that will handle the Pause event.
Returns:Returns the current instance of MediaPlayerEventBuilder .
Defines the handler of the Play client-side 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 MediaPlayerEventBuilder Play(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MediaPlayerEventBuilder .
Defines the handler of the Play client-side 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 MediaPlayerEventBuilder Play(string handler)
The name of the JavaScript function that will handle the Play event.
Returns:Returns the current instance of MediaPlayerEventBuilder .
Defines the handler of the Ready client-side 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 MediaPlayerEventBuilder Ready(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MediaPlayerEventBuilder .
Defines the handler of the Ready client-side 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 MediaPlayerEventBuilder Ready(string handler)
The name of the JavaScript function that will handle the Ready event.
Returns:Returns the current instance of MediaPlayerEventBuilder .
Defines the handler of the TimeChange client-side 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 MediaPlayerEventBuilder TimeChange(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MediaPlayerEventBuilder .
Defines the handler of the TimeChange client-side 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 MediaPlayerEventBuilder TimeChange(string handler)
The name of the JavaScript function that will handle the TimeChange event.
Returns:Returns the current instance of MediaPlayerEventBuilder .
Defines the handler of the VolumeChange client-side 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 MediaPlayerEventBuilder VolumeChange(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of MediaPlayerEventBuilder .
Defines the handler of the VolumeChange client-side 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 MediaPlayerEventBuilder VolumeChange(string handler)
The name of the JavaScript function that will handle the VolumeChange event.
Returns:Returns the current instance of MediaPlayerEventBuilder .