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: F455D5BD23036F22
[+] 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.
[+] sender: Jeremy, message: offer
[-] 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:2017290999 1 tcp 1518280447 192.168.1.18 0 typ host tcptype active 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: completed
[+] iceGatheringState: complete, iceConnectionState: completed
Callee
This appears to be Chrome
[+] Omlet is Ready.
UA
[+] Initializing DocumentAPI.
[+] Loading document
[+] Get documentReference id: F455D5BD23036F22
[+] chase joins the room.
[+] getUserMedia.
[+] attachMediaStream(localVideo, stream)
[+] createPeerConnection()
[+] Attach local Stream.
[+] sender: Jeremy, message: offer
[+] sender: Jeremy, message: candidate:829852397 1 udp 2122260223 192.168.1.31 44455 typ host generation 0
[+] addIceCandidate.
[+] setRemoteSDP_Offer.
[+] createAnswer.
[+] Remote stream added.
[+] Remote stream attached.
[+] setLocalSessionDescription.
[+] onicecandidate
[+] sender: Jeremy, message: candidate:3345412921 2 udp 1686052606 169.234.178.32 57023 typ srflx raddr 192.168.1.31 rport 57023 generation 0
[+] addIceCandidate.
[+] iceGatheringState: gathering, iceConnectionState: checking
[+] handleIceCandidate event.
[+] sender: Jeremy, message: candidate:3345412921 2 udp 1686052606 169.234.178.32 57023 typ srflx raddr 192.168.1.31 rport 57023 generation 0
[+] addIceCandidate.
[+] sender: Jeremy, message: candidate:3345412921 2 udp 1686052606 169.234.178.32 57023 typ srflx raddr 192.168.1.31 rport 57023 generation 0
[+] addIceCandidate.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[-] handleIceCandidate event.
[+] iceGatheringState: complete, iceConnectionState: connected
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: D04B5A9D48179AFD
[+] 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:918459911 1 udp 2122260223 192.168.1.18 53204 typ host generation 0
[+] addIceCandidate.
[+] setRemoteSDP_Answer.
[+] Remote stream added.
[+] Remote stream attached.
[+] iceGatheringState: complete, iceConnectionState: checking
[+] sender: chase, message: candidate:918459911 1 udp 2122260223 192.168.1.18 53204 typ host generation 0
[+] addIceCandidate.
[+] iceGatheringState: complete, iceConnectionState: completed
[+] iceGatheringState: complete, iceConnectionState: completed
[+] 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.
Callee
This appears to be Chrome
[+] Omlet is Ready.
UA
[+] Initializing DocumentAPI.
[+] Loading document
[+] Get documentReference id: D04B5A9D48179AFD
[+] chase joins the room.
[+] getUserMedia.
[+] attachMediaStream(localVideo, stream)
[+] createPeerConnection()
[+] Attach local Stream.
[+] sender: Jeremy, message: offer
[+] sender: Jeremy, message: candidate:2146792989 2 tcp 1518280446 192.168.1.31 0 typ host tcptype active generation 0
[+] addIceCandidate.
[+] setRemoteSDP_Offer.
[+] createAnswer.
[+] setLocalSessionDescription.
[+] sender: Jeremy, message: candidate:2146792989 2 tcp 1518280446 192.168.1.31 0 typ host tcptype active generation 0
[+] addIceCandidate.
[+] onicecandidate
[+] sender: Jeremy, message: candidate:2146792989 2 tcp 1518280446 192.168.1.31 0 typ host tcptype active generation 0
[+] addIceCandidate.
[+] sender: Jeremy, message: candidate:2146792989 2 tcp 1518280446 192.168.1.31 0 typ host tcptype active generation 0
[+] addIceCandidate.
[+] Remote stream added.
[+] Remote stream attached.
[+] handleIceCandidate event.
[+] sender: Jeremy, message: candidate:2146792989 2 tcp 1518280446 192.168.1.31 0 typ host tcptype active generation 0
[+] addIceCandidate.
[+] sender: Jeremy, message: candidate:2146792989 2 tcp 1518280446 192.168.1.31 0 typ host tcptype active generation 0
[+] addIceCandidate.
[+] sender: Jeremy, message: candidate:2146792989 2 tcp 1518280446 192.168.1.31 0 typ host tcptype active generation 0
[+] addIceCandidate.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[-] handleIceCandidate event.
[+] iceGatheringState: complete, iceConnectionState: connected
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