You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m using the binarypack through peer.js to send data from the Kinect 2, using Kinect2 library, which sometimes includes negative infinity. This is causing me to get the error “Invalid Integer” repeatedly from line 400, which is slowing down my peer connection significantly. I’ve fixed it in my own code with adding this as an additional option at line 399:
else if(num===Number.NEGATIVE_INFINITY){num=0;}
In my use case setting num to 0 solves the issue. Although there's likely a better way to add a more universal fix.
The text was updated successfully, but these errors were encountered:
Thanks so much for this helpful library!
I’m using the binarypack through peer.js to send data from the Kinect 2, using Kinect2 library, which sometimes includes negative infinity. This is causing me to get the error “Invalid Integer” repeatedly from line 400, which is slowing down my peer connection significantly. I’ve fixed it in my own code with adding this as an additional option at line 399:
else if(num===Number.NEGATIVE_INFINITY){num=0;}
In my use case setting num to 0 solves the issue. Although there's likely a better way to add a more universal fix.
The text was updated successfully, but these errors were encountered: