vanevery / p5LiveMedia

Simple P5 WebRTC
MIT License
69 stars 12 forks source link

question about running signalling server #21

Open sophiadeak opened 5 months ago

sophiadeak commented 5 months ago

(I'm a P5 beginner so I apologize if this should be obvious)

I'm confused about how to run this so I can access camera feeds from two different devices. Is it necessary to run my own signalling server? I tried deploying the p5 example sketch to netlify, but neither device can see the other's video feed.

vanevery commented 5 months ago

Hi Sophia,

You should be able to use the public signalling server to get a start.

Happy to take a look. Can you point to the running app or the code repo?

Best, Shawn

On Mon, Mar 25, 2024, 10:17 AM Sophia Deak @.***> wrote:

(I'm a P5 beginner so I apologize if this should be obvious)

I'm confused about how to run this so I can access camera feeds from two different devices. Is it necessary to run my own signalling server? I tried deploying the p5 example sketch to netlify, but neither device can see the other's video feed.

— Reply to this email directly, view it on GitHub https://github.com/vanevery/p5LiveMedia/issues/21, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADJNHV76UTWV3IXRSIG3IDY2AWW3AVCNFSM6AAAAABFHDBOLGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYDKOBXGA2DKNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

sophiadeak commented 5 months ago

Hi Shawn, Thanks so much for the response. Here is the repo And its currently running here

I noticed that in the readme you import from "https://p5livemedia.itp.io/p5livemedia.js"
and use let p5lm = new p5LiveMedia(this, "CAPTURE", stream, "jZQ64AMJc")

Whereas in public/examples/example.html the imports use "https://p5live.itp.io/p5live.js" and use p5l = new p5Live(this,"CAPTURE",stream)

Is one of these more up to date? Or should either one work

vanevery commented 5 months ago

Your app runs for me. Have you made changes since this issue report?

You want to use this import: https://p5livemedia.itp.io/p5livemedia.js with this code: let p5lm = new p5LiveMedia(this, "CAPTURE", stream, "UNIQUE NAME HERE");

sophiadeak commented 5 months ago

Hi Shawn,

Thanks for taking a look. I haven't made any changes so far. Just to make sure I'm expecting the right behaviour: If I visit my webapp from two different laptops, each computer should be able to display both webcam feeds.

I've gotten this error sporadically, but I haven't been able to figure out why image