Custom Video component | Community
Skip to main content
October 16, 2020
Solved

Custom Video component

  • October 16, 2020
  • 2 replies
  • 1307 views

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??

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Manjunath_K

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

 

 

Retrieved video file after browser & upload : 

 

 

2 replies

Manjunath_K
Manjunath_KAccepted solution
Level 7
October 16, 2020

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

 

 

Retrieved video file after browser & upload :