media.sourceString
String or an array of objects that hold the URL or URLs of the videos.
Example - specify a video
<div id="mediaplayer"></div>
<script>
$("#mediaplayer").kendoMediaPlayer({
media: { title: "Kendo UI for jQuery: Welcome and Overview", source: "https://www.youtube.com/watch?v=UbkbVBNYZMc" }
});
</script>
Example - specify a video with alternative sources
<div id="mediaplayer"></div>
<script>
$("#mediaplayer").kendoMediaPlayer({
media: {
title: "Kendo UI for jQuery: Welcome and Overview",
source: [ { quality: "480p", url: "https://www.youtube.com/watch?v=UbkbVBNYZMc" }, { quality: "720p", url: "https://www.youtube.com/watch?v=UbkbVBNYZMc" } ]
}
});
</script>
In this article