MediaWebPart Class

Definition

A Web Part that displays media content through the use of a media player.

public ref class MediaWebPart sealed : System::Web::UI::WebControls::WebParts::WebPart, Microsoft::SharePoint::WebControls::IDesignTimeHtmlProvider
public sealed class MediaWebPart : System.Web.UI.WebControls.WebParts.WebPart, Microsoft.SharePoint.WebControls.IDesignTimeHtmlProvider
type MediaWebPart = class
    inherit WebPart
    interface IDesignTimeHtmlProvider
Public NotInheritable Class MediaWebPart
Inherits WebPart
Implements IDesignTimeHtmlProvider
Inheritance
MediaWebPart
Implements

Constructors

MediaWebPart()

Initilizes a new instance of a MediaWebPart object.

Properties

AutoPlay

Gets or sets whether the media should play automatically once the page has loaded.

ConfigureFromContext

This member is reserved for internal use and is not intended to be used directly from your code.Gets or sets whether the media player must configure media and related properties based on the context of the current SPListItem.

DisplayMode

The MediaDisplayMode in which to start the media player.

IsPreviewImageSourceOverridenForVideoSet

This member is reserved for internal use and is not intended to be used directly from your code.

Loop

Gets or sets whether the media should restart playback automatically upon playing to completion.

MediaFileExtensions

A comma-delimited list containing file name extensions of known media file types.

MediaSource

A URL reference to the media.

PlayerLoadedClientScript

Gets or sets a ECMAScript (JavaScript, JScript) function to be executed when the player successfully loads.

PlayerResizedClientScript

A JavaScript function to be executed upon the player being resized.

PreviewImageSource

A URL reference to the media preview image.

Renditions

Gets or sets the renditions to be used as possible media sources for playback.

ShowEmbedControl

Gets or sets whether the media player should display the control for embedding the selected media.

SilverlightMediaFileExtensions

Gets a comma-delimited list containing file name extensions of Silverlight-supported media file types.

TemplateSource

A URL reference to a XAML document containing a ControlTemplate definition to be used as the media player's style or skin.

VideoSetEmbedCode

This member is reserved for internal use and is not intended to be used directly from your code.

VideoSetSource

This member is reserved for internal use and is not intended to be used directly from your code.

Methods

GetDesignTimeHtml()

Gets the HTML markup that is used to represent the control at design time.

Applies to