Dynamic Media URL format inconsistency across AEM delivery methods
Hi Everyone,
I am working on Dynamic Media integration in AEM as a Cloud Service using the AssetDelivery API.
Currently, my Sling Model generates URLs like:
/adobe/dynamicmedia/deliver/dm-aid--e3ba909d-36de-46ea-ba72-bd8737f9c61f/OIP.jpeg.webp?preferwebp=true
using:
assetDelivery.getDeliveryURL(assetResource, options);However, from the AEM Assets Console, I can see URLs in the following format:
/adobe/assets/urn:aaid:aem:20c84486-5512-4ac8-b8f7-a8ba2c735155/as/OIP.avif?width=1024&quality=65&assetName=OIP.jpeg
My understanding is:
/adobe/dynamicmedia/deliver/...→ Scene7 / Dynamic Media Deliver URLs/adobe/assets/urn:aaid:aem:...→ Dynamic Media with OpenAPI (Next-Gen DM) URLs
I want to understand:
- Can
AssetDelivery#getDeliveryURL()generate the OpenAPI-style/adobe/assets/urn:aaid:aem:...URLs? - If not, what is the recommended API/service to generate those URLs programmatically inside Sling Models?
- Is additional OpenAPI configuration required in AEM Cloud Service to expose asset URNs/asset IDs?
- Is there any metadata/property available on the Asset object that maps to the
urn:aaid:aem:identifier? - How can we determine programmatically whether an asset is configured for Scene7 delivery vs OpenAPI delivery?
Currently:
- Assets are approved and published
- Dynamic Media is enabled
AssetDeliveryservice is available and working- No hardcoded URLs are being used
Any guidance or documentation references would be really helpful.
Thanks!