使用Firestore的webRTC视频聊天

时间:2020-03-17 16:26:23

标签: javascript firebase google-cloud-firestore webrtc

对我来说,解释webRTC和firestore的代码实验室还不够清楚。 https://webrtc.org/getting-started/firebase-rtc-codelab

我在最后的collectICECandidates步骤上遇到了麻烦。我应该在代码中的哪个位置调用此函数,以及如何获取该函数所需的本地和远程参数?

2 个答案:

答案 0 :(得分:1)

我还需要帮助进行设置。远程视频是空白的,当我尝试连接时,控制台中出现了“ Got room”。

为了解决这个问题,我在Github的Solution分支中找到了这个: https://github.com/webrtc/FirebaseRTC/blob/solution/public/app.js

答案 1 :(得分:0)

您可以在以下分支中找到更正的描述: https://github.com/meldaravaniel/FirebaseRTC

还有一个 solution 分支,您可以从中下载整个文件。

相关问题