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

Caching videos and PDFs in dispatcher

Satya_adobe
Level 2
Level 2

Hi, 

We have a requirement to cache mp4 videos and pdf files in dispatcher but we face below issue while caching videos 

Issue description 
-----------------------------

  • the renditions are getting generated for video/pdf files once it is uploaded to AEM.
  • Video thumbnails are displayed on the page and our requirement is to open PDFs / run video once the  user clicks on the thumbnail image.
  • So now lets say the video name is myvideo.mp4 and the thumbnails rendition of the video is getting cached in the dispatcher and the path for the thumbnail image is /docroot/a/myvideo.mp4/renditions/videoName.cq5.<thumbnail ratio>.png
  • so now myvideo.mp4 directory has been created in the dispatcher and because of this, the actual video is not getting cached.

What is the solution to this issue?

1 Accepted Solution
Sham_HC
Correct answer by
Level 10
Level 10

You should never access the renditions directly.  Please find below example on geometrixx [1] how to get url for original file and rendition. In case you are not using dimension in rendition then need to customize thumbnail servlet 

Verify your component and make sure to use servlet to pick the renditon. The example i gave for image but holds good for video also.

[1]
http://<host>:<port>/content/dam/geometrixx/banners/techsummit.jpg
http://<host>:<port>/content/dam/geometrixx/banners/techsummit.jpg.thumb.319.319.png

View solution in original post

1 Reply
Sham_HC
Correct answer by
Level 10
Level 10

You should never access the renditions directly.  Please find below example on geometrixx [1] how to get url for original file and rendition. In case you are not using dimension in rendition then need to customize thumbnail servlet 

Verify your component and make sure to use servlet to pick the renditon. The example i gave for image but holds good for video also.

[1]
http://<host>:<port>/content/dam/geometrixx/banners/techsummit.jpg
http://<host>:<port>/content/dam/geometrixx/banners/techsummit.jpg.thumb.319.319.png