当我开始视频聊天时,两个客户端上的视频窗口每 2 秒关闭并重新打开一次。控制台上有大量消息,但它们都来自 openTok javascript 文件。它与 session.publish(publisher) 函数的调用方式有关,但我不确定问题是什么。这个问题是新问题 - 上周运行良好,从那时起我就没有接触过客户端和服务器代码。确实有效的备份现在不起作用。最近 Tokbox 方面有什么变化吗?
如果有人可以看一下我的代码,我将不胜感激。
我的客户端代码位于: http: //paste.ubuntu.com/1135279/ 这是控制台输出,每次窗口打开和关闭时都会重复最后 6 行。
TB.min.js:251[DEBUG] opentok: TB.setLogLevel(4)
TB.min.js:251[DEBUG] opentok: Session.connect(413302)
TB.min.js:251[DEBUG] opentok: TB.checkSystemRequirements()
TB.min.js:251[DEBUG] opentok: TB.removeEventListener(sessionConnected)
TB.min.js:251[DEBUG] opentok: TB.addEventListener(sessionConnected)
TB.min.js:251[DEBUG] opentok: TB.removeEventListener(streamCreated)
TB.min.js:251[DEBUG] opentok: TB.addEventListener(streamCreated)
TB.min.js:251[DEBUG] opentok: TB.addEventListener(exception)
TB.min.js:251[DEBUG] opentok: TB.removeEventListener(exception)
TB.min.js:251[DEBUG] opentok: TB.addEventListener(exception)
TB.min.js:251[DEBUG] opentok: TB.setLogLevel(4)
TB.min.js:251[DEBUG] opentok: TB.checkSystemRequirements()
TB.min.js:251[DEBUG] opentok: TB.addEventListener(exception)
TB.min.js:251[DEBUG] opentok: TB.removeEventListener(exception)
TB.min.js:251[DEBUG] opentok: TB.addEventListener(exception)
chat:373TB.addEventListener
TB.min.js:251[DEBUG] opentok: TB.initSession(1_MX40MTMzMDJ-flR1ZSBBdWcgMDcgMTc6MzU6MDIgUERUIDIwMTJ-MC4zMzExMDQ3fg)
TB.min.js:251[DEBUG] opentok: TB.removeEventListener(sessionConnected)
TB.min.js:251[DEBUG] opentok: TB.addEventListener(sessionConnected)
TB.min.js:251[DEBUG] opentok: TB.removeEventListener(sessionDisconnected)
TB.min.js:251[DEBUG] opentok: TB.addEventListener(sessionDisconnected)
chat:377Uncaught ReferenceError: connectionCreatedHandler is not defined
TB.min.js:251[DEBUG] opentok: TB.sessionConnected: 1_MX40MTMzMDJ-flR1ZSBBdWcgMDcgMTc6MzU6MDIgUERUIDIwMTJ-MC4zMzExMDQ3fg - 5f4c204130c5bb9c7ba058dbb7da96fbb377e09d
chat:322sessionConnectedHandler
TB.min.js:251[DEBUG] opentok: TB.initPublisher(cPMLG7xrBPaEfhFwo2mvdrCkvPOe4NywvideoBox)
TB.min.js:251[DEBUG] opentok: Session.publish([object Object]):undefined
TB.min.js:251[DEBUG] opentok: Pending: publishToSession(1_MX40MTMzMDJ-flR1ZSBBdWcgMDcgMTc6MzU6MDIgUERUIDIwMTJ-MC4zMzExMDQ3fg,5f4c204130c5bb9c7ba058dbb7da96fbb377e09d,T1==cGFydG5lcl9pZD00MTMzMDImc2lnPTBiYThlMzVjYWY3OGQzNDk0MTA0ZmZhOTEwZjRlZDNjOTNhYjg2MTc6c2Vzc2lvbl9pZD0xX01YNDBNVE16TURKLWZsUjFaU0JCZFdjZ01EY2dNVGM2TXpVNk1ESWdVRVJVSURJd01USi1NQzR6TXpFeE1EUTNmZyZjcmVhdGVfdGltZT0xMzQ0Mzg2MTAzJm5vbmNlPTMwNzk0MyZyb2xlPXB1Ymxpc2hlcg==) on component publisher_1
TB.min.js:251[DEBUG] opentok: TB.connectionCreated
TB.min.js:251[DEBUG] opentok: TB.deviceAccessHandler: accessDialogOpened
TB.min.js:251[DEBUG] opentok: TB.resize
TB.min.js:251[DEBUG] opentok: TB.resize
TB.min.js:251[DEBUG] opentok: TB.deviceAccessHandler: accessDialogClosed
TB.min.js:251[DEBUG] opentok: TB.deviceAccessHandler: accessDenied
TB.min.js:251[DEBUG] opentok: Pending: cleanupView() on component publisher_1