Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Download Link towards Scene7 not working

Avatar

Level 2

I have a “download” link (HTML 'a' tag) which has the `href` pointing to Scene7/Dynamic Media URLs. Those URLs are NOT the asset, but an API that provides the assets along with the video player.

 

I tried a bunch of things, here a couple:

- Adding download at the HTML 'a' tag: eg '<a href="scene7.server..." download>'

- Add Content-Disposition header in Scene7 server

I found that this will not work (because it’s not a matter of the 'a' tag neither the browser, is a matter of the URL itself.

 

So, I tested using the AEM instance directly, and works! But (at least in this case) this is NOT a valid solution since if we're loading directly from DAM it'll have major performance ramifications.

 

QUESTION: 

  • There is a way to download assets from Scene7/Dynamic Media? Either a different URL or tweaking any props in S7/DM instance?
  • There is a way to directly access the ASSET in S7/DM?
  • Any workaround of this situation?
  • Any other thoughts?

 

Thanks so so much in advance.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@mr-smith  It would be recommended to use Dynamic Media components (like Generic DM component, 360 Video, Interactive, Smart Crop, 3D) instead of directly adding the DM media url. You would also get other configuration options like selection of viewer, image/ viewer preset, modifiers, breakpoints, smart crop, etc.

Please refer this for details:

https://experienceleague.adobe.com/docs/experience-manager-65/assets/dynamic/adding-dynamic-media-as...

View solution in original post

8 Replies

Avatar

Community Advisor

Hello @mr-smith,

The Scene7 Link which you have configured is an API link which will fetches the video based on best fit. For example if you're viewing the video in a mobile it will fetch its corresponding resolution rather than downloading a high resolution. Also, the video is generally downloaded in parts and not full at once based on scrubbing speed, buffer speed, etc. Once the video starts playing please observe the XHR entries in your browser network tab of type 'media'.

You'll see something like this: https://s7d6.scene7.com/is/content/<directory>/<assetName>-0x720-3000k

 

This is a media link and can directly play in the browser. However, it is not wise to use direct link in your hyperlink.

 

Hope this helps,

Jineet

Avatar

Administrator
@Jineet_Vora, Thank you for post solution with AEM Community. This helps in posterity. Keep the wonderful contribution going (both as learner and contributor).


Kautuk Sahni

Avatar

Correct answer by
Employee Advisor

@mr-smith  It would be recommended to use Dynamic Media components (like Generic DM component, 360 Video, Interactive, Smart Crop, 3D) instead of directly adding the DM media url. You would also get other configuration options like selection of viewer, image/ viewer preset, modifiers, breakpoints, smart crop, etc.

Please refer this for details:

https://experienceleague.adobe.com/docs/experience-manager-65/assets/dynamic/adding-dynamic-media-as...

Avatar

Level 2

Thanks for your answer @shelly-goel, but those DM components allow me to download the asset/video ? if not, that's not an option

Avatar

Level 2
Ok @shelly-goel , The use case is simply they want to allow user to download assets (pdfs and videos mostly). As the browser allows to handle and download PDFs OOTB, the "issue" is only regarding Videos from S7.

Avatar

Level 2
Thanks for your answer @shelly-goel, but those DM components allow me to download the asset/video? If not, that's not an option.

Avatar

Employee Advisor
Yes these would render/ play the video within and not download though you asked for way to access/ workarounds. Would need to understand your use case and why would you want the end users to download your assets? Huge number of download requests would impact the performance too. OR are you looking for download/ sharing options internally?