Skip to content

Commit

Permalink
añadida musica al video
Browse files Browse the repository at this point in the history
  • Loading branch information
yagonavajas committed Apr 25, 2024
1 parent cd1142e commit 3cc583a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Binary file modified webapp/public/videos/creditos.mp4
Binary file not shown.
16 changes: 9 additions & 7 deletions webapp/src/components/pages/Creditos.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@ import React, { useRef, useEffect } from 'react';
import '../../App.css';

function Creditos() {
const videoRef = useRef(null); // Crear la referencia
// const videoRef = useRef(null); // Crear la referencia

useEffect(() => {
if (videoRef.current) {
videoRef.current.playbackRate = 0.7; // Establecer la velocidad de reproducción al 80%
}
}, []);
// useEffect(() => {
// if (videoRef.current) {
// videoRef.current.playbackRate = 0.7; // Establecer la velocidad de reproducción al 80%
// }
// }, []);

// ref={videoRef}

return (
<div className='hero-container'>
<video ref={videoRef} src='/videos/creditos.mp4' autoPlay loop muted playsInline data-testid="creditos-video"/>
<video src='/videos/creditos.mp4' autoPlay playsInline data-testid="creditos-video"/>
</div>
);
}
Expand Down

0 comments on commit 3cc583a

Please sign in to comment.