コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Teaser - video feature

Avatar

Level 4

Hi Team,

Could someone suggest the best way approach to add/extend the video(should upload it from DAM) feature on proxy teaser component? 

 

Thanks in advance!

1 受け入れられたソリューション

Avatar

正解者
Community Advisor

Hi @Lakshmi9 

 

You can add a path browser option in the dialog to author the videos from DAM. In your HTL, add the below code for the HTML 5 video player

 

<video data-sly-attribute="${model.attributeMap}" id="my-video" class="video-js" controls preload="auto" poster="${properties.fileReference}" data-setup="{}">
<source src="${model.videoPath}" type='video/mp4'>
<p class="vjs-no-js">
To view this video please enable JavaScript, and consider upgrading to a web browser that
<a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
</p>
</video>

 

Hope it helps!

Thanks,
Kiran Vedantam

元の投稿で解決策を見る

1 返信

Avatar

正解者
Community Advisor

Hi @Lakshmi9 

 

You can add a path browser option in the dialog to author the videos from DAM. In your HTL, add the below code for the HTML 5 video player

 

<video data-sly-attribute="${model.attributeMap}" id="my-video" class="video-js" controls preload="auto" poster="${properties.fileReference}" data-setup="{}">
<source src="${model.videoPath}" type='video/mp4'>
<p class="vjs-no-js">
To view this video please enable JavaScript, and consider upgrading to a web browser that
<a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
</p>
</video>

 

Hope it helps!

Thanks,
Kiran Vedantam