【m】远端视频开发

This commit is contained in:
2026-03-04 22:29:10 +08:00
parent a5d9368ae1
commit 957ab561bf
7 changed files with 156 additions and 57 deletions

View File

@@ -317,13 +317,6 @@ function bindDomEvents() {
}
}
/**
* 初始化WebRTC
*/
function initWebRTC() {
// 这里可以添加WebRTC初始化代码
console.log('Initializing WebRTC...');
}
// 页面加载完成后初始化
window.addEventListener('DOMContentLoaded', async () => {
@@ -338,13 +331,16 @@ window.addEventListener('DOMContentLoaded', async () => {
}
// 初始化 store
store.init();
// 加入通话
store.joinCall(connectionId);
//await store.init();
// 初始化渲染器
const renderer = new UIRenderer(store);
new UIRenderer(store);
// 加入通话
await store.joinCall(connectionId);
// 设置WebRTC连接
await store.setUp(connectionId);
// 绑定DOM事件
bindDomEvents();