New to Kendo UI for jQuery? Start a free 30-day trial

IsEnded

methods

Gets a value indicating whether the media has finished playing.

Returns:Boolean

A value indicating whether the media has finished playing.

<div id="mediaplayer"></div>
<button id="checkEnded">Check if ended</button>
<script>
$("#mediaplayer").kendoMediaPlayer({
    media: { title: "Kendo UI for jQuery: Welcome and Overview", source: "https://www.youtube.com/watch?v=UbkbVBNYZMc" }
});

$("#checkEnded").click(function() {
    var mediaplayer = $("#mediaplayer").data("kendoMediaPlayer");
    console.log("Media ended: " + mediaplayer.isEnded());
});
</script>
Not finding the help you need?
Contact Support