Expand my Community achievements bar.

SOLVED

Load video from javascript videviewer of dynamic media scene7

Avatar

Level 6

Hi Team,

 

I'm trying to add video through javascript videoViewer instead of Dunamic media 

something like this,

var s7videoviewer = new s7viewers.VideoViewer({
            "containerId": "video-pc",
            "params": {
                "serverurl": "https://s7d9.scene7.com/is/image/",
                "contenturl": "https://s7d9.scene7.com/is/content/",
                "videoserverurl": "https://s7d9.scene7.com/is/content/",
                "asset": assetPath
            }
        });
but the video element is not coming but few elements that we have for dynamic media like social share and play icons are coming, but video element is not coming up.
How to solve this issue?
 
 
 
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

 

You can find here an example of how this should be done: https://github.com/AdobeDocs/dynamic-media-developer-resources.en/blob/main/help/aem-viewers-ref/c-h... 

You should be able to check in the browser console if there are any issues, just keep on mind that the "assetPath" is not the AEM path but the scene7 path, just double check the values you are passing along are similar to the ones in the examples, and check in the network tab what asset is being requested to scene7, that will help you to troubleshoot if you are asking the correct asset.

 

Hope this helps.



Esteban Bustamante

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi,

 

You can find here an example of how this should be done: https://github.com/AdobeDocs/dynamic-media-developer-resources.en/blob/main/help/aem-viewers-ref/c-h... 

You should be able to check in the browser console if there are any issues, just keep on mind that the "assetPath" is not the AEM path but the scene7 path, just double check the values you are passing along are similar to the ones in the examples, and check in the network tab what asset is being requested to scene7, that will help you to troubleshoot if you are asking the correct asset.

 

Hope this helps.



Esteban Bustamante

Avatar

Level 4

@Keerthi0555 Hi, 

 

If the codes check out, please check if video encoding is done on the aem assets folder where videos files are stored and all scene7 properties are generated for the video when it was uploaded. If not then there is some config issue of dynamic media.

 

Also, sometimes I have forgotten to publish the video and remember later that the video will serve from the publish server of dynamic media on both aem author and publish. Only when we publish the video it goes to dynamic media publish server. 

 

Scene 7 player documentation: 

https://s7d1.scene7.com/s7sdk/3.5/docs/jsdoc/symbols/s7sdk.video.VideoPlayer.html