These are chat archives for andyet/SimpleWebRTC

17th
Mar 2015
jantimar
@jantimar
Mar 17 2015 00:07
Hi all I was make simple html page but that dont load anything, can someone help me what i need make more for working simple html page loaded only video ?
Xander Dumaine
@xdumaine
Mar 17 2015 15:28
I'm seeing some issues with Chrome canary - it's throwing an error on
// working around https://code.google.com/p/webrtc/issues/detail?id=3669
    if (update.candidate.candidate.indexOf('a=') !== 0) {
        update.candidate.candidate = 'a=' + update.candidate.candidate;
    }
update.candidate is an empty object, so update.candidate.candidate is undefined.
Incidentally this coincides with issues with apprtc.appspot.com, so I've created this issue: https://code.google.com/p/webrtc/issues/detail?id=4447
Philipp Hancke
@fippo
Mar 17 2015 17:53
@xdumaine working on a workaround for this...
@xdumaine otalk/RTCPeerConnection#36 should fix the mess.
Philipp Hancke
@fippo
Mar 17 2015 18:15
and verified... and now I need to resist the urge to drive to kirkland and yell at someone
Xander Dumaine
@xdumaine
Mar 17 2015 18:20
That fixes the issue I'm seeing in my app. :+1:
Olex Ponomarenko
@tholex
Mar 17 2015 18:47
Can someone clarify the API around receiving signaling server messages from peers? webrtc.on('message',...) seems to catch just outgoing messages. I'm trying to send an identify message with some basic string metadata to peers.
Xander Dumaine
@xdumaine
Mar 17 2015 19:07
@tholex try webrtc.on('channelMessage', ...)
Olex Ponomarenko
@tholex
Mar 17 2015 19:18
Tried it, I'm just receiving type: "video" messages. On the sender side, I've tried both peer.send( and webrtc.sendToAll( and they don't show up in either on('message') or on(channelMessage). The outgoing ones show up in on('message')
Xander Dumaine
@xdumaine
Mar 17 2015 19:19
Oh, my mistake - channelMessage is for the dataChannel. You can use sendDirectlyToAll and pick up messages in channelMessage
That's how I implemented what you're doing, in anycase.
onChannelMessage: (peer, label, data) ->
    if data.type is 'setPeerId'
        # identifying information
and to send it:
connection.sendDirectlyToAll roomId, 'setPeerId', userId
That keeps the passing of that off of the server signaling.
Olex Ponomarenko
@tholex
Mar 17 2015 19:23
thanks! I'll try that
Olex Ponomarenko
@tholex
Mar 17 2015 19:56
after some fluxing around I got an example working! Thanks @xdumaine !