Open sungjk opened 9 years ago
This code is committed about 2:32 pm in dbh3099-rhcloud.
Caller
This appears to be Chrome
[+] Omlet is Ready.
UA
[+] Initializing DocumentAPI.
[+] Loading document
[+] Get documentReference id: 520DEF5F97CB9D35
[+] Jeremy creates the room.
[+] getUserMedia.
[+] attachMediaStream(localVideo, stream)
[+] createPeerConnection()
[+] Attach local Stream.
[+] sender: chase, message: userJoin
[+] createOffer.
[+] setLocalSessionDescription.
[+] onicecandidate
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[-] handleIceCandidate event.
[+] sender: Jeremy, message: offer
[+] sender: Jeremy, message: offer
[+] sender: Jeremy, message: offer
[+] sender: Jeremy, message: offer
[+] sender: Jeremy, message: offer
[+] sender: Jeremy, message: offer
[+] sender: Jeremy, message: offer
[+] sender: chase, message: answer
[+] sender: chase, message: candidate:3232690131 1 udp 1686052607 169.234.178.32 46672 typ srflx raddr 192.168.1.18 rport 46672 generation 0
[+] addIceCandidate.
[+] setRemoteSDP_Answer.
[+] Remote stream added.
[+] Remote stream attached.
[+] iceGatheringState: complete, iceConnectionState: checking
[+] sender: chase, message: candidate:2017290999 1 tcp 1518280447 192.168.1.18 0 typ host tcptype active generation 0
[+] addIceCandidate.
[+] sender: chase, message: candidate:2017290999 1 tcp 1518280447 192.168.1.18 0 typ host tcptype active generation 0
[+] addIceCandidate.
[+] sender: chase, message: candidate:2017290999 1 tcp 1518280447 192.168.1.18 0 typ host tcptype active generation 0
[+] addIceCandidate.
[+] iceGatheringState: complete, iceConnectionState: failed
Callee
This appears to be Chrome
[+] Omlet is Ready.
UA
[+] Initializing DocumentAPI.
[+] Loading document
[+] Get documentReference id: 520DEF5F97CB9D35
[+] chase joins the room.
[+] getUserMedia.
[+] attachMediaStream(localVideo, stream)
[+] createPeerConnection()
[+] Attach local Stream.
[+] sender: Jeremy, message: offer
[+] sender: Jeremy, message: candidate:3345412921 2 udp 1686052606 169.234.178.32 56767 typ srflx raddr 192.168.1.31 rport 56767 generation 0
[+] addIceCandidate.
[+] setRemoteSDP_Offer.
[+] createAnswer.
[+] setLocalSessionDescription.
[+] sender: Jeremy, message: candidate:3345412921 2 udp 1686052606 169.234.178.32 56767 typ srflx raddr 192.168.1.31 rport 56767 generation 0
[+] addIceCandidate.
[+] onicecandidate
[+] sender: Jeremy, message: candidate:3345412921 2 udp 1686052606 169.234.178.32 56767 typ srflx raddr 192.168.1.31 rport 56767 generation 0
[+] addIceCandidate.
[+] sender: Jeremy, message: candidate:3345412921 2 udp 1686052606 169.234.178.32 56767 typ srflx raddr 192.168.1.31 rport 56767 generation 0
[+] addIceCandidate.
[+] sender: Jeremy, message: candidate:3345412921 2 udp 1686052606 169.234.178.32 56767 typ srflx raddr 192.168.1.31 rport 56767 generation 0
[+] addIceCandidate.
[+] Remote stream added.
[+] Remote stream attached.
[+] handleIceCandidate event.
[+] sender: Jeremy, message: candidate:3345412921 2 udp 1686052606 169.234.178.32 56767 typ srflx raddr 192.168.1.31 rport 56767 generation 0
[+] addIceCandidate.
[+] sender: Jeremy, message: candidate:3345412921 2 udp 1686052606 169.234.178.32 56767 typ srflx raddr 192.168.1.31 rport 56767 generation 0
[+] addIceCandidate.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[-] handleIceCandidate event.
This code is committed about 2:32 pm in dbh3099-rhcloud.
userJoin
message from Callee.createOffer()
andsetLocalDescription(offerSDP)
and sendofferSDP
to Callee. then starts ice process(onicecandidate
which send a candidate to the other party if any candidate found)offerSDP
. andsetRemoteDescription(offerSDP)
and add a successCallback tosetRemoteDescription
which makes a answer.setRemoteDescription
is success andpeerConnection.remoteDescription.type == 'offer'
, Callee runscreateAnswer()
and sendanswerSDP
to Caller. then start ice processanswerSDP
andsetRemoteDescription(answerSDP)
Caller
Callee