小编And*_*bov的帖子

发送同步消息后,我在哪里可以捕获来自 Janus WebRTC 服务器的响应

将 videoroom 插件附加到 Janus 后,在“成功”回调中,我向它发送同步消息

janus.attach(
    {           
        plugin: "janus.plugin.videoroom",
        opaqueId: opaqueId,
        success: function(pluginHandle) {
            roomMaster = pluginHandle;
            var isExist = {
                "request" : "exists",
                "room" : myroom
            };

            roomMaster.send({"message": isExist})
        },
Run Code Online (Sandbox Code Playgroud)

并在控制台中从 获得响应janus.js,但在文档中告诉该插件将向我response发送消息。我不明白 - 我在哪里可以抓住它?

onmessage: function(msg, jsep){

    // is fired only after sending async requests like "join", "start" - not "exists"
    conslole.log(msg);  
}
Run Code Online (Sandbox Code Playgroud)

有人知道吗?

谢谢

javascript video-conferencing webrtc janus-gateway

2
推荐指数
1
解决办法
809
查看次数