Setting the Media in the player declaration for playing mp3 is quite easy :
@(Html.Kendo().MediaPlayer()
.Name("mediaPlayer")
.AutoPlay(true)
.Media(m => m
.Title("this is my song")
.Source("sounds/mysong.mp3") )
.HtmlAttributes(new { style = "height:360px; width:640px" } )
)
But how to change the media source for example if I want to change "mysong.mp3" to "myothersong.mp3" in an event in javascript :
function onChange(arg)
{
$("#mediaPlayer").data("kendoMediaPlayer").media(?????);
}
Many thanks