Permalink
Browse files

Fixed a couple of bugs, but now datachannels should work. Updated the…

… bridge/peer example.
  • Loading branch information...
1 parent e652a11 commit 79ac01f18b9c2d5c237a41bc8bfb956fbba47aa2 Alan Kligman committed Feb 7, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 examples/peer.js
  2. +1 −1 src/peerconnection.cc
View
@@ -98,7 +98,7 @@ function doCreateDataChannels()
};
channel.onmessage = function(event) {
var data = event.data;
- console.log('onmessage', data);
+ console.log('onmessage', new Uint8Array(data));
};
channel.onclose = function(event) {
console.info('onclose');
View
@@ -118,7 +118,7 @@ PeerConnection::PeerConnection()
constraints.AddMandatory(webrtc::MediaConstraintsInterface::kOfferToReceiveVideo, webrtc::MediaConstraintsInterface::kValueFalse);
_peerConnectionFactory = webrtc::CreatePeerConnectionFactory(
- _signalThread, _workerThread, NULL, NULL, NULL );
+ _workerThread, _signalThread, NULL, NULL, NULL );
_internalPeerConnection = _peerConnectionFactory->CreatePeerConnection(_iceServers, &constraints, NULL, this);
}

0 comments on commit 79ac01f

Please sign in to comment.