【发布时间】:2016-07-21 10:48:51
【问题描述】:
我正在使用 node-js API 来使用 kurento。因此,我使用代码将发送方的 webrtcendpoint 连接到接收方端点 -
senderWebRtcEndPoint.connect(receiverWebRtcEndPoint, function(error) {
if (error) {
return console.log("Error in connecting endpoints :: "+error);
}
io.log.info("EndPointConnected");
});
使用此代码媒体开始流式传输到接收器。但是,如果发件人断开连接 -
- 如何断开接收端与发送端的连接?
- 如何销毁发送者端点?
- 如何从媒体管道释放该发送者端点?
- 创建新的发送者端点时,如何复用接收者的端点来连接新创建的发送者端点?
如果我能得到一个突出显示这些的示例(使用 JS-API)会更有帮助 -
- 端点彼此断开
- 销毁端点
- 破坏管道
- 将旧端点重新连接到新端点
- 端点通知端点的任何事件都与其他端点连接和断开
【问题讨论】:
标签: node.js webrtc kurento endpoints