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
prints false. The reason I found this is that I do some initialization stuff once vMix is connected. Everything I send to vMix goes through a custom send function which does some logging, then checks whether it is actually connected to vMix and if yes, sends the data.
However, I need to skip this check when I'm inside the callback because the connected() method returns false there.
Best regards
The text was updated successfully, but these errors were encountered:
I think that I have found the cause of the problem.. but I do not have the expertise to solve it perfectly. It all comes down to the order of the execution of the listener callbacks. It seems like the custom registered on('connect',...) listener is executed before the internal one, where the variable holding the state is updated.. I however have a quickfix to this issue, wrapping the custom registered listeners with a setTimeout(() => ..., 0) to let the event queue finish up its tasks before firing off the custom listeners.
Code example:
Hi @jensstigaard,
Thanks for this library. It makes interfacing with vMix very easy.
I did find a small bug though:
prints
false
. The reason I found this is that I do some initialization stuff once vMix is connected. Everything I send to vMix goes through a customsend
function which does some logging, then checks whether it is actually connected to vMix and if yes, sends the data.However, I need to skip this check when I'm inside the callback because the
connected()
method returns false there.Best regards
The text was updated successfully, but these errors were encountered: