浏览代码

unmute video

master
azri 1周前
父节点
当前提交
27301eac09
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/components/VideoAds/VideoAds.jsx

+ 1
- 1
src/components/VideoAds/VideoAds.jsx 查看文件

@@ -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(true);
8
+  const [isMuted, setIsMuted] = useState(false);
9 9
 
10 10
   const toggleMute = () => {
11 11
     if (videoRef.current) {

正在加载...
取消
保存