leadedge / ofxNDI

An Openframeworks addon to allow sending and receiving images over a network using the NewTek Network Device Protocol.
GNU General Public License v3.0
134 stars 48 forks source link

should it be possible to send two NDI streams from the same openframeworks app ? #43

Closed cyberboy666 closed 10 months ago

cyberboy666 commented 10 months ago

i tried sending two NDI streams from my app by creating two ofxNDIsender objects, however when i run ndiSender.CreateSender on the second one i get this error:

ofxNDIsend::CreateSender - no pNDI_send

i quickly reproduced this by modifying the example-sender code to use a second sender and saw same result.

is this expected behavior ? or should i be able to send two streams from same openframeworks app ?

(i am on linux btw - popos)

leadedge commented 10 months ago

I investigated this and find that the error occurs if the sender names are the same. With different names, there are no errors and two senders work correctly.

cyberboy666 commented 10 months ago

oh whoop thought i changed the name in my test but accidentally left it the same - thanks for your help and for a great addon :))