diff --git a/web/e.cash/components/videobackground/index.js b/web/e.cash/components/videobackground/index.js --- a/web/e.cash/components/videobackground/index.js +++ b/web/e.cash/components/videobackground/index.js @@ -1,9 +1,24 @@ +import { useEffect, useRef, useContext } from 'react'; import { VideoCtn } from './styles'; +import { ThemeContext } from 'styled-components'; export default function Video({ videoname }) { + const themeContext = useContext(ThemeContext); + const videoRef = useRef(); + + useEffect(() => { + videoRef.current.playbackRate = themeContext.filters.videospeed; + }, [themeContext.filters.videospeed]); + return ( -