Skip to content

Commit

Permalink
Merge pull request #133 from adobe/stage
Browse files Browse the repository at this point in the history
Stage
  • Loading branch information
louisachu authored Feb 15, 2024
2 parents 49a26b3 + ff18833 commit d06d8c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hlx_statics/blocks/video-carousel/video-carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export default async function decorate(block) {
// Render the url link through video tag within right container of one of the video carousel slide.
// if autoplay is true, add autoplay attribute to the video tag.
html = `<div style="left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.25%;">
<video loading="lazy" style="border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;" ${autoPlay === 'true' ? `autoplay="true"` : ""} preload="metadata" playsinline muted>
<video controls loading="lazy" style="border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;" ${autoPlay === 'true' ? `autoplay="true"` : ""} preload="metadata" playsinline muted>
<source src="${url}" />
</video>
</div>`;
Expand Down

0 comments on commit d06d8c5

Please sign in to comment.