Papirfly Play Player Embedded (MediaRenderer)
The PapirflyPlayEmbedMediaRenderer will render an iframe with the Papirfly Play 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 Papirfly Play media player renderer if you would like to
//context.RendererId = PapirflyPlayMediaRenderer.RendererId;
var html = MediaRenderer.Render(context);
The embedded player can interpret the same context values as the Papirfly Play Player but some will affect the iframe element, some will be passed along to the Papirfly Play 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