Expand my Community achievements bar.

SOLVED

Caching videos and PDFs in dispatcher

Avatar

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

Avatar

Correct answer by
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

Avatar

Correct answer by
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