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

Playlists

The MediaPlayer enables you to create your own playlists and to enable or disable the seeking forward.

Creating Playlists

Players usually feature a different video based on user action. To implement your own Playlist structures, change the source of the MediaPlayer dynamically. For a runnable example, refer to the demo on creating your own playlists in the MediaPlayer which uses the ListView to create a list that holds the videos right next to the MediaPlayer element.

The following example demonstrates how to change the source of the MediaPlayer.

function buttonClick() {
    var player = $("#mediaplayer1").data("kendoMediaPlayer");
    player.media({
        title: "Our Company Culture - Lesson 2",
        source: "Video/video2.mp4"
    });
}

Seeking Forward

Some applications enforce the user to watch only the currently loaded content without the option to jump forward. The MediaPlayer provides the forwardSeek configuration, which helps to achieve this requirement.

See Also

In this article