MediaPlayer with datasource (ajax call)

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

    Posted 18 Sep Link to this post

     $("#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

     

  2. Stefan
    Admin
    Stefan avatar
    1147 posts

    Posted 20 Sep Link to this post

    Hello Federico,

    I noticed that a similar question is already asked in the following forum post:

    http://www.telerik.com/forums/how-to-create-kendo-media-player-video-with-ajax-call-and-spring

    I have provided an answer to the question. If more information is needed, please continue the conversation in only one fo the threads by your choice.

    Regards,
    Stefan
    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