Caching videos and PDFs in dispatcher | Community
Skip to main content
Level 2
October 16, 2015
Solved

Caching videos and PDFs in dispatcher

  • October 16, 2015
  • 1 reply
  • 1129 views

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?

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 Sham_HC

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

1 reply

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

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