Skip to content

Commit

Permalink
remove some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyDavidsz committed Dec 1, 2022
1 parent e5a2aac commit 1455370
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions src/osc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export class OSC {
break
case 'activeSpeaker':
if (this.instance.ZoomClientDataObj.activeSpeaker !== data.args[1].value) {
this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
// this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
this.instance.ZoomClientDataObj.activeSpeaker = data.args[1].value
this.instance.variables?.updateVariables()
this.instance.checkFeedbacks('indexBased')
Expand All @@ -214,65 +214,65 @@ export class OSC {
}
break
case 'videoOn':
this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
// this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
this.instance.ZoomUserData[zoomId].videoOn = true
this.instance.checkFeedbacks('indexBased')
this.instance.checkFeedbacks('galleryBased')
this.instance.checkFeedbacks('groupBased')

break
case 'videoOff':
this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
// this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
this.instance.ZoomUserData[zoomId].videoOn = false
this.instance.checkFeedbacks('indexBased')
this.instance.checkFeedbacks('galleryBased')
this.instance.checkFeedbacks('groupBased')

break
case 'mute':
this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
// this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
this.instance.ZoomUserData[zoomId].mute = true
this.instance.checkFeedbacks('indexBased')
this.instance.checkFeedbacks('galleryBased')
this.instance.checkFeedbacks('groupBased')

break
case 'unMute':
this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
// this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
this.instance.ZoomUserData[zoomId].mute = false
this.instance.checkFeedbacks('indexBased')
this.instance.checkFeedbacks('galleryBased')
this.instance.checkFeedbacks('groupBased')
break
case 'handRaised':
this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
// this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
this.instance.ZoomUserData[zoomId].handRaised = true
this.instance.checkFeedbacks('indexBased')
this.instance.checkFeedbacks('galleryBased')
this.instance.checkFeedbacks('groupBased')
break
case 'handLowered':
this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
// this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
this.instance.ZoomUserData[zoomId].handRaised = false
this.instance.checkFeedbacks('indexBased')
this.instance.checkFeedbacks('galleryBased')
this.instance.checkFeedbacks('groupBased')

break
case 'online':
this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
// this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
this.createZoomUser(data).then(() => (this.updateLoop = true))
break
case 'offline':
this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
// this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
this.instance.ZoomUserOffline[zoomId] = this.instance.ZoomUserData[zoomId]
delete this.instance.ZoomUserData[zoomId]
let index = this.instance.ZoomVariableLink.findIndex((id) => id.zoomId === zoomId)
this.instance.showLog('debug', 'Removed:' + this.instance.ZoomVariableLink.splice(index, 1))
this.updateLoop = true
break
case 'userNameChanged':
this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
// this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
this.instance.ZoomUserData[zoomId].userName = data.args[1].value
let findIndex = this.instance.ZoomVariableLink.findIndex((id) => id.zoomId === zoomId)
this.instance.ZoomVariableLink[findIndex].userName = data.args[1].value
Expand All @@ -281,8 +281,11 @@ export class OSC {
case 'chat':
this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
break
case 'audioStatus':
// this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
break
case 'roleChanged':
this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
// this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
this.instance.ZoomUserData[zoomId].userRole = data.args[4].value
break
case 'stoppedSpeaking':
Expand All @@ -308,6 +311,7 @@ export class OSC {
break

case 'galleryOrder':
// this.instance.showLog('OSC', 'receiving:' + JSON.stringify(data))
this.instance.ZoomClientDataObj.galleryOrder.length = 0
data.args.forEach((order: { type: string; value: number }) => {
this.instance.ZoomClientDataObj.galleryOrder.push(order.value)
Expand Down

0 comments on commit 1455370

Please sign in to comment.