1
當我開始視頻聊天時,兩個客戶端上的視頻窗口關閉並每2秒重新打開一次。控制檯上有大量消息,但都來自openTok JavaScript文件。它與如何調用session.publish(publisher)函數有關,但我不確定問題是什麼。這個問題是新的 - 上週工作正常,從那時起我沒有觸及客戶端和服務器代碼。 DID工作的備份現在不會。 Tokbox端有什麼變化?Opentok連續窗口重裝
如果有人可以看看我的代碼,我會很感激。
我的客戶端代碼位於: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