瀏覽代碼

default mute

master
azri 8 月之前
父節點
當前提交
a3cb030ec1
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/components/VideoAds/VideoAds.jsx

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

5
 
5
 
6
 const VideoAds = ({ video_url, height, width }) => {
6
 const VideoAds = ({ video_url, height, width }) => {
7
   const videoRef = useRef(null);
7
   const videoRef = useRef(null);
8
-  const [isMuted, setIsMuted] = useState(false);
8
+  const [isMuted, setIsMuted] = useState(true);
9
 
9
 
10
   const toggleMute = () => {
10
   const toggleMute = () => {
11
     if (videoRef.current) {
11
     if (videoRef.current) {

Loading…
取消
儲存