Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Get Video Asset URL Programmatically

Avatar

Level 3

Hey guys,

 

I am attempting to programmatically retrieve the URL of a Video Asset that is stored in the DAM... currently I've gotten as far as retrieving the Video as a Resource & pulling off its ValueMap, but I'm wondering which tools I should use to get the URL? Don't think it is stored in the ValueMap, so I'm thinking I might need to use something like AssetManager. Current approach to get valuemap below

 

 ValueMap imageResourceValueMap = videoResource.getValueMap();

 

Thanks,

 

-Joey

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

YOu can get the video metada data from 

https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/day/cq/dam/api/As...

 

and the location of the video is the page/url.

videoResource.getPath();


Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi,

YOu can get the video metada data from 

https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/day/cq/dam/api/As...

 

and the location of the video is the page/url.

videoResource.getPath();


Arun Patidar