视频会议

This commit is contained in:
duoaohui
2026-05-18 23:13:59 +08:00
parent c2bcfdbbac
commit b8c2bf2dc4
4 changed files with 90 additions and 6 deletions

View File

@@ -1265,6 +1265,10 @@ export const useMeetingStore = defineStore('meeting', () => {
try { stream.getTracks().forEach(t => t.stop()) } catch {}
throw new Error('未获取到屏幕共享视频流')
}
// contentHint='detail' 提示浏览器编码器按"清晰度优先"策略:
// 倾向保留高分辨率与文字锐度,降低不必要的帧率/运动估计开销,对 PPT/代码屏共享体验更好。
// 仅设置不报错的浏览器Chromium 系全部支持),不支持时静默忽略。
try { track.contentHint = 'detail' } catch {}
let producer
try {