Take the community feedback survey now.
AI OnAI Off
Take the community feedback survey now.
The MediaController will be invoked when you drop something inheriting from MediaData into e.g. a ContentArea. Unless there is a more specific AsyncPartialContentComponent available for the content type.
The Foundation project contains
MediaControllerwhich implements theAsyncPartialContentComponent.My question is: How to use that controller for rendering data? For example, how to tell renderer to use ImageMediaData from MediaController?
I have not found any example in the Foundation project.
ImageMediaDatadoes not seem to useMediaControllerlogic for rendering.I also tried to register that controller in the
IViewTemplateModelRegistrator, but I'm not sure how since registrator requires path for a view whileMediaControllerspecifies it in the logic.Link to code: https://github.com/episerver/Foundation/blob/6da2cf768f517062c6a25158d72eed53fb0f60a9/src/Foundation/Features/Media/MediaController.cs