EDIT: Current situation: I have most of a program working but when users connect two issues happen. 1. the host application stops working/rendering, only the clients see the image now. 2. only a single client appears to be able to interact with UI, the rest are just getting a stream with no way to click on the buttons.
My current suspicion is that the unity input is being “stolen” by the client and thus none of the other tabs work. I’m testing this locally with local host and multiple tabs/windows, as the server we intend to deploy to is headless and a bit of a pain to use. (It’s accessed through my oculus VR Virtual Desktop application because of physical space issues we are having at the moment, which makes iterating there a bit painful.)
The current puzzle is how to get every client watching through the broadcast page to interact with the UI as they wish, instead of locking down to a single user’s input at a time. The app has no controllers or “gameplay”, it is a remote virtual DJ with buttons to interact with it.
Feel free to skip the below, I’m leaving it here cause it’s part of my journey so far, but a lot has been solved between the original post and where I am at. If my situation changes I will also update this post as best I can.
-------- Original post below ---------
I have been trying to get this working, and I can get to my localhost/receiver/index.html page and see the scene if I check the unity setting for “automatic streaming”.
My scene is very simple, just some UI and some sounds (it’s meant to be a live music playing application for our local lan network.)
The video shows up but the audio won’t come through. If I check the stats on the broadcast page, it shows no audio being sent (0kb)
(I can’t seem to highlight the page contents to copy and paste the text as it keeps changing and eats the highlighting, so I’m attaching an image instead)
I’m assuming this does not stream audio out of the box? The documentation is all very vague and to be honest I don’t understand what is happening in the demo scene for VideoPlayer Sample (there seems to be too much to the scene for me to understand how the audio is getting sent.) And my examples also seem to be missing an Audio demo scene, at least nothing came up with a search in unity after installing the examples. The default Broadcast scene doesn’t send sound, so I’m guessing there is more to this then just setting automatic broadcast to get sound working. But I’m totally lost because there are SO MANY scripts and most are just from the demo scenes, some don’t even match the documentation names, and more.
Can someone explain to me like I’m 2 years old the shortest, dumbest way to make the audio the main camera hears go out to the broadcast when people view the page?