or
Hi, Im using the kendo media player inside a kendo window for playing a video. I'm able to get the video and play it but the problem is when I check the Chrome devTools, I dont know why there is multiple request been made to the backend for the video. In fact I just click once.
Below is the code:
var html = "<div id='dvPlayer' style='width:99%;height:99%;'></div>";
var mediaWind = $("<div id='mediawindow' />").kendoWindow({
title: "Media Player",
animation: false, width: "90%", height:"90%",
resizable: false, modal: true, draggable: true,
close: function ()
{
this.destroy();
}
}).data('kendoWindow').content(html);
var dvPlayer = $("#dvPlayer").kendoMediaPlayer({
autoPlay: false,
autoRepeat: false,
navigatable: true,
}).data("kendoMediaPlayer");
dvPlayer.media({
title: filename,
source: urlToBackend
});
mediaWind.center().open();
Hi, I use kendo ui for jquery media player in blazor project. On page load i call media player by this code;
await JSRuntime.InvokeAsync<string>("EmbedVideo", record.Id, record.Title);
and my javascript code is;
function EmbedVideo(recordId,title) {
$("#mediaplayer").kendoMediaPlayer({
autoPlay: true,
navigatable: true,
media: {
title: title,
source: "/api/record/GetRecordFile?recordId=" + recordId +"+&fileRequestType=1"
},
timeChange: function () {
console.log('changed')
}
});
}
when i change time i can see the 'changed' log in console but video starting over again.
These ara my referances;
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2021.1.330/js/kendo.all.min.js"></script>