【m】远端视频开发
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user