MediaPlayerEventBuilder
Methods
End(System.String)
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.
For more information see End event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the End event.
RETURNS
Returns the current instance of MediaPlayerEventBuilder .
Example
@(Html.Kendo().MediaPlayer()
.Name("mediaPlayer")
.Events(e => e.End("onEnd"))
)
End(System.Func)
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.
For more information see End event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of MediaPlayerEventBuilder .
Example
@(Html.Kendo().MediaPlayer()
.Name("mediaPlayer")
.Events(e => e.End(
@<text>
function(e) {
// event handling code
}
</text>
))
)
Pause(System.String)
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.
For more information see Pause event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Pause event.
RETURNS
Returns the current instance of MediaPlayerEventBuilder .
Example
@(Html.Kendo().MediaPlayer()
.Name("mediaPlayer")
.Events(e => e.Pause("onPause"))
)
Pause(System.Func)
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.
For more information see Pause event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of MediaPlayerEventBuilder .
Example
@(Html.Kendo().MediaPlayer()
.Name("mediaPlayer")
.Events(e => e.Pause(
@<text>
function(e) {
// event handling code
}
</text>
))
)
Play(System.String)
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.
For more information see Play event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Play event.
RETURNS
Returns the current instance of MediaPlayerEventBuilder .
Example
@(Html.Kendo().MediaPlayer()
.Name("mediaPlayer")
.Events(e => e.Play("onPlay"))
)
Play(System.Func)
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.
For more information see Play event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of MediaPlayerEventBuilder .
Example
@(Html.Kendo().MediaPlayer()
.Name("mediaPlayer")
.Events(e => e.Play(
@<text>
function(e) {
// event handling code
}
</text>
))
)
Ready(System.String)
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.
For more information see Ready event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the Ready event.
RETURNS
Returns the current instance of MediaPlayerEventBuilder .
Example
@(Html.Kendo().MediaPlayer()
.Name("mediaPlayer")
.Events(e => e.Ready("onReady"))
)
Ready(System.Func)
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.
For more information see Ready event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of MediaPlayerEventBuilder .
Example
@(Html.Kendo().MediaPlayer()
.Name("mediaPlayer")
.Events(e => e.Ready(
@<text>
function(e) {
// event handling code
}
</text>
))
)
TimeChange(System.String)
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.
For more information see TimeChange event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the TimeChange event.
RETURNS
Returns the current instance of MediaPlayerEventBuilder .
Example
@(Html.Kendo().MediaPlayer()
.Name("mediaPlayer")
.Events(e => e.TimeChange("onTimeChange"))
)
TimeChange(System.Func)
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.
For more information see TimeChange event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of MediaPlayerEventBuilder .
Example
@(Html.Kendo().MediaPlayer()
.Name("mediaPlayer")
.Events(e => e.TimeChange(
@<text>
function(e) {
// event handling code
}
</text>
))
)
VolumeChange(System.String)
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.
For more information see VolumeChange event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the VolumeChange event.
RETURNS
Returns the current instance of MediaPlayerEventBuilder .
Example
@(Html.Kendo().MediaPlayer()
.Name("mediaPlayer")
.Events(e => e.VolumeChange("onVolumeChange"))
)
VolumeChange(System.Func)
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.
For more information see VolumeChange event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current instance of MediaPlayerEventBuilder .
Example
@(Html.Kendo().MediaPlayer()
.Name("mediaPlayer")
.Events(e => e.VolumeChange(
@<text>
function(e) {
// event handling code
}
</text>
))
)