def _populate(self):
     super(VoiceChatManager, self)._populate()
     g_playerEvents.onAccountBecomePlayer += self.onAccountBecomePlayer
     chatManager.subscribeChatAction(self.checkForInitialization, CHAT_ACTIONS.VOIPSettings)
     voipMgr = getVOIPManager()
     voipMgr.channelsMgr.onInitialized += self.__initResponse
     voipMgr.OnCaptureDevicesUpdated += self.__captureDevicesResponse
     voipMgr.onPlayerSpeaking += self.__onPlayerSpeaking
示例#2
0
 def populateUI(self, proxy):
     UIInterface.populateUI(self, proxy)
     chatManager.subscribeChatAction(self.processFailedMessage,
                                     CHAT_ACTIONS.VOIPSettings)
     import VOIP
     VOIP.getVOIPManager().channelsMgr.onInitialized += self.__initResponse
     VOIP.getVOIPManager(
     ).OnCaptureDevicesUpdated += self.__captureDevicesResponse
示例#3
0
 def _populate(self):
     super(VoiceChatManager, self)._populate()
     g_playerEvents.onAccountBecomePlayer += self.onAccountBecomePlayer
     chatManager.subscribeChatAction(self.checkForInitialization,
                                     CHAT_ACTIONS.VOIPSettings)
     voipMgr = getVOIPManager()
     voipMgr.channelsMgr.onInitialized += self.__initResponse
     voipMgr.OnCaptureDevicesUpdated += self.__captureDevicesResponse
     voipMgr.onPlayerSpeaking += self.__onPlayerSpeaking
示例#4
0
 def onConnected(self):
     LOG_VOIP_INT('VOIPManager.subscribe')
     voipEvents = g_messengerEvents.voip
     voipEvents.onChannelEntered += self.__onChatChannelEntered
     voipEvents.onChannelLeft += self.__onChatChannelLeft
     voipEvents.onCredentialReceived += self.__onCredentialReceived
     params = self.bwProto.voipProvider.getChannelParams()
     if params[0]:
         self.__onChatChannelEntered(*params)
     chatManager.subscribeChatAction(self.__onRequestUsersRoster, CHAT_ACTIONS.requestUsersRoster)
     chatManager.subscribeChatAction(self.__onChatActionSetMuted, CHAT_ACTIONS.setMuted)
     chatManager.subscribeChatAction(self.__onChatActionUnsetMuted, CHAT_ACTIONS.unsetMuted)
     chatManager.subscribeChatAction(self.__onChatResponseMutedError, CHAT_RESPONSES.setMutedError)
     chatManager.subscribeChatAction(self.__onChatResponseMutedError, CHAT_RESPONSES.unsetMutedError)
     self.channelsMgr.onConnected()
 def addListener(self, callback, action, cid = None):
     chatManager.subscribeChatAction(callback, action, cid)
示例#6
0
 def addListener(self, callback, action, cid = None):
     chatManager.subscribeChatAction(callback, action, cid)
示例#7
0
 def onConnected(self):
     chatManager.subscribeChatAction(self.__onEnterChatChannel,
                                     CHAT_ACTIONS.VOIPSettings)
     chatManager.subscribeChatAction(self.__onLeftChatChannel,
                                     CHAT_ACTIONS.channelDestroyed)
     chatManager.subscribeChatAction(self.__onLeftChatChannel,
                                     CHAT_ACTIONS.selfLeave)
     chatManager.subscribeChatAction(self.__onUserCredentials,
                                     CHAT_ACTIONS.VOIPCredentials)
     chatManager.subscribeChatAction(self.__onRequestUsersRoster,
                                     CHAT_ACTIONS.requestUsersRoster)
     chatManager.subscribeChatAction(self.__onChatActionSetMuted,
                                     CHAT_ACTIONS.setMuted)
     chatManager.subscribeChatAction(self.__onChatActionUnsetMuted,
                                     CHAT_ACTIONS.unsetMuted)
     chatManager.subscribeChatAction(self.__onChatResponseMutedError,
                                     CHAT_RESPONSES.setMutedError)
     chatManager.subscribeChatAction(self.__onChatResponseMutedError,
                                     CHAT_RESPONSES.unsetMutedError)
     self.channelsMgr.onConnected()
 def populateUI(self, proxy):
     UIInterface.populateUI(self, proxy)
     chatManager.subscribeChatAction(self.processFailedMessage, CHAT_ACTIONS.VOIPSettings)
     import VOIP
     VOIP.getVOIPManager().channelsMgr.onInitialized += self.__initResponse
     VOIP.getVOIPManager().OnCaptureDevicesUpdated += self.__captureDevicesResponse
示例#9
0
 def onConnected(self):
     chatManager.subscribeChatAction(self.__onEnterChatChannel, CHAT_ACTIONS.VOIPSettings)
     chatManager.subscribeChatAction(self.__onLeftChatChannel, CHAT_ACTIONS.channelDestroyed)
     chatManager.subscribeChatAction(self.__onLeftChatChannel, CHAT_ACTIONS.selfLeave)
     chatManager.subscribeChatAction(self.__onUserCredentials, CHAT_ACTIONS.VOIPCredentials)
     chatManager.subscribeChatAction(self.__onRequestUsersRoster, CHAT_ACTIONS.requestUsersRoster)
     chatManager.subscribeChatAction(self.__onChatActionSetMuted, CHAT_ACTIONS.setMuted)
     chatManager.subscribeChatAction(self.__onChatActionUnsetMuted, CHAT_ACTIONS.unsetMuted)
     chatManager.subscribeChatAction(self.__onChatResponseMutedError, CHAT_RESPONSES.setMutedError)
     chatManager.subscribeChatAction(self.__onChatResponseMutedError, CHAT_RESPONSES.unsetMutedError)
     self.channelsMgr.onConnected()