Browse Source

Merge branch 'refs/heads/master' into stable

moshaorui 2 days ago
parent
commit
46b1f957b7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      resources/views/gallery-detail.blade.php

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

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