isEnded
Gets a value indicating whether the media has finished playing.
Returns
Boolean
A value indicating whether the media has finished playing.
<div id="mediaplayer" />
<script>
$("#mediaplayer").kendoMediaPlayer({
autoPlay: true,
media: {
title: "Kendo UI for jQuery: Welcome and Overview",
source: "https://www.youtube.com/watch?v=UbkbVBNYZMc",
},
});
setTimeout(function () {
var mediaPlayer = $("#mediaplayer").data("kendoMediaPlayer");
// check if the video has finished
console.log(mediaPlayer.isEnded());
},1000);
</script>
In this article