adrenak / univoice-sample

A sample voice chat app using univoice
MIT License
11 stars 3 forks source link

sample univoice : Peer cannot send and receive #2

Open airqleon1 opened 1 year ago

airqleon1 commented 1 year ago

Peer 0 and Peer 1 are working fine, Peer 0 and Peer 2 are working fine, but Peer 1 and Peer 2 are not working fine

adrenak commented 1 year ago

Hey, are you testing with PUN network?

airqleon1 commented 1 year ago

UniVoiceTelepathyNetwork.New(8987)

adrenak commented 1 year ago

Having a look, it's a new network implementation so I'm not surprised

airqleon1 commented 1 year ago

I looked at unvoice-telepathy-network and it seems like the server is not broadcasting all peers

adrenak commented 1 year ago

yes likely that is the case, the if peer 1 has to send data to peer 2 (they are both clients), it is first sent to peer 0 (the server) which then forwards it to peer 2.

I'll have a look at stuff, the last few commits across univoice have been done in a hurry to get some features implemented for a sponsor. That's why the docs haven't been updated yet.

airqleon1 commented 1 year ago

The problem of server.Send(recipient, new ArraySegment(segmentBytes)); in unvoice-telepathy-network, segmentBytes is not a packet. Thank you

shahiltp commented 1 year ago

whats the change in that line do we need to create byteswriter packet there

chwar commented 1 year ago

Hey, I'm having the same issue with telepathy. The peers cannot communicate between each other. I require my voice chat to be self hosted, so I can't use Photon. Any news on this? Thanks :)

adrenak commented 1 year ago

Hey everyone, this issue went ignored for a while. I believe some related fixes were posted somewhere, I'll have a look tomorrow and fix. Thanks for being patient!

chwar commented 1 year ago

That sounds great. Thanks for replying!