Skip to content

Commit

Permalink
🐛 fix .mov display bug for quicktime video formats
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkjrs committed Mar 16, 2024
1 parent ac4d042 commit e820b7a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/AdDisplay/AdDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ function Ad({
className="promo-button-ad-display-video"
>
<source src={secure_url || ''} type="video/mp4" />
{secure_url.endsWith('.mov') ? (
<source
src={secure_url.replace('.mov', '.mp4') || ''}
type="video/mp4"
/>
) : null}
</video>
)}
</a>
Expand Down

0 comments on commit e820b7a

Please sign in to comment.