Search Results for

    Show / Hide Table of Contents

    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()
    Namespace: ImageVault.Common.Html
    Assembly: ImageVault.Common.dll
    Syntax
    public static class MediaRenderer

    Fields

    ActiveTextTrackLanguageKey

    Declaration
    [Obsolete("Use ContextKey.ActiveTextTrackLanguage instead")]
    public static string ActiveTextTrackLanguageKey
    Field Value
    Type Description
    System.String

    AltKey

    Declaration
    [Obsolete("Use ContextKey.Alt instead")]
    public const string AltKey = "alt"
    Field Value
    Type Description
    System.String

    AutoplayKey

    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

    ControlsKey

    Context key for setting controls

    Declaration
    [Obsolete("Use ContextKey.Controls instead")]
    public static string ControlsKey
    Field Value
    Type Description
    System.String

    DebugKey

    Declaration
    [Obsolete("Use ContextKey.Debug instead")]
    public static string DebugKey
    Field Value
    Type Description
    System.String

    DisableFullscreenKey

    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

    HeightKey

    Declaration
    [Obsolete("Use ContextKey.Height instead")]
    public const string HeightKey = "height"
    Field Value
    Type Description
    System.String

    IdKey

    Declaration
    [Obsolete("Use ContextKey.Id instead")]
    public const string IdKey = "id"
    Field Value
    Type Description
    System.String

    MutedKey

    Declaration
    [Obsolete("Use ContextKey.Muted instead")]
    public static string MutedKey
    Field Value
    Type Description
    System.String

    NameKey

    Declaration
    [Obsolete("Use ContextKey.Name instead")]
    public const string NameKey = "name"
    Field Value
    Type Description
    System.String

    TargetKey

    Declaration
    [Obsolete("Use ContextKey.Target instead")]
    public const string TargetKey = "target"
    Field Value
    Type Description
    System.String

    TitleKey

    Declaration
    [Obsolete("Use ContextKey.Title instead")]
    public const string TitleKey = "title"
    Field Value
    Type Description
    System.String

    UrlKey

    Declaration
    [Obsolete("Use ContextKey.Url instead")]
    public const string UrlKey = "url"
    Field Value
    Type Description
    System.String

    WidthKey

    Declaration
    [Obsolete("Use ContextKey.Width instead")]
    public const string WidthKey = "width"
    Field Value
    Type Description
    System.String

    Properties

    UrlReplacer

    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

    GetDirectRenderer(String)

    Gets the direct renderer

    Declaration
    public static string GetDirectRenderer(string rendererId)
    Parameters
    Type Name Description
    System.String rendererId
    Returns
    Type Description
    System.String

    GetRenderer(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
    Type Description
    IMediaRenderer

    RegisterRenderer(IMediaRenderer)

    Declaration
    public static void RegisterRenderer(IMediaRenderer mediaRenderer)
    Parameters
    Type Name Description
    IMediaRenderer mediaRenderer

    Render(RenderContext)

    Renders the supplied media

    Declaration
    public static string Render(RenderContext context)
    Parameters
    Type Name Description
    RenderContext context
    Returns
    Type Description
    System.String

    The rendered html

    RenderMedia(Media)

    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

    RenderMedia(Media, MediaRendererOptions)

    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
    Type Name Description
    Media media

    The media to render

    MediaRendererOptions options

    Optional options to pass to the renderer

    Returns
    Type Description
    System.String

    The rendered html

    RenderMedia(Media, Boolean)

    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

    RenderResources()

    Renders the resources needed as HTML tags

    Declaration
    public static string RenderResources()
    Returns
    Type Description
    System.String

    RenderResources(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

    SetDefaultRenderer(Media)

    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
    In This Article
    Back to top (c) Meriworks 2002-2022