【m】修复没有声音问题

This commit is contained in:
2026-03-09 20:01:58 +08:00
parent a9ea2c2acb
commit ac0f2fcef2

View File

@@ -247,7 +247,7 @@ class UIRenderer {
// 确保视频元素的属性正确设置 // 确保视频元素的属性正确设置
this.elements.remoteVideo.autoplay = true; this.elements.remoteVideo.autoplay = true;
this.elements.remoteVideo.playsinline = true; this.elements.remoteVideo.playsinline = true;
this.elements.remoteVideo.muted = true; this.elements.remoteVideo.muted = false; // 不要静音远程视频,否则听不到对方的声音
// 关键设置:启用硬件加速和最佳质量渲染 // 关键设置:启用硬件加速和最佳质量渲染
this.elements.remoteVideo.style.transform = 'translateZ(0)'; // 启用硬件加速 this.elements.remoteVideo.style.transform = 'translateZ(0)'; // 启用硬件加速