p5LiveMedia icon indicating copy to clipboard operation
p5LiveMedia copied to clipboard

question about running signalling server

Open sophiadeak opened this issue 1 year ago • 4 comments

(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.

sophiadeak avatar Mar 25 '24 14:03 sophiadeak

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: @.***>

vanevery avatar Mar 25 '24 15:03 vanevery

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

sophiadeak avatar Mar 25 '24 16:03 sophiadeak

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");

vanevery avatar Mar 27 '24 03:03 vanevery

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

sophiadeak avatar Mar 27 '24 15:03 sophiadeak