Skip to content

Instantly share code, notes, and snippets.

@davidknipe
Created May 2, 2023 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidknipe/670da15e7d6da09bfa06d821a7b16b2d to your computer and use it in GitHub Desktop.
Save davidknipe/670da15e7d6da09bfa06d821a7b16b2d to your computer and use it in GitHub Desktop.
How to configure the Optimizely DAM picker to allow videos
// Omitted for brevity
namespace YourApplication
{
public class Startup
{
// Omitted for brevity
public Startup(IWebHostEnvironment webHostingEnvironment, IConfiguration configuration)
{
// Omitted for brevity
}
public void ConfigureServices(IServiceCollection services)
{
// Omitted for brevity
// Add and configure DAM
services.AddDAMUi(o =>
{
o.AvailableTypes = new List<Type>()
{
typeof(ImageData),
typeof(VideoData)
};
});
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
// Ommitted for brevity
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment