소스 검색

相册确保预览不会发声

moshaorui 1 일 전
부모
커밋
83c3329054
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      resources/views/gallery-detail.blade.php

+ 2 - 0
resources/views/gallery-detail.blade.php

@@ -325,6 +325,8 @@
                     height: $img.height(),
                     display: 'none' // Initially hidden until loaded
                 }
+            }).on('loadedmetadata', function() {
+                $(this).prop('muted', true); // 确保静音
             });
 
             if (loadIndexes[index] === 0 && videoUrl != "") {