Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebRTC issue on local server #292

Open
starmaid opened this issue Feb 11, 2024 · 0 comments
Open

WebRTC issue on local server #292

starmaid opened this issue Feb 11, 2024 · 0 comments

Comments

@starmaid
Copy link

starmaid commented Feb 11, 2024

I saw that online webRTC is down #286, but out of curiosity tried to run it myself. I cloned hydra-server and ran it. initStream works fine using the frontend included with the server!

initstream1

Then I set the .env for hydra (this repo) to reference my locally running hydra-server. This seemed to work, because i only saw the stream I was broadcasting, not anyone else's.

Mine:

pb.list()
Array(3) [ "[object Object]", "screen1", "bcB_MHPUI" ]

hydra.ojack.xyz at the time:

pb.list()
Array(52) [ "usSg9ha6BimoZFHkACsA", "4qgFHC538ORvDq2MADjj", ... ]

I set it to use the regular bundle.js instead of the minified, tried to run initStream, and get this error:

Uncaught (in promise) ReferenceError: log is not defined
    <anonymous> repl.js:7
    promise callback* repl.js:7

To actually learn what the error was, I just change log to console.log in hydra/src/views/editor/repl.js. Now I get:

got stream! KrpDIG-Iuuuei_O1AAAG 
MediaStream { id: "{a2deaaf2-563b-4d78-8ffb-5f20c683ad5e}", active: true, onaddtrack: null, onremovetrack: null }

process.nextTick is not a function log-error repl.js:7:29

I don't know what to do from here. Any ideas? This doesn't sound like a COORS thing, I have no deny entries in my console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant