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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Download Link towards Scene7 not working

mr-smith
Level 1
Level 1

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.

AEM DAM DAM Assets Download Links Dynamic Media Scene 7 API Scene7
1 Accepted Solution
shelly-goel
Correct answer by
Community Advisor
Community 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
Jineet_Vora
Level 4
Level 4

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

kautuk_sahni
Community Manager
Community Manager
@Jineet_Vora, Thank you for post solution with AEM Community. This helps in posterity. Keep the wonderful contribution going (both as learner and contributor).
shelly-goel
Correct answer by
Community Advisor
Community 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

mr-smith
Level 1
Level 1

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

mr-smith
Level 1
Level 1
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.
mr-smith
Level 1
Level 1
Thanks for your answer @shelly-goel, but those DM components allow me to download the asset/video? If not, that's not an option.
shelly-goel
Community Advisor
Community 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?