isPlaying
Gets a value indicating whether the media is currently playing.
Returns
Boolean
A value indicating whether the media is currently playing.
Example
<div id="mediaplayer"></div>
<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 is playing
console.log(mediaPlayer.isPlaying());
},1000);
</script>
In this article