New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Base class for the MediaPlayerFile object. Used for the elements in the RadMediaPlayer Playlist.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[Browsable(false)]
public abstract class MediaPlayerFile : IStateManager

Inheritance: objectMediaPlayerFile

Derived Classes: MediaPlayerAudioFileMediaPlayerVideoFile

Implements: IStateManager

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

MediaPlayerFile constructor. Used for the elements in the RadMediaPlayer Playlist.

C#
public MediaPlayerFile()

MediaPlayerFile constructor. Used for the elements in the RadMediaPlayer Playlist.

C#
public MediaPlayerFile(RadMediaPlayer ownerMediaPlayer)
Parameters:ownerMediaPlayerRadMediaPlayer

Owner RadMediaPlayer object

Properties

Gets or sets a flag that indicates if the media file will start playing on load

C#
public bool AutoPlay { get; set; }

Gets the type (MediaPlayerVideo/MediaPlayerAudio) of the current file

C#
public string FileType { get; }

Gets a reference to the owner media player control

C#
public RadMediaPlayer OwnerMediaPlayer { get; }

Gets or Sets the Path of the Media Files

C#
public string Path { get; set; }

Gets/sets the path to the poster for the media

C#
public string Poster { get; set; }

Gets a collection of MediaPlayerSource objects.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public MediaPlayerSourcesCollection Sources { get; }

Gets or sets the start time for the media player

C#
public double StartTime { get; set; }

Gets or Sets the start volume of the Media Files

C#
public int StartVolume { get; set; }

Gets or Sets the Path of the Subtitles Files

C#
public string SubtitlesPath { get; set; }

Gets or Sets the Title of the Media Files

C#
public string Title { get; set; }

Methods

C#
protected virtual void LoadState(object state)
Parameters:stateobject
C#
protected virtual ArrayList SaveState()
Returns:

ArrayList

C#
protected virtual void TrackState()