Sfoglia il codice sorgente

default mute

master
azri 1 settimana fa
parent
commit
a3cb030ec1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      src/components/VideoAds/VideoAds.jsx

+ 1
- 1
src/components/VideoAds/VideoAds.jsx Vedi File

@@ -5,7 +5,7 @@ import videoAds from "../../assets/video/amberads.mp4";
5 5
 
6 6
 const VideoAds = ({ video_url, height, width }) => {
7 7
   const videoRef = useRef(null);
8
-  const [isMuted, setIsMuted] = useState(false);
8
+  const [isMuted, setIsMuted] = useState(true);
9 9
 
10 10
   const toggleMute = () => {
11 11
     if (videoRef.current) {

Loading…
Annulla
Salva