Dynamic media component is not working in wcmmode disabled | Community
Skip to main content
Level 2
July 12, 2021
Solved

Dynamic media component is not working in wcmmode disabled

  • July 12, 2021
  • 3 replies
  • 3529 views

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
 
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 avvidya931

Hi @bimmiso ,

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

3 replies

Adobe Employee
July 12, 2021

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

Level 2
July 12, 2021

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

Level 2
July 12, 2021

 

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=label&id=222787778&handler=s7classics7sdkJSONResponse

With the following error

/*jsonp*/s7jsonError({"message":"Missing Video File","title":"Missing Video File"},"222787778");
 
Adobe Employee
July 12, 2021

@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.

avvidya931AuthorAccepted solution
Level 2
July 12, 2021

Hi @bimmiso ,

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

Level 2
July 12, 2021
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