buresu / ndi-python

NewTek NDI Python wrapper
MIT License
133 stars 30 forks source link

NDI Routing uses 127.0.0.1 for routing source URL #26

Closed DanT867 closed 1 year ago

DanT867 commented 1 year ago

Running on MacOS, ndi-python version 5.1.1.5 installed through pip/brew pip install ndi-python Requirement already satisfied: ndi-python in /opt/homebrew/lib/python3.10/site-packages (5.1.1.5)

I'm trying to implement an NDI router following the example in examples/router.py

I thought I had it set up correctly, and NDI players can see it, but they do not properly switch to the routed source. I modified examples/find.py to print out the URL associated with the NDI source and discovered that it was being mapped to localhost (127.0.0.1) e.g.: dans-macbook:example dan$ python find.py Network sources (12 found). ..

  1. DANS-MACBOOK.BXB (HDMI1) 127.0.0.1:5961
  2. DANS-MACBOOK.BXB (HDMI2) 127.0.0.1:5962
  3. DANS-MACBOOK.BXB (HDMI3) 127.0.0.1:5963
  4. DANS-MACBOOK.BXB (HDMI4) 127.0.0.1:5964
  5. DANS-MACBOOK.BXB (HDMI5) 127.0.0.1:5965 ...

I do not find anything in the NDI SDK to specify the local address which should be used (am I missing something?). Is this a problem with ndi-python, or is it a bug in the Mac version of the SDK?

DanT867 commented 1 year ago

I'm closing this because I currently think the problem is in the SDK