Forum Discussion
patmw
4 years agoExplorer
Data Streaming from Unity VR app to mobile (iOS/android/web) client
Hi there, I'm currently working on a VR app for a client, which will run on the Oculus Quest/Quest2. One of the base requirements is that the VR app can be interacted with from an external client...
RossBallan
4 years agoHonored Guest
Hey how's it going everyone.
I am also attempting to do this as well. Any luck on getting this working using Unity's networking?
- brazzoni4 years agoProtege
I've abandoned trying to do it with Unity's networking. I can make TCP connections between a react-native mobile and a unity build for the headset. I had to hack it together by logging the IP address of my headset and entering it into the mobile app. I'm struggling to find a good way to discover devices on a network. It would be awesome if I could use iOS's Bonjour or Androids NSD, but I'm kinda blocked on how I might run the Java code required for Androids NSD because I couldn't find any C# libraries for it.
I made an algorithm that discovers devices on a local network that are listening to a certain port. I got the IP address and Subnet from Node.js (os module). Then, used npm's NetMask to find the network address and I just iterated through every available address attempting to make connections. The next step would've been sending a handshake, so I can tell if the listener was a device that I programmed.
This is a bad system though because you're not guaranteed to be allowed to listen on the same port every time the app runs, and I worry about how flexible this system is on networks with different configurations.
- RossBallan4 years agoHonored Guest
Thanks for sharing! I am currently trying to set up a local connection were 360 videos playing on a HMD device are casted unto an app on an android device (table or phone).
This is probably less compilated than what you guys are doing but I'll update if I get this to work properly on my end 🙂
- brazzoni4 years agoProtege
Please do keep us updated!
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 months ago
- 7 months ago
- 9 months ago