RadMediaPlayer
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[RequiredScript(typeof(jQueryPlugins))]
[RequiredScript(typeof(AnimationFramework), 10)]
[ClientScriptResource("Telerik.Web.UI.RadMediaPlayer", "Telerik.Web.UI.MediaPlayer.RadMediaPlayerScripts.js")]
[ToolboxBitmap(typeof(RadMediaPlayer), "Toolbox.Icons.MediaPlayer.png")]
[TelerikToolboxCategory("Data")]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Lightweight, typeof(RadGrid))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Mobile, typeof(RadMediaPlayer))]
[RequiredCss("Telerik.Web.UI.Skins.Common.MaterialRipple.css", RenderMode.Lightweight, typeof(RadMediaPlayer))]
[RequiredScript(typeof(MaterialRipple))]
[EmbeddedSkin("MediaPlayer")]
[EmbeddedSkin("MediaPlayer", "Default")]
public class RadMediaPlayer : RadWebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl, INamingContainer, IPostBackEventHandler
Inheritance: objectControlWebControlRadWebControlRadMediaPlayer
Implements:
Inherited Members
Constructors
public RadMediaPlayer()
Properties
Gets or sets a flag that indicates if the media file will start playing on load
public bool AutoPlay { get; set; }
Gets or sets the text ToolTip of the close button of the banners.
public virtual string BannerCloseButtonToolTip { get; set; }
Gets a collection of MediaPlayerBanner objects
[PersistenceMode(PersistenceMode.InnerProperty)]
[TypeConverter(typeof(ExpandableObjectConverter))]
public MediaPlayerBannerCollection Banners { get; }
The CssClass property will now be used instead of the former Skin and will be modified in AddAttributesToRender()
protected override string CssClassFormatString { get; }
Overrides:
Gets or sets the selected culture. Localization strings will be loaded based on this value.
public CultureInfo Culture { get; set; }
The selected culture. Localization strings will be loaded based on this value.
Determines if the control will have WAI-ARIA support enabled
public bool EnableAriaSupport { get; set; }
Gets/sets whether Full Screen is switched on for the player
public bool FullScreen { get; set; }
Gets or sets the tooltip for the full screen button on the media player toolbar.
public string FullScreenButtonToolTip { get; set; }
Gets/sets whether HD is switched on for the player
public bool HDActive { get; set; }
Gets or sets the tooltip for the hd button on the media player toolbar.
public string HDButtonToolTip { get; set; }
Gets or sets a value indicating where RadMediaPlayer will look for its .resx localization file. By default this file should be in the App_GlobalResources folder. However, if you cannot put the resource file in the default location or .resx files compilation is disabled for some reason (e.g. in a DotNetNuke environment), this property should be set to the location of the resource file.
public string LocalizationPath { get; set; }
A relative path to the dialogs location. For example: "~/controls/RadMediaPlayerResources/".
If specified, the LocalizationPath property will allow you to load the grid localization file from any location in the web application.
Gets or sets a flag that indicates if the media file will automatically repeat when playback ends
public bool Loop { get; set; }
Gets/sets the mime type of the source media file to play
public string MimeType { get; set; }
Gets or sets the name of the JavaScript function which handles the ended client-side event.
[ClientControlEvent]
[ClientPropertyName("ended")]
public string OnClientEnded { get; set; }
The load event occurs when the media has reached the end.
Gets or sets the name of the JavaScript function which handles the paused client-side event.
[ClientControlEvent]
[ClientPropertyName("paused")]
public string OnClientPaused { get; set; }
The paused event occurs when the media has been paused.
Gets or sets the name of the JavaScript function which handles the load play event.
[ClientControlEvent]
[ClientPropertyName("play")]
public string OnClientPlay { get; set; }
The load event occurs when the media has started playing.
Gets or sets the name of the JavaScript function which handles the load client-side event.
[ClientControlEvent]
[ClientPropertyName("ready")]
public string OnClientReady { get; set; }
The load event occurs when the media has loaded its metadata and the player is ready to start playing.
Gets or sets the name of the JavaScript function which handles the seek start client-side event.
[ClientControlEvent]
[ClientPropertyName("seekStart")]
public string OnClientSeekStart { get; set; }
The paused event occurs when the player is seeking new time position into the media.
Gets or sets the name of the JavaScript function which handles the volume changed client-side event.
[ClientControlEvent]
[ClientPropertyName("volumeChanged")]
public string OnClientVolumeChanged { get; set; }
The paused event occurs when the volume of the media has been changed.
Gets or sets the text of the pause button.
public virtual string PauseButtonToolTip { get; set; }
Gets or sets the text of the play button.
public virtual string PlayButtonToolTip { get; set; }
Gets a collection of MediaPlayerFile objects.
[PersistenceMode(PersistenceMode.InnerProperty)]
public MediaPlayerFilesCollection Playlist { get; }
Gets or sets the RadMediaPlayer settings for the Playlist functionality.
[PersistenceMode(PersistenceMode.InnerProperty)]
[TypeConverter(typeof(ExpandableObjectConverter))]
public MediaPlayerPlaylistSettings PlaylistSettings { get; }
Gets or sets the skin name for the control user interface.
public override string Skin { get; set; }
A string containing the skin name for the control user interface. The default is string.Empty.
Overrides:
If this property is not set, the control will render using the skin named "Default". If EnableEmbeddedSkins is set to false, the control will not render skin.
Gets/sets the path to the source media file to play
public string Source { get; set; }
Gets a collection of MediaPlayerSource objects.
[PersistenceMode(PersistenceMode.InnerProperty)]
public MediaPlayerSourcesCollection Sources { get; }
Gets or sets the start time for the media player
public double StartTime { get; set; }
Gets or sets the start volume for the media player
public int StartVolume { get; set; }
Gets or sets the tooltip for the Show/Hide Subtitles button on the media player toolbar.
public string SubtitlesButtonToolTip { get; set; }
protected override bool SupportsRenderingMode { get; }
Overrides:
protected override HtmlTextWriterTag TagKey { get; }
Overrides:
Gets a reference to RadMediaPlayer's title bar.
public MediaPlayerTitlebar TitleBar { get; }
Gets or sets the tooltip of the share button on the media player titlebar.
public string TitleBarShareToolTip { get; set; }
Gets a reference to RadMediaPlayer's tool bar.
public MediaPlayerToolbar ToolBar { get; }
Gets or sets a flag that indicates if the toolbar will be docked to the control
public bool ToolbarDocked { get; set; }
Gets or sets the tooltip for the volume button on the media player toolbar.
public string VolumeButtonToolTip { get; set; }
public string YoutubeApiKey { get; set; }
Methods
protected override void CreateChildControls()
Overrides:
protected override void DescribeClientEvents(IScriptDescriptor descriptor)
Overrides:
protected override void DescribeClientProperties(IScriptDescriptor descriptor)
Overrides:
protected override IEnumerable<ScriptReference> GetScriptReferences()
Overrides:
Loads the client state data
protected override void LoadClientState(Dictionary<string, object> clientState)
Overrides:
Executed when post data changes should invoke a changed event
protected override void RaisePostDataChangedEvent()
Overrides:
protected override void TrackViewState()
Overrides: