Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
reddy-vishwanath committed Jul 30, 2024
1 parent 9f7a10f commit 5af107a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions atoms_video-web-story_video-web-story.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ <h1>atoms/video-web-story/video-web-story.tsx</h1>
return { videoUrl, format };
};

export const VideoWebStoryBase = ({ config, videoElement, imageElement, heroImage }) => {
export const VideoWebStoryBase = ({ config, videoElement, imageElement, heroImage, videoId }) => {
const { videoUrl, format } = getVideoData(videoElement);
const poster = imageElement
? `https://${config.publisherConfig["cdn-image"]}/${imageElement["image-s3-key"]}`
Expand All @@ -169,7 +169,7 @@ <h1>atoms/video-web-story/video-web-story.tsx</h1>
&lt;script async={undefined} custom-element="amp-video" src="https://cdn.ampproject.org/v0/amp-video-0.1.js" />
&lt;/Helmet>
&lt;amp-story-grid-layer template="fill">
&lt;amp-video autoplay="" height="720" width="480" poster={poster} layout="responsive">
&lt;amp-video autoplay="" height="720" width="480" poster={poster} layout="responsive" id={videoId}>
&lt;source src={videoUrl} type={`video/${format}`} />
&lt;/amp-video>
&lt;/amp-story-grid-layer>
Expand Down
Loading

0 comments on commit 5af107a

Please sign in to comment.