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

Custom Video component

ArunV
Level 1
Level 1

Hi,

 

I am creating a custom video component. In cq dialog, added file upload module and droptarget. In HTML we are getting the file url with ${properties.fileNameParameterReference}

 

So this works fine if I am dropping a  video from DAM but not when direct upload. So on time of direct upload fileNameParameterReference is empty but for image there is a Image model with ${image.src} we are able to get it. is there any same way for video too??

1 Accepted Solution
Manjunath_K
Correct answer by
Community Advisor
Community Advisor

Hi @ArunV 

It works fine when we directly browse & upload video on OOTB Video component, can you please compare your dialog xml with OOTB video component & add required changes if anything missing.

 

Component path : /libs/foundation/components/video/cq:dialog/content/items/column/items/file

video1.png

 

 

Retrieved video file after browser & upload : 

video.png

 

 

View solution in original post

2 Replies
Manjunath_K
Correct answer by
Community Advisor
Community Advisor

Hi @ArunV 

It works fine when we directly browse & upload video on OOTB Video component, can you please compare your dialog xml with OOTB video component & add required changes if anything missing.

 

Component path : /libs/foundation/components/video/cq:dialog/content/items/column/items/file

video1.png

 

 

Retrieved video file after browser & upload : 

video.png

 

 

View solution in original post