These are chat archives for andyet/SimpleWebRTC

2nd
Jul 2017
LuckyCyborg
@LuckyCyborg
Jul 02 2017 15:18
The Simple WebRTC is all about video calls.
Laurence Noton
@lnoton
Jul 02 2017 15:20

I'm trying to get an application talking to each other to send files via WebRTC.

A user (User A) opens the page and creates a room. This room is used to receive files on, whilst the page is open. This User can send files to others, by connecting to their rooms.

A user (User B) can connect to another user by joining their room (say User A) and send a file.

It seems that I can send a file no problem. I can send other too, several in fact, but once I've sent a file say from User A to User B, User B cannot send a file to User A.

The page has a webrtc object for the users room, and creates a new one when they want to connect to someone elses to send a file.

It appears there is some "interference" with the users Room once they have send a file to another room.

What the are life-cycles of the webrtc object and associated objects? Are they threadsafe?

Any pointers to go an have a look at would be much appreciated.

Hi Lucky, Was that aimed at me? Why just video?
LuckyCyborg
@LuckyCyborg
Jul 02 2017 15:22
Why just video? Because for this they written it.
This thing is made for doing video calls, that's all.

I fight several months to write a list with users on-line (something like a presence channel) and their private chats. Text chats in the Facebook style. Just damned widgets with a input line, added at bottom of page.

Finally, I figured out that I ask too much from Simple WebRTC... ;)

LuckyCyborg
@LuckyCyborg
Jul 02 2017 15:30
Long story short, if you want to play with presence channels, data channels, and other shiny things, this Simple WebRTC is not for you.
Laurence Noton
@lnoton
Jul 02 2017 15:30
Um, it is WebRTC. Video is just one use case of p2p hole punching. I'll wait for someone else to hopefully come along and provide some guidance.
LuckyCyborg
@LuckyCyborg
Jul 02 2017 15:33
If you believe that in the chat of "Your Personal Skype 4 Web" you can find the wanted guidance, good luck! :+1:
In my humble opinion, better to look there: https://github.com/muaz-khan/DataChannel
Laurence Noton
@lnoton
Jul 02 2017 15:37
lol. Thanks I 'll take a look at that now.
this library seemed to do what I wanted, but seems to fail when I try and send a file the other way over a seperate webrtc object and peer connection.
LuckyCyborg
@LuckyCyborg
Jul 02 2017 15:38
You talk about DataChannel or Simple WebRTC?
Laurence Noton
@lnoton
Jul 02 2017 15:41
well im talkingabout simplewebrtc
LuckyCyborg
@LuckyCyborg
Jul 02 2017 15:52
For playing with data channels (and file transfers), I found to be much simple to implement over Muaz-khan's DataChannel.
Yet, I use Simple WebRTC with great success for video calls.