Strategy interface for resolving a media URL into an embeddable
iframe configuration.
Library consumers implement this interface to add support for
additional video/audio hosting services. Built-in implementations
are provided for YouTube, Vimeo, and Dailymotion.
Example
// Custom provider for a fictional service exportclassMyVideoProviderimplementsMediaEmbedProvider { readonlyname = 'MyVideo';
Strategy interface for resolving a media URL into an embeddable iframe configuration.
Library consumers implement this interface to add support for additional video/audio hosting services. Built-in implementations are provided for YouTube, Vimeo, and Dailymotion.
Example