how to create kendo media player video with ajax call and spring

2 posts, 0 answers
  1. Federico
    Federico avatar
    28 posts
    Member since:
    Sep 2017

    Posted 18 Sep 2017 Link to this post

    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:


    autoPlay: true,

    messages: { play: "Wiedergabe", pause: "Pausieren"},

    media: { title: "video",

         source: new{

    transport: {

    read: { url: "/methodSpring/video", contentType: "application/json", dataType: "json"}}




    Java code:

    public void getVideoGst(HttpServletResponse response) throws Exception



    File file = new File("/home/user/Desktop/doc.mp4");

    FileInputStream fis = new FileInputStream(file);

    try {

    IOUtils.copy(fis, response.getOutputStream());



    finally {





  2. Stefan
    Stefan avatar
    2792 posts

    Posted 20 Sep 2017 Link to this post

    Hello Federico,

    The Kendo UI MediaPlayer can use only the URL of the videos. The URL can lead to a hosted video like in YouTube or to a locally available file:

    If the desired result is to directly pass the file from the server as a stream, I can suggest submitting a feature request and based on its popularity we may implement it in a future release.

    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top