MediaPlayerBuilder
Defines the fluent API for configuring the Kendo UI MediaPlayer
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class MediaPlayerBuilder : WidgetBuilderBase<MediaPlayer, MediaPlayerBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<MediaPlayer, MediaPlayerBuilder>MediaPlayerBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the MediaPlayerBuilder class.
Methods
If set to true, the widget will start playing the video or videos after initializing.Note Some browser do not allow autoplay and will block this feature. A common solution is to mute the video or disable the browser's autoplay policy.
If set to true, the widget will start playing the video or videos after initializing.Note Some browser do not allow autoplay and will block this feature. A common solution is to mute the video or disable the browser's autoplay policy.
public MediaPlayerBuilder AutoPlay(bool value)
The value for AutoPlay
Returns:Returns the current MediaPlayerBuilder instance.
If set to true, the widget will start playing the video or videos after initializing.
If set to true, the widget will start playing the video or videos after initializing.
public MediaPlayerBuilder AutoRepeat(bool value)
The value for AutoRepeat
Returns:Returns the current MediaPlayerBuilder instance.
Configures the client-side events.
public MediaPlayerBuilder Events(Action<MediaPlayerEventBuilder> configurator)
The client events action.
Returns:Returns the current MediaPlayerBuilder instance.
If set to false, the user will be prevented from seeking the video forward.
public MediaPlayerBuilder ForwardSeek(bool value)
The value for ForwardSeek
Returns:Returns the current MediaPlayerBuilder instance.
If set to true, the widget will enter fullscreen mode.
If set to true, the widget will enter fullscreen mode.
public MediaPlayerBuilder FullScreen(bool value)
The value for FullScreen
Returns:Returns the current MediaPlayerBuilder instance.
Specifies the object which holds the information about the media that will be played
public MediaPlayerBuilder Media(Action<MediaPlayerMediaBuilder> configurator)
The configurator for the Media
Returns:Returns the current MediaPlayerBuilder instance.
The object which holds the localization strings.
public MediaPlayerBuilder Messages(Action<MediaPlayerMessagesSettingsBuilder> configurator)
The MediaPlayerMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of MediaPlayerBuilder .
If set to true, the video will be played without sound.
If set to true, the video will be played without sound.
public MediaPlayerBuilder Mute(bool value)
The value for Mute
Returns:Returns the current MediaPlayerBuilder instance.
If set to true, the option enables the keyboard navigation for the widget.
public MediaPlayerBuilder Navigatable()
Returns the current MediaPlayerBuilder instance.
If set to true, the option enables the keyboard navigation for the widget.
public MediaPlayerBuilder Navigatable(bool value)
The value for Navigatable
Returns:Returns the current MediaPlayerBuilder instance.
A value between 0 and 100 that specifies the volume of the video.
public MediaPlayerBuilder Volume(double value)
The value for Volume
Returns:Returns the current MediaPlayerBuilder instance.