Class MediaRenderer
Inheritance
System.Object
MediaRenderer
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: ImageVault.Common.dll
public static class MediaRenderer
Fields
ActiveTextTrackLanguageKey
Declaration
[Obsolete("Use ContextKey.ActiveTextTrackLanguage instead")]
public static string ActiveTextTrackLanguageKey
Field Value
Type |
Description |
System.String |
|
Declaration
[Obsolete("Use ContextKey.Alt instead")]
public const string AltKey = "alt"
Field Value
Type |
Description |
System.String |
|
Context key for setting autoplay
Declaration
[Obsolete("Use ContextKey.Autoplay instead")]
public static string AutoplayKey
Field Value
Type |
Description |
System.String |
|
ContentTypeKey
Declaration
[Obsolete("Use ContextKey.ContentType instead")]
public const string ContentTypeKey = "contentType"
Field Value
Type |
Description |
System.String |
|
Context key for setting controls
Declaration
[Obsolete("Use ContextKey.Controls instead")]
public static string ControlsKey
Field Value
Type |
Description |
System.String |
|
Declaration
[Obsolete("Use ContextKey.Debug instead")]
public static string DebugKey
Field Value
Type |
Description |
System.String |
|
Declaration
[Obsolete("Use ContextKey.DisableFullscreen instead")]
public static string DisableFullscreenKey
Field Value
Type |
Description |
System.String |
|
DisableTextTracksKey
Declaration
[Obsolete("Use ContextKey.DisableTextTracks instead")]
public static string DisableTextTracksKey
Field Value
Type |
Description |
System.String |
|
Declaration
[Obsolete("Use ContextKey.Height instead")]
public const string HeightKey = "height"
Field Value
Type |
Description |
System.String |
|
Declaration
[Obsolete("Use ContextKey.Id instead")]
public const string IdKey = "id"
Field Value
Type |
Description |
System.String |
|
Declaration
[Obsolete("Use ContextKey.Muted instead")]
public static string MutedKey
Field Value
Type |
Description |
System.String |
|
Declaration
[Obsolete("Use ContextKey.Name instead")]
public const string NameKey = "name"
Field Value
Type |
Description |
System.String |
|
Declaration
[Obsolete("Use ContextKey.Target instead")]
public const string TargetKey = "target"
Field Value
Type |
Description |
System.String |
|
Declaration
[Obsolete("Use ContextKey.Title instead")]
public const string TitleKey = "title"
Field Value
Type |
Description |
System.String |
|
Declaration
[Obsolete("Use ContextKey.Url instead")]
public const string UrlKey = "url"
Field Value
Type |
Description |
System.String |
|
Declaration
[Obsolete("Use ContextKey.Width instead")]
public const string WidthKey = "width"
Field Value
Type |
Description |
System.String |
|
Properties
Use the url replacer to replace any required render resource
Declaration
public static Func<string, string> UrlReplacer { get; set; }
Property Value
Type |
Description |
System.Func<System.String, System.String> |
|
Methods
Declaration
public static string GetDirectRenderer(string rendererId)
Parameters
Type |
Name |
Description |
System.String |
rendererId |
|
Returns
Type |
Description |
System.String |
|
Gets the registered renderer for the supplied id (if found)
Declaration
public static IMediaRenderer GetRenderer(string rendererId)
Parameters
Type |
Name |
Description |
System.String |
rendererId |
|
Returns
Declaration
public static void RegisterRenderer(IMediaRenderer mediaRenderer)
Parameters
Render(RenderContext)
Renders the supplied media
Declaration
public static string Render(RenderContext context)
Parameters
Returns
Type |
Description |
System.String |
The rendered html
|
Renders the supplied media
Declaration
public static string RenderMedia(Media media)
Parameters
Type |
Name |
Description |
Media |
media |
The media to render
|
Returns
Type |
Description |
System.String |
|
Renders the supplied media
Declaration
[Obsolete("Use RenderContext to modify the render part and then use Render(RenderContext) instead")]
public static string RenderMedia(Media media, MediaRendererOptions options)
Parameters
Returns
Type |
Description |
System.String |
The rendered html
|
Renders the supplied media
Declaration
public static string RenderMedia(Media media, bool dynamic)
Parameters
Type |
Name |
Description |
Media |
media |
|
System.Boolean |
dynamic |
|
Returns
Type |
Description |
System.String |
The rendered html
|
Renders the resources needed as HTML tags
Declaration
public static string RenderResources()
Returns
Type |
Description |
System.String |
|
Renders the resources for a specific renderer
Declaration
public static string RenderResources(string rendererId)
Parameters
Type |
Name |
Description |
System.String |
rendererId |
|
Returns
Type |
Description |
System.String |
|
Assigns the default renderer based on the supplied content type of the media
Declaration
public static void SetDefaultRenderer(Media media)
Parameters
Type |
Name |
Description |
Media |
media |
|