These are chat archives for andyet/SimpleWebRTC

24th
Apr 2017
StudioInteractive
@StudioInteractive
Apr 24 2017 08:13
@notasgoodasyou
You have to make a new offer to all Peers in room. Like: peer.pc.pc.peerconnection.createOffer().then(function(offer) {
return peer.pc.pc.peerconnection.setLocalDescription(offer);
})
.then(function() {
peer.sendDirectly('vroom', 'Offer', {
offerSDP: peer.pc.pc.peerconnection.localDescription
});
})
.then(function(){
if(streamupdate !== undefined){
peer.sendDirectly('vroom','UpdateStream');
}
})
.catch(handleCreateOfferError);
StudioInteractive
@StudioInteractive
Apr 24 2017 08:21
@notasgoodasyou
and then on the reciver peer Like: peer.pc.pc.peerconnection.setRemoteDescription(new RTCSessionDescription(data.payload.offerSDP));
Hardik93
@Hardik93
Apr 24 2017 12:43
asdasdad