UCIUROP2015 / UCI_OmletRTC

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

Log(Success + STATE_INPROGRESS) #1

Open sungjk opened 9 years ago

sungjk commented 9 years ago

Caller

 This appears to be Chrome
[+] Omlet is Ready.
UA
[+] Initializing DocumentAPI.
[+] Loading document
[+] Get documentReference id: 89056AAA07EE362C
[+] Jeremy creates the room.
[+] getUserMedia.
[+] sender: , message: channelReady
[+] >>>>> handleUserMedia <<<<<
[+] attachMediaStream(localVideo, stream)
[+] start()
[+] docId: 100, numOfUser: 1
[+] sender: , message: userMedia
[+] chatDoc.message === userMedia
[+] start()
[+] sender: , message: channelReady
[+] sender: , message: userMedia
[+] chatDoc.message === userMedia
[+] start()
[+] isStarted: false, localStream: object, channelReady: true
[+] createPeerConnection()
[+] Attach local Stream.
[+] isStarted = true
[+] onicecandidate
[+] createOffer.
[+] setLocalSessionDescription.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[+] send_SDP: [object RTCSessionDescription]
[+] sender: Jeremy, message: candidate
[+] sender: Jeremy, message: candidate
[+] sender: Jeremy, message: candidate
[+] sender: Jeremy, message: sessionDescription
[+] sender: Jeremy, message: sessionDescription
[+] sender: Jeremy, message: sessionDescription
[+] sender: Jeremy, message: sessionDescription
[+] sender: Jeremy, message: sessionDescription
[+] sender: chase, message: candidate
[+] chatDoc.message === candidate
[+] sender: chase, message: candidate
[+] chatDoc.message === candidate
[+] sender: chase, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[+] sender: chase, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[+] sender: chase, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[+] handleMessage-setRemoteDescription-answer
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[+] sender: chase, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[+] sender: chase, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[+] Remote stream added.
[+] Remote stream attached.
[+] iceGatheringState: complete, iceConnectionState: checking
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[+] iceGatheringState: complete, iceConnectionState: completed
[+] iceGatheringState: complete, iceConnectionState: completed
[+] sender: chase, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[+] sender: chase, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[+] sender: chase, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[+] sender: chase, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[+] sender: chase, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS

Callee

 This appears to be Chrome
[+] Omlet is Ready.
UA
[+] Initializing DocumentAPI.
[+] Loading document
[+] Get documentReference id: 89056AAA07EE362C
[+] chase joins the room.
[+] getUserMedia.
[+] sender: , message: channelReady
[+] >>>>> handleUserMedia <<<<<
[+] attachMediaStream(localVideo, stream)
[+] docId: 100, numOfUser: 2
[+] sender: , message: userMedia
[+] sender: Jeremy, message: sessionDescription
[+] chatDoc.sessionDescription.type === offer
[+] isStarted: false
[+] start()
[+] isStarted: false, localStream: object, channelReady: true
[+] createPeerConnection()
[+] Attach local Stream.
[+] isStarted = true
[+] onicecandidate
[+] sender: Jeremy, message: sessionDescription
[+] chatDoc.sessionDescription.type === offer
[+] isStarted: true
[+] sender: Jeremy, message: sessionDescription
[+] chatDoc.sessionDescription.type === offer
[+] isStarted: true
[+] sender: Jeremy, message: sessionDescription
[+] chatDoc.sessionDescription.type === offer
[+] isStarted: true
[+] handleMessage-setRemoteDescription-offer
[+] createAnswer.
[+] handleMessage-setRemoteDescription-offer
[+] createAnswer.
[+] handleMessage-setRemoteDescription-offer
[+] createAnswer.
[+] handleMessage-setRemoteDescription-offer
[+] createAnswer.
[+] setLocalSessionDescription.
[+] setLocalSessionDescription.
[+] setLocalSessionDescription.
[+] setLocalSessionDescription.
[+] sender: Jeremy, message: sessionDescription
[+] chatDoc.sessionDescription.type === offer
[+] isStarted: true
[+] Remote stream added.
[+] Remote stream attached.
[+] iceGatheringState: gathering, iceConnectionState: checking
[+] handleIceCandidate event.
[+] sender: Jeremy, message: sessionDescription
[+] chatDoc.sessionDescription.type === offer
[+] isStarted: true
[+] handleMessage-setRemoteDescription-offer
[+] createAnswer.
[+] handleMessage-setRemoteDescription-offer
[+] createAnswer.
[+] setLocalSessionDescription.
[+] setLocalSessionDescription.
[+] sender: Jeremy, message: sessionDescription
[+] chatDoc.sessionDescription.type === offer
[+] isStarted: true
[+] sender: Jeremy, message: sessionDescription
[+] chatDoc.sessionDescription.type === offer
[+] isStarted: true
[+] handleMessage-setRemoteDescription-offer
[+] createAnswer.
[+] handleMessage-setRemoteDescription-offer
[+] createAnswer.
[+] setLocalSessionDescription.
[+] setLocalSessionDescription.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[+] send_SDP: [object RTCSessionDescription]
[+] iceGatheringState: complete, iceConnectionState: connected
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
sungjk commented 9 years ago

Caller

 This appears to be Chrome
[+] Omlet is Ready.
[+] Initializing DocumentAPI.
[+] Loading document
[+] Get documentReference id: D27830AB98F683BC
[+] Jeremy creates the room.
[+] getUserMedia.
[+] start()
[+] >>>>> handleUserMedia <<<<<
[+] attachMediaStream(localVideo, stream)
[+] docId: 100, numOfUser: 1
[+] chatDoc.message === userMedia
[+] start()
[+] chatDoc.message === userMedia
[+] start()
[+] isStarted: false, localStream: object, channelReady: true
[+] createPeerConnection()
[+] Attach local Stream.
[+] isStarted = true
[+] onicecandidate
[+] createOffer.
[+] setLocalSessionDescription.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[+] chatDoc.message === candidate
[-] End of candidates.
[+] chatDoc.message === candidate
[+] chatDoc.message === candidate
[+] chatDoc.message === candidate
[+] chatDoc.message === candidate
[+] chatDoc.sessionDescription.type === answer
[+] handleMessage-setRemoteDescription-answer
[+] Remote stream added.
[+] Remote stream attached.
[+] iceGatheringState: complete, iceConnectionState: checking
[+] chatDoc.sessionDescription.type === answer
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[+] chatDoc.sessionDescription.type === answer
[+] chatDoc.sessionDescription.type === answer
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[+] chatDoc.sessionDescription.type === answer
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[+] chatDoc.sessionDescription.type === answer
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[+] iceGatheringState: complete, iceConnectionState: completed
[+] iceGatheringState: complete, iceConnectionState: completed
[+] chatDoc.sessionDescription.type === answer
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS

Callee

 This appears to be Chrome
[+] Omlet is Ready.
[+] Initializing DocumentAPI.
[+] Loading document
[+] Get documentReference id: D27830AB98F683BC
[+] chase joins the room.
[+] getUserMedia.
[+] >>>>> handleUserMedia <<<<<
[+] attachMediaStream(localVideo, stream)
[+] docId: 100, numOfUser: 2
[+] chatDoc.sessionDescription.type === offer
[+] isStarted: false
[+] start()
[+] isStarted: false, localStream: object, channelReady: true
[+] createPeerConnection()
[+] Attach local Stream.
[+] isStarted = true
[+] onicecandidate
[+] chatDoc.sessionDescription.type === offer
[+] isStarted: true
[+] chatDoc.sessionDescription.type === offer
[+] isStarted: true
[+] chatDoc.sessionDescription.type === offer
[+] isStarted: true
[+] handleMessage-setRemoteDescription-offer
[+] createAnswer.
[+] handleMessage-setRemoteDescription-offer
[+] createAnswer.
[+] handleMessage-setRemoteDescription-offer
[+] createAnswer.
[+] handleMessage-setRemoteDescription-offer
[+] createAnswer.
[+] setLocalSessionDescription.
[+] Remote stream added.
[+] Remote stream attached.
[+] setLocalSessionDescription.
[+] setLocalSessionDescription.
[+] setLocalSessionDescription.
[+] chatDoc.sessionDescription.type === offer
[+] isStarted: true
[+] handleIceCandidate event.
[+] handleMessage-setRemoteDescription-offer
[+] createAnswer.
[+] setLocalSessionDescription.
[+] handleIceCandidate event.
[-] End of candidates.
[+] chatDoc.message === candidate
[+] chatDoc.message === candidate
[+] chatDoc.message === candidate
[+] chatDoc.message === candidate
[+] iceGatheringState: complete, iceConnectionState: connected
[+] iceGatheringState: complete, iceConnectionState: connected
[+] chatDoc.message === candidate
sungjk commented 9 years ago

Caller

 This appears to be Chrome
[+] Omlet is Ready.
UA
[+] Initializing DocumentAPI.
[+] Loading document
[+] Get documentReference id: 5ED3B0774D3160E4
[+] Jeremy creates the room.
[+] getUserMedia.
[+] sender: , message: channelReady
[+] >>>>> handleUserMedia <<<<<
[+] attachMediaStream(localVideo, stream)
[+] start()
[+] docId: 100, numOfUser: 1
[+] sender: , message: userMedia
[+] chatDoc.message === userMedia
[+] start()
[+] sender: , message: channelReady
[+] sender: , message: userMedia
[+] chatDoc.message === userMedia
[+] start()
[+] isStarted: false, localStream: object, channelReady: true
[+] createPeerConnection()
[+] Attach local Stream.
[+] isStarted = true
[+] onicecandidate
[+] createOffer.
[+] setLocalSessionDescription.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[+] send_SDP: [object RTCSessionDescription]
[+] sender: Jeremy, message: candidate
[+] sender: Jeremy, message: sessionDescription
[+] sender: Jeremy, message: sessionDescription
[+] sender: Jeremy, message: sessionDescription
[+] sender: Jeremy, message: sessionDescription
[+] sender: Jeremy, message: sessionDescription
[+] sender: Jeremy, message: sessionDescription
[+] sender: Jeremy, message: sessionDescription
[+] sender: Jeremy, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[+] handleMessage-setRemoteDescription-answer
[+] Remote stream added.
[+] Remote stream attached.
[+] iceGatheringState: complete, iceConnectionState: checking
[+] sender: chase, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[+] sender: chase, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[+] sender: chase, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[+] sender: chase, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[+] sender: chase, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[+] sender: chase, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[+] sender: chase, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[+] sender: chase, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[+] sender: chase, message: sessionDescription
[+] chatDoc.sessionDescription.type === answer
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[+] 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: 5ED3B0774D3160E4
[+] chase joins the room.
[+] getUserMedia.
[+] sender: , message: channelReady
[+] >>>>> handleUserMedia <<<<<
[+] attachMediaStream(localVideo, stream)
[+] docId: 100, numOfUser: 2
[+] sender: , message: userMedia
[+] sender: Jeremy, message: candidate
[+] chatDoc.sessionDescription.type === offer
[+] isStarted: false
[+] start()
[+] isStarted: false, localStream: object, channelReady: true
[+] createPeerConnection()
[+] Attach local Stream.
[+] isStarted = true
[+] onicecandidate
[+] sender: Jeremy, message: candidate
[+] chatDoc.message === candidate
[+] sender: Jeremy, message: candidate
[+] chatDoc.message === candidate
[+] handleMessage-setRemoteDescription-offer
[+] createAnswer.
[+] setLocalSessionDescription.
[+] Remote stream added.
[+] Remote stream attached.
[+] sender: Jeremy, message: sessionDescription
[+] chatDoc.sessionDescription.type === offer
[+] isStarted: true
[+] sender: Jeremy, message: sessionDescription
[+] chatDoc.sessionDescription.type === offer
[+] isStarted: true
[+] sender: Jeremy, message: sessionDescription
[+] chatDoc.sessionDescription.type === offer
[+] isStarted: true
[+] handleMessage-setRemoteDescription-offer
[+] createAnswer.
[+] handleMessage-setRemoteDescription-offer
[+] createAnswer.
[+] iceGatheringState: gathering, iceConnectionState: checking
[+] handleIceCandidate event.
[+] handleMessage-setRemoteDescription-offer
[+] createAnswer.
[+] setLocalSessionDescription.
[+] setLocalSessionDescription.
[+] setLocalSessionDescription.
[+] sender: Jeremy, message: sessionDescription
[+] chatDoc.sessionDescription.type === offer
[+] isStarted: true
[+] sender: Jeremy, message: sessionDescription
[+] chatDoc.sessionDescription.type === offer
[+] isStarted: true
[+] handleMessage-setRemoteDescription-offer
[+] createAnswer.
[+] handleMessage-setRemoteDescription-offer
[+] createAnswer.
[+] handleIceCandidate event.
[+] handleIceCandidate event.
[+] send_SDP: [object RTCSessionDescription]
[+] setLocalSessionDescription.
[+] setLocalSessionDescription.
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
[+] sender: chase, message: sessionDescription
[+] iceGatheringState: complete, iceConnectionState: connected
sungjk commented 9 years ago

main.js

2015-08-11 10 41 05
  1. Caller receive userJoin message from Callee.
  2. Caller runs createOffer() and send offerSDP to Callee.
  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(onicecandidate which send a candidate to the other party if any candidate found)
  5. Caller receive answerSDP and setRemoteDescription(answerSDP) and add a successCallback to setRemoteDescription which starts ice process

Caller

 This appears to be Chrome
[+] Omlet is Ready.
UA
[+] Initializing DocumentAPI.
[+] Loading document
[+] Get documentReference id: 1F54795A806A5E84
Uncaught TypeError: Cannot read property 'creator' of undefined
[+] Jeremy creates the room.
[+] getUserMedia.
[+] attachMediaStream(localVideo, stream)
[+] createPeerConnection()
[+] Attach local Stream.
[+] isStarted = true
[+] Attach local Stream.
[+] sender: chase, message: userJoin
[+] createOffer.
[+] setLocalSessionDescription.
[+] sender: Jeremy, message: offer
[+] sender: Jeremy, message: offer
[+] sender: chase, message: answer
[+] chatDoc.sessionDescription.type === answer
[+] setRemoteDescription-answer
[+] onicecandidate
[+] Remote stream added.
[+] Remote stream attached.
[+] iceGatheringState: complete, iceConnectionState: checking
[+] sender: chase, message: answer
[+] chatDoc.sessionDescription.type === answer
[-] handleMessage-setRemoteDescription-answer: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS
[+] 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: 1F54795A806A5E84
[+] chase joins the room.
[+] getUserMedia.
[+] attachMediaStream(localVideo, stream)
[+] createPeerConnection()
[+] Attach local Stream.
[+] isStarted = true
[+] Attach local Stream.
[+] sender: chase, message: userJoin
[+] sender: Jeremy, message: offer
[+] chatDoc.sessionDescription.type === offer
[+] setRemoteDescription-offer
[+] createAnswer.
[+] Remote stream added.
[+] Remote stream attached.
[+] setLocalSessionDescription.
[+] sender: Jeremy, message: offer
[+] chatDoc.sessionDescription.type === offer
[+] setRemoteDescription-offer
[+] createAnswer.
[+] setLocalSessionDescription.
[+] onicecandidate
[+] onicecandidate
[+] sender: chase, message: answer
[+] sender: chase, message: answer
[+] iceGatheringState: complete, iceConnectionState: connected