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

IsPlaying

methods

Gets a value indicating whether the media is currently playing.

Returns:Boolean

A value indicating whether the media is currently playing.

<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>
Not finding the help you need?
Contact Support