Edit this page

media

Gets or sets the information about the media that is loaded in the widget.

Example

<div id="mediaplayer" />
<script>
  $("#mediaplayer").kendoMediaPlayer({
    media: { title: "Digital Transformation: A New Way of Thinking", source: "https://www.youtube.com/watch?v=gNlya720gbk" }
  });
  // get a reference to the media player widget
  var mediaPlayer = $("#mediaplayer").data("kendoMediaPlayer");
  // check the currently loaded media
  console.log(mediaPlayer.media());
  // change the media loaded in the widget
  mediaPlayer.media({
                title: "Responsive Website Delivers for Reeves Import Motorcars",
                poster: "http://img.youtube.com/vi/DYsiJRmIQZw/1.jpg",
                source: "https://www.youtube.com/watch?v=DYsiJRmIQZw"
            });
</script>

Parameters

value Object

The media configuration to load in the MediaPlayer. Accepts the same values as the media option.

Returns

Object The current media configuration.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy