Search Results for

    Show / Hide Table of Contents

    Azure Media Player Embedded (MediaRenderer)

    Note

    This player will also work with videos hosted on ImageVault Video v3 (that uses the Papirfly Play Player).

    The AzureMediaPlayerEmbedMediaRenderer will render an iframe with the Azure Media Player embedded in the iframe. This is the recommended method to use ImageVault video resources on an external website since all resources are embedded in the iframe and not needed to be included in the parent document.

    var video = client.Load<Video>(6405)
        .Resize(200, 200)
        .Single();
    var context = new RenderContext(video);
    
    //You can of course force the azure media player renderer if you would like to
    //context.RendererId = AzureMediaPlayerMediaRenderer.RendererId;
    
    var html = MediaRenderer.Render(context);
    

    The embedded player can interpret the same context values as the Azure Media Player but some will affect the iframe element, some will be passed along to the Azure Media Player inside the iframe and some will affect them both.

    If no Style is supplied, a default value will be applied that hides the default border applied to iframes by most web browsers.

    The following context values affects the iframe.

    • Width
    • Height
    • Id
    • Class
    • Style
    • AccessKey
    • AutoCapitalize
    • AutoFocus
    • ContentEditable
    • Dir
    • Draggable
    • EnterKeyHint
    • Hidden
    • InputMode
    • Is
    • Lang
    • SpellCheck
    • TabIndex
    • Title
    • Translate
    • Data-*

    The following context values will be passed along to the embedded Azure Media Player

    • AutoPlay
    • Controls
    • ActiveTextTrackLanguage
    • DisableTextTracks
    • DisableFullscreen
    • Muted
    • Loop
    • DisableLoaderIcon
    • EmbedResizeMode
    • DisplayDuringInit
    • InitBackground
    • Poster
    • Lang
    • Debug
    • Skin
    • PlaysInline
    In This Article
    Back to top (c) Meriworks 2002-2022