UCIUROP2015 / UCI_OmletRTC

WebRTC app for Omlet chat
MIT License
15 stars 4 forks source link

Log(Fail) #2

Open sungjk opened 9 years ago

sungjk commented 9 years ago

This code is committed about 2:32 pm in dbh3099-rhcloud.

  1. Caller receive userJoin message from Callee.
  2. Caller runs createOffer() and setLocalDescription(offerSDP) and send offerSDP to Callee. then starts ice process(onicecandidate which send a candidate to the other party if any candidate found)
  3. Callee receive offerSDP. and setRemoteDescription(offerSDP) and add a successCallback to setRemoteDescription which makes a answer.
  4. If setRemoteDescription is success and peerConnection.remoteDescription.type == 'offer', Callee runs createAnswer() and send answerSDP to Caller. then start ice process
  5. Caller receive answerSDP and setRemoteDescription(answerSDP)

Caller

 This appears to be Chrome
[+] Omlet is Ready.
UA
[+] Initializing DocumentAPI.
[+] Loading document
[+] Get documentReference id: DA40EB34F8A9E9C8
[+] 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: chase, message: answer
[+] 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.
[+] 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.
[+] 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: DA40EB34F8A9E9C8
[+] 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.
[+] Remote stream added.
[+] Remote stream attached.
[+] 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.
[+] onicecandidate
[+] 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.
[-] handleIceCandidate event.
sungjk commented 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.