https://github.com/leancloud/js-realtime-sdk/tree/master/demo/webrtc2
如何在自己的电脑上调试这个Demo啊?
-
创建时间
17年4月13日
-
最后回复
17年4月19日
-
8
回复
-
1.4K
浏览
-
2
用户
-
4
链接
https://github.com/leancloud/js-realtime-sdk/tree/master/demo/webrtc2
如何在自己的电脑上调试这个Demo啊?
需要 npm run build 一下,否则没有 dist,也可以切换到 dist 分支。
然后起个静态 server 就行了。
这个里有个在线版本的: https://leancloud.github.io/js-realtime-sdk/demo/webrtc/1
git checkout origin/dist
明白了
另外
如何配置中转服务器?实在这个方法写createWebRTCClient吗
var configuration = { iceServers: [{
urls: "stun:stun.services.mozilla.com",
username: "louis@mozilla.com",
credential: "webrtcdemo"
}]
};
return realtime.createWebRTCClient(this.id,configuration).then(function (client) {
_this.client = client;
client.on('call', function (call) {
_this.incomingCall = call;
call.on('cancel', function () {
_this.incomingCall = null;
});
});
主题 | 分类 | 回复 | 浏览 | 活动 |
---|---|---|---|---|
IM 安全与签名使用 | 实时通信 | 2 | 987 | 17-05-26 |
关于调用rest api使用户禁言 | 实时通信 | 1 | 927 | 17-12-28 |
Android 如何获取AVIMConversation 的 mute状态? | 实时通信 | 1 | 976 | 17-03-23 |
一对一聊天,怎么使用 conversationId? | 实时通信 | 2 | 926 | 15-08-20 |
短信发送延迟问题,几个小时后才收到 | 实时通信 | 3 | 1.2K | 15-11-12 |