stereolabs / zed-sdk

⚡️The spatial perception framework for rapidly building smart robots and spaces
https://stereolabs.com
MIT License
788 stars 458 forks source link

Problem with getStreamingDeviceList #209

Closed RamadanAhmed closed 4 years ago

RamadanAhmed commented 4 years ago

Hi, I want to get all streaming devices but when I use this function, it returns 0 So what the problem ? https://github.com/stereolabs/zed-examples/blob/57301b6560be99e55a746d1251d51ca708d4628e/camera%20streaming/receiver/src/main.cpp#L79

obraun-sl commented 4 years ago

Hi, Is your sender device on the same local network than the receiver ?

RamadanAhmed commented 4 years ago

yes they both on the same switch and same working group(on windows)

obraun-sl commented 4 years ago

OK. Basically, getStreamingDeviceList() will look at the broadcast message send from each sender on port 20001. Once a message is caught with the informations filled, it will fill the vector. Therefore make sure :

On windows, make sure that the applications are authorized for the network (popup that should appear first time you launch your program).