IHostProvider Interface

Provides url for media links.

public interface IHostProvider

Properties

NameDescription
AllowFullScreenShould the generated iframe has allowfullscreen attribute.
Class"class" attribute of generated iframe.

AllowFullScreen

Should the generated iframe has allowfullscreen attribute.

bool AllowFullScreen { get; }

Property value

bool

Remarks

Should be false for audio embedding.

Class

"class" attribute of generated iframe.

string? Class { get; }

Property value

string?

Methods

NameDescription
TryHandle(Uri, bool, string?)Generate url for iframe.

TryHandle(Uri, bool, string?)

Generate url for iframe.

bool TryHandle(Uri mediaUri, bool isSchemaRelative, out string? iframeUrl)

Parameters

mediaUri Uri
Input media uri.
isSchemaRelative bool
true if mediaUri is a schema relative uri, i.e. uri starts with "//".
iframeUrl string?
Generated url for iframe.

Returns

bool

See also