Change to video
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
NekoVari 2025-04-10 23:56:31 +07:00
parent 858e817027
commit 674ce7f6d6
4 changed files with 66 additions and 3 deletions

View file

@ -0,0 +1,27 @@
import '../../css/video.css'
function PlayVideo({ src="hallway_FFF.mp4" }) {
const urlSource = `${import.meta.env.VITE_ASSETS_URL}/${src}`;
return(
<div className="video-container">
<video
autoPlay
muted
controls="none"
playsInline
loop
pointerEvents="none"
onLoadedData={(e) => {
e.target.play()
console.log("played");
}}
>
<source src={urlSource} type="video/mp4"/>
Your browser does not support the video tag.
</video>
</div>
)
}
export default PlayVideo