Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Dynamic media component is not working in wcmmode disabled

Avatar

Level 2

AEM Version Used

Adobe Experience Manager, Version 2021.6.5586
Video works in editor mode and also when published, but not in preview mode if the URL is appended with wcmmode=disabled
 
1 Accepted Solution

Avatar

Correct answer by
Level 2

Hi @Bimmi_Soi ,

Thanks for the reply, I was checking the same in dev environment and I see that the viewers used in /apps/dam/components/scene7/dynamicmedia/clientlibs/dynamicmedia/js/init.js is picking http as the domain name instead of https when in WCMMode disabled which is resulting in mixed content error and as viewers are not loaded , video isn't loaded in disabled mode

Whereas it picks the https in publish URL. This component doesn't seem to have Java file as well

Any light on how it is picking up the domains for the viewers

 

Reagards,

Vidya AV

View solution in original post

10 Replies

Avatar

Employee Advisor

@avvidya931 ,

 

Ideally it should work in all the mode.

Can you please check what is the url getting created on wcmmode=disabled and compare it with other modes , also please check the network tab.

 

And check the media in Dynamic media console also there your-media and your-media-AVS both files should be published. If not please try publishing those.

 

 Thanks!

Avatar

Level 2

Hi @Bimmi,

I see that the code is different in preview and editor mode is different

In Normal URL

<div id="dynamicmedia_58304372" data-current-page="/content/cio-sites/us/en/home" data-page-locale="en" data-asset-path="accenturestage/test_dynamic_media-AVS" data-asset-name="test_dynamic_media.mp4" data-asset-type="videoavs" data-viewer-type="VideoViewer" data-viewer-path="/etc/dam/viewers/s7viewers/" data-imageserver="/is/image/" data-videoserver="/is/content/" data-contenturl="/is/content" data-dms7 class="s7dm-dynamic-media">

 

With WCMModeDisabled

<div id="dynamicmedia_58304372" data-current-page="/content/cio-sites/us/en/home" data-page-locale="en" data-asset-path="accenturestage/test_dynamic_media-AVS" data-asset-name="test_dynamic_media.mp4" data-asset-type="videoavs" data-viewer-type="VideoViewer" data-viewer-path="http://s7d1.scene7.com/s7viewers/" data-imageserver="http://s7d1.scene7.com/is/image/" data-videoserver="http://s7d1.scene7.com/is/content/" data-contenturl="http://s7d1.scene7.com/is/content/" data-wcmdisabled data-dms7 class="s7dm-dynamic-media">

Div formed is this

Video plays in normal URL but not in WCMMode Disabled

 

Regards,

Vidya AV

Avatar

Level 2

 

In Editor mode URL formed is this:

http://localhost:4502/is/content/<<config_name>>/test_dynamic_media-0x720-3000k

Where as IN WCMMode Disabled URL formed is 

http://s7d1.scene7.com/is/image/<<config_name>>/test_dynamic_media-AVS?req=set,json,UTF-8&labelkey=l...

With the following error

/*jsonp*/s7jsonError({"message":"Missing Video File","title":"Missing Video File"},"222787778");
 

Avatar

Employee Advisor

@avvidya931 ,

 

actually test_dynamic_media-AVS should  be used. Can you check in your dynamic media console if test_dynamic_media-AVS file is published or not.

Avatar

Correct answer by
Level 2

Hi @Bimmi_Soi ,

Thanks for the reply, I was checking the same in dev environment and I see that the viewers used in /apps/dam/components/scene7/dynamicmedia/clientlibs/dynamicmedia/js/init.js is picking http as the domain name instead of https when in WCMMode disabled which is resulting in mixed content error and as viewers are not loaded , video isn't loaded in disabled mode

Whereas it picks the https in publish URL. This component doesn't seem to have Java file as well

Any light on how it is picking up the domains for the viewers

 

Reagards,

Vidya AV

Avatar

Employee Advisor

@avvidya931 

How are you creating the url.

Go to /conf/global/settings/cloudconfigs/dmscene7/jcr:content and check the value of property publishServer on author and publisher.

Ideally the property should have the value something like https://s7d1.scene7.com , that is with https.

If the values are different on author and publisher try to reconfigure the cloudconfig on that environment.

 

Hope this helps.

 

Thanks

Avatar

Level 2
Which URl? Dynamic media video URL ? I just dragged and dropped the video inside the component. And the video has many parameters like serverUrl , we have the server url as http only, but my doubt is how can it take https in publish and all work well

Avatar

Level 2
By any chance is there any configuration in aem publish instances that would convert all http url's to https?

Avatar

Level 2
@Bimmi , thanks alot for taking time and your quick response !! It does help ! Will check the config in both environment !

Avatar

Employee Advisor
If it is a custom component simply dragging and dropping the image in component will not enble DM. There must be some code related to enable dynamic media.