Skip to content

Commit

Permalink
Merge pull request #36 from SteinCodeAT/dev-te
Browse files Browse the repository at this point in the history
fix: added placeholder image for loading videos
  • Loading branch information
kalvinter committed Apr 27, 2024
2 parents b138b59 + 1375fc3 commit efa0880
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/media/Mp4Gif.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
const {src, classes} = Astro.props
import VideoPlaceHolderImage from './../../img/loading-placeholder-image.png'
---

<video class={(classes !== undefined) ? classes : ''} autoplay loop muted playsinline>
<video class={(classes !== undefined) ? classes : ''} autoplay loop muted playsinline poster={VideoPlaceHolderImage.src}>
<source src={src} type="video/mp4" />
</video>
Binary file added src/img/loading-placeholder-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit efa0880

Please sign in to comment.