Hello,
We have faced with weird behavior when using Youtube URLs as a video source.
When the video is loading (before play) the media player shows NaNN instead of the Current Playing Time (which should be 00:00).
Hello, I'm a web developer and I'm facing a problem about media player in mobile version.
I tried to use a previous Kendo UI for jQuery version and the view worked great, but when I tried to show
the video in complete screen mode, it didn't show the toolbar so I couldn't turn the complete screen mode off unless I reload the web page.
Is anybody facing the same problem?.
thank you.
I'd like to allow users to dynamically change the URL of the media player.
I have tried to destroy the widget and recreate it but I get an error.
$("#mediaplayer").data("kendoMediaPlayer").destroy();
"VM66743:62 Uncaught TypeError: Cannot set property 'ontimeupdate' of undefined"
How can I update the URL of the media player and refresh the player to play the new URL?
$("#player").kendoMediaPlayer({
autoPlay: true,
play: onPlay,
pause: onPause,
end: onEnd,
ready: onReady,
timeChange: onTimeChange,
volumeChange: onVolumeChange,
messages: {
play: "Wiedergabe",
pause: "Pausieren"
},
media: {
title: "player",
source: new kendo.data.DataSource({
transport: {
read: {
url: "getVideoplayer",
type: "POST",
dataType: "binary"
}
}
})
}
});
html:
<div id="player" style="width:640px; height: 360px;"></div>
i have this error:
Uncaught TypeError: this._currentUrl(...).match is not a function
I would like to create a kendo video player.
I would like to pass the video data to the player and not link.
In the back end I use spring.
The problem is that the call response is empty.
Html code:
<div id="video1" style="width:640px; height: 360px;"></div>
Js code:
$("#video1").kendoMediaPlayer({
autoPlay: true,
messages: { play: "Wiedergabe", pause: "Pausieren"},
media: { title: "video",
source: new kendo.data.DataSource({
transport: {
read: { url: "/methodSpring/video", contentType: "application/json", dataType: "json"}}
}),
}
});
Java code:
@RequestMapping(value="video")
public void getVideoGst(HttpServletResponse response) throws Exception
{
logger.debug("+video");
File file = new File("/home/user/Desktop/doc.mp4");
FileInputStream fis = new FileInputStream(file);
try {
IOUtils.copy(fis, response.getOutputStream());
fis.close();
}
finally {
IOUtils.closeQuietly(fis);
logger.debug("+video");
}
}