Support Image and Video in OTB AEM Teaser Component
hey guys,
I have a requirement to basically create a teaser component from both image and video in AEM.
The OTB teaser component works very well for images. But not sure what's the best approach to do when it comes to supporting video too.
I was thinking creating a new component which has sling:resourceSuperType pointing to the parent teaser. And then this component can have its own video tab for dialog and a checkbox for media type based on which sightly can be conditional.
But the default "Asset" tab for Images is still rendered in that case.
I think it might be because of a tight coupling between Teaser and Image as seen from below configs -
imageDelegate - core/wcm/components/image/v3/image
sling:resourceSuperType - core/wcm/components/image

I had an alternate idea to let use the OTB Teaser for Image and then create a "Teaser Video" component just for the video.
Anyways, what's the best approach to go ahead with for teaser with both video and image?