fullScreen

Gets or sets the fullscreen mode of the widget.

Example

<div id="mediaplayer" />
<script>
$("#mediaplayer").kendoMediaPlayer({
    autoPlay: true,
    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 if the media player is currently in fullscreen mode
mediaPlayer.fullScreen();
// force the widget to enter fullscreen
mediaPlayer.fullScreen(true);
</script>

Parameters

value Boolean

The value that indicates whether the widget should enter or exit fullscreen.

Returns

Boolean The current fullscreen configuration.

In this article