Skip to content

Commit

Permalink
getting rid of the cache for videos
Browse files Browse the repository at this point in the history
  • Loading branch information
danielc-n committed Oct 28, 2024
1 parent 7e6a930 commit 3c50495
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ export default function TranslationHelpsMultimediaCard({
<div className="image-name">{imagePath[0]}</div>
{/* Check if the path is a video (e.g., ends with .mp4) */}
{imagePath[1].match(/\.(mp4|webm|ogg)$/i) ? (
// <video
// key={index}
// src={imagePath[1]}
// controls
// className="gallery-video"
// />
<VideoPlayer key={index} videoUrl={imagePath[1]} />
<video
key={index}
src={imagePath[1]}
controls
className="gallery-video"
/>
// <VideoPlayer key={index} videoUrl={imagePath[1]} />
) : (
<img
key={index}
Expand Down

0 comments on commit 3c50495

Please sign in to comment.