Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Get Video Asset URL Programmatically

Avatar

Level 2

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();

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();