Open sungjk opened 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
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
main.js
userJoin
message from Callee.offerSDP
to Callee.offerSDP
.
and setRemoteDescription(offerSDP)
and add a successCallback to setRemoteDescription which makes a answer.answerSDP
to Caller.
then start ice process(onicecandidate which send a candidate to the other party if any candidate found)answerSDP
and setRemoteDescription(answerSDP)
and add a successCallback to setRemoteDescription which starts ice processCaller
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
Caller
Callee