Note: Do all of the steps in the global README.
dotnet add package Geta.OEmbed.Optimizely
Register the required services by executing the below extension method on your IServiceCollection
.
public void ConfigureServices(IServiceCollection services)
{
...
services.AddGetaOEmbed();
services.AddGetaOEmbedOptimizely();
}
Then map the required oEmbed routes.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
...
app.UseEndpoints(endpoints =>
{
...
endpoints.MapOEmbed();
});
}
Implement the interface IOEmbedMedia
on all media data you want usable by the property.
dotnet add package Geta.OEmbed.Optimizely.ContentDeliveryApi
Register the required ConverterProvider
implementations by executing the below extension method on your IServiceCollection
.
public void ConfigureServices(IServiceCollection services)
{
...
services.AddGetaOEmbedContentDeliveryApi();
}