Temasys / SkylinkJS

SkylinkJS Javascript WebRTC SDK
http://skylink.io/web
Other
275 stars 57 forks source link

0.6.15: extra streamEnded when doing sendStream on a running stream #264

Closed JanNorden closed 7 years ago

JanNorden commented 7 years ago

If you do a sendStream() on a running stream you will get the event sequence:

streamEnded incomingStream streamEnded

The following example illustrates the problem (press the sendStream button twice, the first time the webcam will be shown, the second time it won't, the events are shown in the console log).

Changing the script tag in index.html to 0.6.14 shows that this was not the case in 0.6.14

BTW, it would be nice if you have a free key that would work for the jsfiddle domain, then examples could be posted there.

oooookk7 commented 7 years ago

Hi @JanNorden, this is an expected behaviour. If you do sendStream(), you invoke getUserMedia() again to retrieve a new camera Stream, in which you have to stop the current camera Stream to start the new camera Stream with the new settings provided in sendStream().

May I know how you are configuring your demo?

JanNorden commented 7 years ago

Why is the second streamEnded expected? the first one closes the original stream, but the second one?

JanNorden commented 7 years ago

BTW the html was messed up when I pasted it, so I tried dragging the files. They seemed to drop, but I see no indication that there are attached files.

oooookk7 commented 7 years ago

Could you check if mediaAccessSuccess was triggered?

sendStream() API.

oooookk7 commented 7 years ago

Hi @JanNorden, you might try pasting the javascript code only here.

JanNorden commented 7 years ago

var skylink = new Skylink();

skylink.on('incomingStream', function(_peerId, stream) { var vid = document.getElementById('myvideo'); attachMediaStream(vid, stream); vid.style.display = 'block'; console.log('incomingStream'); });

skylink.on('streamEnded', function() { console.log('streamEnded'); var vid = document.getElementById('myvideo'); vid.style.display = 'none'; });

skylink.init({ apiKey: '3540d10d-1355-4bc8-9152-665c661f2879' }, () => { skylink.joinRoom( 'room1', { audio: false, video: false });});

function sendStream() { skylink.sendStream({ audio: {mute: true}, video: {resolution: {height: 240, width: 320 }} }, () => {}) }

JanNorden commented 7 years ago

The log or the second call so StartStream after adding mediaAcessSuccess is:

chrome: {"audio":{},"video":{"mandatory":{"maxWidth":320,"maxHeight":240}}} streamEnded mediaAccessSuccess incomingStream streamEnded

JanNorden commented 7 years ago

Here is the HTML as well:

`

WebRTC with SkylinkJS
<script src="//cdn.temasys.com.sg/skylink/skylinkjs/0.6.15/skylink.complete.js"></script>
<!--<script src="../firecloud/client/site//share/files/node_modules/skylinkjs/publish/skylink.complete.min.js"></script>-->
<script src="code.js"></script>

`

oooookk7 commented 7 years ago

Hi @JanNorden, could you do the following to your code? I would like to check if the events are triggered correctly.

var skylink = new Skylink();

// Set log level
skylink.setLogLevel(skylink.LOG_LEVEL.DEBUG);

// Check if "mediaAccessSuccess" is triggered
skylink.on('mediaAccessSuccess', function (stream) {
  console.log("Stream retrieved", stream.id);
});

// Check if "mediaAccessStopped" is triggered
skylink.on('mediaAccessStopped', function (stream) {
  console.log("Stream stopped", stream.id);
});

skylink.on('incomingStream', function(_peerId, stream) {
console.log("Stream sent", stream.id);
var vid = document.getElementById('myvideo');
attachMediaStream(vid, stream);
vid.style.display = 'block';
console.log('incomingStream');
});

skylink.on('streamEnded', function(_peerId, _peerInfo, _isSelf, _isScreensharing, streamId) {
console.log("Stream that has ended", streamId);
console.log('streamEnded');
var vid = document.getElementById('myvideo');
vid.style.display = 'none';
});

skylink.init({
apiKey: '3540d10d-1355-4bc8-9152-665c661f2879'
}, () => { skylink.joinRoom(
'room1', {
audio: false,
video: false
});});

function sendStream() {
skylink.sendStream({
audio: {mute: true},
video: {resolution: {height: 240, width: 320 }}
}, () => {})
}
JanNorden commented 7 years ago

Can't you just run my example? Log get's kind of long.

JanNorden commented 7 years ago

skylink.complete.js:18464 SkylinkJS - <> (mediaAccessSuccess) Event is subscribed on condition skylink.complete.js:18464 SkylinkJS - <> (mediaAccessError) Event is subscribed on condition skylink.complete.js:7863 chrome: {"audio":{},"video":{"mandatory":{"maxWidth":320,"maxHeight":240}}} skylink.complete.js:18462 SkylinkJS - <> (U72jFRml7Gouel7VyYLgviDByYSjdQTcoW3r) Has access to stream -> MediaStream {id: "U72jFRml7Gouel7VyYLgviDByYSjdQTcoW3r", active: true, onactive: null, oninactive: null, onended: null…} skylink.complete.js:18462 SkylinkJS - Updated Streams muted status -> Object {audioMuted: true, videoMuted: false} skylink.complete.js:18464 SkylinkJS - <> (mediaAccessSuccess) Event is fired code.js:20 Stream retrieved U72jFRml7Gouel7VyYLgviDByYSjdQTcoW3r skylink.complete.js:18464 SkylinkJS - <> (mediaAccessSuccess) Condition is met. Firing event skylink.complete.js:18464 SkylinkJS - <> (mediaAccessError) One-time Event is unsubscribed skylink.complete.js:18464 SkylinkJS - <> (incomingStream) Event is fired code.js:7 incomingStream skylink.complete.js:18464 SkylinkJS - <> (incomingStream) Event is triggered skylink.complete.js:18464 SkylinkJS - <> (peerUpdated) Event is triggered skylink.complete.js:18464 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - <> Restarting peer connection skylink.complete.js:18464 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - <> Peer connection health does not have a timer check skylink.complete.js:18464 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - Adding local stream skylink.complete.js:18462 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - <> Sending stream MediaStream {id: "U72jFRml7Gouel7VyYLgviDByYSjdQTcoW3r", active: true, onactive: null, onended: null, onaddtrack: null…} skylink.complete.js:18464 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - Sending restart message to signaling server skylink.complete.js:18462 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - Sending to peer -> Object {type: "restart", mid: "AIUqJSdSr94KylY3ABTh", rid: "e331b0254976f2720d6514283d97693f0b710b1a_api_room1", agent: "chrome", version: 53…} skylink.complete.js:18464 SkylinkJS - <> (peerRestart) Event is triggered skylink.complete.js:18464 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - <> Firing restart callback skylink.complete.js:18464 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - <> Initializing check for peer's connection health skylink.complete.js:18464 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - <> Restarting peer connection skylink.complete.js:18464 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - <> Peer connection health does not have a timer check skylink.complete.js:18464 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - Adding local stream skylink.complete.js:18462 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - <> Sending stream MediaStream {id: "U72jFRml7Gouel7VyYLgviDByYSjdQTcoW3r", active: true, onactive: null, onended: null, onaddtrack: null…} skylink.complete.js:18464 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - Sending restart message to signaling server skylink.complete.js:18462 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - Sending to peer -> Object {type: "restart", mid: "AIUqJSdSr94KylY3ABTh", rid: "e331b0254976f2720d6514283d97693f0b710b1a_api_room1", agent: "chrome", version: 53…} skylink.complete.js:18464 SkylinkJS - <> (peerRestart) Event is triggered skylink.complete.js:18464 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - <> Firing restart callback skylink.complete.js:18464 SkylinkJS - <> Invoked all peers to restart. Firing callback skylink.complete.js:18464 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - <> Initializing check for peer's connection health skylink.complete.js:18464 SkylinkJS - <> (mediaAccessSuccess) Removing event after firing once skylink.complete.js:18464 SkylinkJS - <> (mediaAccessSuccess) Event is triggered skylink.complete.js:18464 SkylinkJS - <> Received message skylink.complete.js:18464 SkylinkJS - <> (channelMessage) Event is triggered skylink.complete.js:18462 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - Received from peer -> offer skylink.complete.js:18462 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - (offer) Received offer from peer. Session description: v=0 o=- 5564996145068095566 3 IN IP4 127.0.0.1 s=- t=0 0 a=group:BUNDLE audio video data a=msid-semantic: WMS FQ7WP8qPrsgzBIEvFm5NgbvpDSrLj8F8rH2D m=audio 32506 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 126 c=IN IP4 212.112.188.157 a=rtcp:21572 IN IP4 212.112.188.157 a=candidate:2691206179 1 udp 2122265343 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 58849 typ host generation 0 network-id 3 a=candidate:801776872 1 udp 2122199807 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 58850 typ host generation 0 network-id 2 a=candidate:2999745851 1 udp 2122129151 192.168.56.1 58851 typ host generation 0 network-id 4 a=candidate:146061198 1 udp 2122063615 10.46.16.36 58852 typ host generation 0 network-id 1 a=candidate:2691206179 2 udp 2122265342 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 58853 typ host generation 0 network-id 3 a=candidate:801776872 2 udp 2122199806 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 58854 typ host generation 0 network-id 2 a=candidate:2999745851 2 udp 2122129150 192.168.56.1 58855 typ host generation 0 network-id 4 a=candidate:146061198 2 udp 2122063614 10.46.16.36 58856 typ host generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 32506 typ srflx raddr 10.46.16.36 rport 58852 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 21572 typ srflx raddr 10.46.16.36 rport 58856 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 9324 typ srflx raddr 10.46.16.36 rport 58856 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 10095 typ srflx raddr 10.46.16.36 rport 58852 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 60572 typ srflx raddr 10.46.16.36 rport 58852 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 46086 typ srflx raddr 10.46.16.36 rport 58856 generation 0 network-id 1 a=candidate:4008407251 1 tcp 1518285567 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 9 typ host tcptype active generation 0 network-id 3 a=candidate:1632229400 1 tcp 1518220031 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 9 typ host tcptype active generation 0 network-id 2 a=candidate:4233069003 1 tcp 1518149375 192.168.56.1 9 typ host tcptype active generation 0 network-id 4 a=candidate:1178028926 1 tcp 1518083839 10.46.16.36 9 typ host tcptype active generation 0 network-id 1 a=candidate:4008407251 2 tcp 1518285566 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 9 typ host tcptype active generation 0 network-id 3 a=candidate:1632229400 2 tcp 1518220030 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 9 typ host tcptype active generation 0 network-id 2 a=candidate:4233069003 2 tcp 1518149374 192.168.56.1 9 typ host tcptype active generation 0 network-id 4 a=candidate:1178028926 2 tcp 1518083838 10.46.16.36 9 typ host tcptype active generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 32558 typ srflx raddr 10.46.16.36 rport 58856 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 34093 typ srflx raddr 10.46.16.36 rport 58852 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 58286 typ srflx raddr 10.46.16.36 rport 58852 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 29748 typ srflx raddr 10.46.16.36 rport 58856 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 58534 typ srflx raddr 10.46.16.36 rport 58852 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 26281 typ srflx raddr 10.46.16.36 rport 58856 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 13957 typ srflx raddr 10.46.16.36 rport 58852 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 43143 typ srflx raddr 10.46.16.36 rport 58856 generation 0 network-id 1 a=ice-ufrag:Mji/ a=ice-pwd:ZTbRcg26Hh6E3cfUq6+1XG85 a=fingerprint:sha-256 0C:B4:8D:F4:43:F4:22:58:A0:27:10:8E:CB:E9:EA:4D:E0:FE:BA:86:47:72:88:02:DD:0A:49:C3:B8:27:AC:01 a=setup:actpass a=mid:audio a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time a=sendrecv a=rtcp-mux a=rtpmap:111 opus/48000/2 a=rtcp-fb:111 transport-cc a=fmtp:111 minptime=10;useinbandfec=1 a=rtpmap:103 ISAC/16000 a=rtpmap:104 ISAC/32000 a=rtpmap:9 G722/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:106 CN/32000 a=rtpmap:105 CN/16000 a=rtpmap:13 CN/8000 a=rtpmap:126 telephone-event/8000 a=ssrc:2778732550 cname:pIReX3tFSmx0Qxt4 a=ssrc:2778732550 msid:FQ7WP8qPrsgzBIEvFm5NgbvpDSrLj8F8rH2D d7910c47-01ad-4ed3-b8f6-5ce5d2dd26a4 a=ssrc:2778732550 mslabel:FQ7WP8qPrsgzBIEvFm5NgbvpDSrLj8F8rH2D a=ssrc:2778732550 label:d7910c47-01ad-4ed3-b8f6-5ce5d2dd26a4 m=video 21556 UDP/TLS/RTP/SAVPF 100 101 107 116 117 96 97 99 98 c=IN IP4 212.112.188.157 a=rtcp:56910 IN IP4 212.112.188.157 a=candidate:2691206179 1 udp 2122265343 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 58861 typ host generation 0 network-id 3 a=candidate:801776872 1 udp 2122199807 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 58862 typ host generation 0 network-id 2 a=candidate:2999745851 1 udp 2122129151 192.168.56.1 58863 typ host generation 0 network-id 4 a=candidate:146061198 1 udp 2122063615 10.46.16.36 58864 typ host generation 0 network-id 1 a=candidate:2691206179 2 udp 2122265342 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 58865 typ host generation 0 network-id 3 a=candidate:801776872 2 udp 2122199806 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 58866 typ host generation 0 network-id 2 a=candidate:2999745851 2 udp 2122129150 192.168.56.1 58867 typ host generation 0 network-id 4 a=candidate:146061198 2 udp 2122063614 10.46.16.36 58868 typ host generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 21556 typ srflx raddr 10.46.16.36 rport 58864 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 56910 typ srflx raddr 10.46.16.36 rport 58868 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 52971 typ srflx raddr 10.46.16.36 rport 58864 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 63849 typ srflx raddr 10.46.16.36 rport 58868 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 52094 typ srflx raddr 10.46.16.36 rport 58868 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 17021 typ srflx raddr 10.46.16.36 rport 58864 generation 0 network-id 1 a=candidate:4008407251 1 tcp 1518285567 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 9 typ host tcptype active generation 0 network-id 3 a=candidate:1632229400 1 tcp 1518220031 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 9 typ host tcptype active generation 0 network-id 2 a=candidate:4233069003 1 tcp 1518149375 192.168.56.1 9 typ host tcptype active generation 0 network-id 4 a=candidate:1178028926 1 tcp 1518083839 10.46.16.36 9 typ host tcptype active generation 0 network-id 1 a=candidate:4008407251 2 tcp 1518285566 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 9 typ host tcptype active generation 0 network-id 3 a=candidate:1632229400 2 tcp 1518220030 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 9 typ host tcptype active generation 0 network-id 2 a=candidate:4233069003 2 tcp 1518149374 192.168.56.1 9 typ host tcptype active generation 0 network-id 4 a=candidate:1178028926 2 tcp 1518083838 10.46.16.36 9 typ host tcptype active generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 13475 typ srflx raddr 10.46.16.36 rport 58864 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 48453 typ srflx raddr 10.46.16.36 rport 58868 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 35040 typ srflx raddr 10.46.16.36 rport 58864 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 28398 typ srflx raddr 10.46.16.36 rport 58868 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 46032 typ srflx raddr 10.46.16.36 rport 58864 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 64810 typ srflx raddr 10.46.16.36 rport 58868 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 1373 typ srflx raddr 10.46.16.36 rport 58864 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 7472 typ srflx raddr 10.46.16.36 rport 58868 generation 0 network-id 1 a=ice-ufrag:Mji/ a=ice-pwd:ZTbRcg26Hh6E3cfUq6+1XG85 a=fingerprint:sha-256 0C:B4:8D:F4:43:F4:22:58:A0:27:10:8E:CB:E9:EA:4D:E0:FE:BA:86:47:72:88:02:DD:0A:49:C3:B8:27:AC:01 a=setup:actpass a=mid:video a=extmap:2 urn:ietf:params:rtp-hdrext:toffset a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time a=extmap:4 urn:3gpp:video-orientation a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay a=sendrecv a=rtcp-mux a=rtcp-rsize a=rtpmap:100 VP8/90000 a=rtcp-fb:100 ccm fir a=rtcp-fb:100 nack a=rtcp-fb:100 nack pli a=rtcp-fb:100 goog-remb a=rtcp-fb:100 transport-cc a=rtpmap:101 VP9/90000 a=rtcp-fb:101 ccm fir a=rtcp-fb:101 nack a=rtcp-fb:101 nack pli a=rtcp-fb:101 goog-remb a=rtcp-fb:101 transport-cc a=rtpmap:107 H264/90000 a=rtcp-fb:107 ccm fir a=rtcp-fb:107 nack a=rtcp-fb:107 nack pli a=rtcp-fb:107 goog-remb a=rtcp-fb:107 transport-cc a=fmtp:107 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f a=rtpmap:116 red/90000 a=rtpmap:117 ulpfec/90000 a=rtpmap:96 rtx/90000 a=fmtp:96 apt=100 a=rtpmap:97 rtx/90000 a=fmtp:97 apt=101 a=rtpmap:99 rtx/90000 a=fmtp:99 apt=107 a=rtpmap:98 rtx/90000 a=fmtp:98 apt=116 a=ssrc-group:FID 3763592724 301721755 a=ssrc:3763592724 cname:pIReX3tFSmx0Qxt4 a=ssrc:3763592724 msid:FQ7WP8qPrsgzBIEvFm5NgbvpDSrLj8F8rH2D 61bee843-0a94-46f6-be54-14c69c884925 a=ssrc:3763592724 mslabel:FQ7WP8qPrsgzBIEvFm5NgbvpDSrLj8F8rH2D a=ssrc:3763592724 label:61bee843-0a94-46f6-be54-14c69c884925 a=ssrc:301721755 cname:pIReX3tFSmx0Qxt4 a=ssrc:301721755 msid:FQ7WP8qPrsgzBIEvFm5NgbvpDSrLj8F8rH2D 61bee843-0a94-46f6-be54-14c69c884925 a=ssrc:301721755 mslabel:FQ7WP8qPrsgzBIEvFm5NgbvpDSrLj8F8rH2D a=ssrc:301721755 label:61bee843-0a94-46f6-be54-14c69c884925 m=application 7822 DTLS/SCTP 5000 c=IN IP4 212.112.188.157 a=candidate:2691206179 1 udp 2122265343 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 58857 typ host generation 0 network-id 3 a=candidate:801776872 1 udp 2122199807 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 58858 typ host generation 0 network-id 2 a=candidate:2999745851 1 udp 2122129151 192.168.56.1 58859 typ host generation 0 network-id 4 a=candidate:146061198 1 udp 2122063615 10.46.16.36 58860 typ host generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 7822 typ srflx raddr 10.46.16.36 rport 58860 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 19343 typ srflx raddr 10.46.16.36 rport 58860 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 19488 typ srflx raddr 10.46.16.36 rport 58860 generation 0 network-id 1 a=candidate:4008407251 1 tcp 1518285567 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 9 typ host tcptype active generation 0 network-id 3 a=candidate:1632229400 1 tcp 1518220031 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 9 typ host tcptype active generation 0 network-id 2 a=candidate:4233069003 1 tcp 1518149375 192.168.56.1 9 typ host tcptype active generation 0 network-id 4 a=candidate:1178028926 1 tcp 1518083839 10.46.16.36 9 typ host tcptype active generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 64903 typ srflx raddr 10.46.16.36 rport 58860 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 18696 typ srflx raddr 10.46.16.36 rport 58860 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 11500 typ srflx raddr 10.46.16.36 rport 58860 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 58805 typ srflx raddr 10.46.16.36 rport 58860 generation 0 network-id 1 a=ice-ufrag:Mji/ a=ice-pwd:ZTbRcg26Hh6E3cfUq6+1XG85 a=fingerprint:sha-256 0C:B4:8D:F4:43:F4:22:58:A0:27:10:8E:CB:E9:EA:4D:E0:FE:BA:86:47:72:88:02:DD:0A:49:C3:B8:27:AC:01 a=setup:actpass a=mid:data a=sctpmap:5000 webrtc-datachannel 1024

skylink.complete.js:18462 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - <> (offer) Session description object created RTCSessionDescription {type: "offer", sdp: "v=0 ↵o=- 5564996145068095566 3 IN IP4 127.0.0.1 ↵s…id:data ↵a=sctpmap:5000 webrtc-datachannel 1024 ↵"} skylink.complete.js:18464 SkylinkJS - <> Received message skylink.complete.js:18464 SkylinkJS - <> (channelMessage) Event is triggered skylink.complete.js:18462 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - Received from peer -> offer skylink.complete.js:18462 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - (offer) Received offer from peer. Session description: v=0 o=- 1658432623565629823 3 IN IP4 127.0.0.1 s=- t=0 0 a=group:BUNDLE audio video data a=msid-semantic: WMS UKNMYUu2QxxXBNm9dzduBFzbxJ8P1HrdLcjE m=audio 25680 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 126 c=IN IP4 212.112.188.157 a=rtcp:27357 IN IP4 212.112.188.157 a=candidate:2691206179 1 udp 2122265343 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 54240 typ host generation 0 network-id 3 a=candidate:801776872 1 udp 2122199807 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 54241 typ host generation 0 network-id 2 a=candidate:2999745851 1 udp 2122129151 192.168.56.1 54242 typ host generation 0 network-id 4 a=candidate:146061198 1 udp 2122063615 10.46.16.36 54243 typ host generation 0 network-id 1 a=candidate:2691206179 2 udp 2122265342 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 54244 typ host generation 0 network-id 3 a=candidate:801776872 2 udp 2122199806 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 54245 typ host generation 0 network-id 2 a=candidate:2999745851 2 udp 2122129150 192.168.56.1 54246 typ host generation 0 network-id 4 a=candidate:146061198 2 udp 2122063614 10.46.16.36 54247 typ host generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 27357 typ srflx raddr 10.46.16.36 rport 54247 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 25680 typ srflx raddr 10.46.16.36 rport 54243 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 53518 typ srflx raddr 10.46.16.36 rport 54243 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 2608 typ srflx raddr 10.46.16.36 rport 54247 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 26862 typ srflx raddr 10.46.16.36 rport 54243 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 61362 typ srflx raddr 10.46.16.36 rport 54247 generation 0 network-id 1 a=candidate:4008407251 1 tcp 1518285567 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 9 typ host tcptype active generation 0 network-id 3 a=candidate:1632229400 1 tcp 1518220031 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 9 typ host tcptype active generation 0 network-id 2 a=candidate:4233069003 1 tcp 1518149375 192.168.56.1 9 typ host tcptype active generation 0 network-id 4 a=candidate:1178028926 1 tcp 1518083839 10.46.16.36 9 typ host tcptype active generation 0 network-id 1 a=candidate:4008407251 2 tcp 1518285566 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 9 typ host tcptype active generation 0 network-id 3 a=candidate:1632229400 2 tcp 1518220030 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 9 typ host tcptype active generation 0 network-id 2 a=candidate:4233069003 2 tcp 1518149374 192.168.56.1 9 typ host tcptype active generation 0 network-id 4 a=candidate:1178028926 2 tcp 1518083838 10.46.16.36 9 typ host tcptype active generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 47640 typ srflx raddr 10.46.16.36 rport 54243 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 25130 typ srflx raddr 10.46.16.36 rport 54247 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 25546 typ srflx raddr 10.46.16.36 rport 54247 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 16112 typ srflx raddr 10.46.16.36 rport 54243 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 15213 typ srflx raddr 10.46.16.36 rport 54243 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 38448 typ srflx raddr 10.46.16.36 rport 54247 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 4143 typ srflx raddr 10.46.16.36 rport 54243 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 34985 typ srflx raddr 10.46.16.36 rport 54247 generation 0 network-id 1 a=ice-ufrag:snQE a=ice-pwd:SvycgwajuC/KnOTqvpCjhdl7 a=fingerprint:sha-256 C3:85:F6:DB:39:81:1F:BA:02:24:41:1D:5B:4F:43:2D:4C:4E:AD:47:54:05:8B:2B:F0:BF:0D:01:35:55:47:F5 a=setup:actpass a=mid:audio a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time a=sendrecv a=rtcp-mux a=rtpmap:111 opus/48000/2 a=rtcp-fb:111 transport-cc a=fmtp:111 minptime=10;useinbandfec=1 a=rtpmap:103 ISAC/16000 a=rtpmap:104 ISAC/32000 a=rtpmap:9 G722/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:106 CN/32000 a=rtpmap:105 CN/16000 a=rtpmap:13 CN/8000 a=rtpmap:126 telephone-event/8000 a=ssrc:2172386440 cname:XQZRRj3PHWu0cVCs a=ssrc:2172386440 msid:UKNMYUu2QxxXBNm9dzduBFzbxJ8P1HrdLcjE 201c9cf9-bbd1-4bf8-8ed9-b013aa72c43a a=ssrc:2172386440 mslabel:UKNMYUu2QxxXBNm9dzduBFzbxJ8P1HrdLcjE a=ssrc:2172386440 label:201c9cf9-bbd1-4bf8-8ed9-b013aa72c43a m=video 15891 UDP/TLS/RTP/SAVPF 100 101 107 116 117 96 97 99 98 c=IN IP4 212.112.188.157 a=rtcp:37531 IN IP4 212.112.188.157 a=candidate:2691206179 1 udp 2122265343 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 54252 typ host generation 0 network-id 3 a=candidate:801776872 1 udp 2122199807 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 54253 typ host generation 0 network-id 2 a=candidate:2999745851 1 udp 2122129151 192.168.56.1 54254 typ host generation 0 network-id 4 a=candidate:146061198 1 udp 2122063615 10.46.16.36 54255 typ host generation 0 network-id 1 a=candidate:2691206179 2 udp 2122265342 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 54256 typ host generation 0 network-id 3 a=candidate:801776872 2 udp 2122199806 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 54257 typ host generation 0 network-id 2 a=candidate:2999745851 2 udp 2122129150 192.168.56.1 54258 typ host generation 0 network-id 4 a=candidate:146061198 2 udp 2122063614 10.46.16.36 54259 typ host generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 15891 typ srflx raddr 10.46.16.36 rport 54255 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 37531 typ srflx raddr 10.46.16.36 rport 54259 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 18701 typ srflx raddr 10.46.16.36 rport 54259 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 14544 typ srflx raddr 10.46.16.36 rport 54255 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 39719 typ srflx raddr 10.46.16.36 rport 54255 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 59893 typ srflx raddr 10.46.16.36 rport 54259 generation 0 network-id 1 a=candidate:4008407251 1 tcp 1518285567 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 9 typ host tcptype active generation 0 network-id 3 a=candidate:1632229400 1 tcp 1518220031 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 9 typ host tcptype active generation 0 network-id 2 a=candidate:4233069003 1 tcp 1518149375 192.168.56.1 9 typ host tcptype active generation 0 network-id 4 a=candidate:1178028926 1 tcp 1518083839 10.46.16.36 9 typ host tcptype active generation 0 network-id 1 a=candidate:4008407251 2 tcp 1518285566 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 9 typ host tcptype active generation 0 network-id 3 a=candidate:1632229400 2 tcp 1518220030 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 9 typ host tcptype active generation 0 network-id 2 a=candidate:4233069003 2 tcp 1518149374 192.168.56.1 9 typ host tcptype active generation 0 network-id 4 a=candidate:1178028926 2 tcp 1518083838 10.46.16.36 9 typ host tcptype active generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 12166 typ srflx raddr 10.46.16.36 rport 54259 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 28866 typ srflx raddr 10.46.16.36 rport 54255 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 58892 typ srflx raddr 10.46.16.36 rport 54255 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 12390 typ srflx raddr 10.46.16.36 rport 54259 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 48352 typ srflx raddr 10.46.16.36 rport 54255 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 43560 typ srflx raddr 10.46.16.36 rport 54259 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 35305 typ srflx raddr 10.46.16.36 rport 54255 generation 0 network-id 1 a=candidate:2716547163 2 udp 1685855998 212.112.188.157 5141 typ srflx raddr 10.46.16.36 rport 54259 generation 0 network-id 1 a=ice-ufrag:snQE a=ice-pwd:SvycgwajuC/KnOTqvpCjhdl7 a=fingerprint:sha-256 C3:85:F6:DB:39:81:1F:BA:02:24:41:1D:5B:4F:43:2D:4C:4E:AD:47:54:05:8B:2B:F0:BF:0D:01:35:55:47:F5 a=setup:actpass a=mid:video a=extmap:2 urn:ietf:params:rtp-hdrext:toffset a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time a=extmap:4 urn:3gpp:video-orientation a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay a=sendrecv a=rtcp-mux a=rtcp-rsize a=rtpmap:100 VP8/90000 a=rtcp-fb:100 ccm fir a=rtcp-fb:100 nack a=rtcp-fb:100 nack pli a=rtcp-fb:100 goog-remb a=rtcp-fb:100 transport-cc a=rtpmap:101 VP9/90000 a=rtcp-fb:101 ccm fir a=rtcp-fb:101 nack a=rtcp-fb:101 nack pli a=rtcp-fb:101 goog-remb a=rtcp-fb:101 transport-cc a=rtpmap:107 H264/90000 a=rtcp-fb:107 ccm fir a=rtcp-fb:107 nack a=rtcp-fb:107 nack pli a=rtcp-fb:107 goog-remb a=rtcp-fb:107 transport-cc a=fmtp:107 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f a=rtpmap:116 red/90000 a=rtpmap:117 ulpfec/90000 a=rtpmap:96 rtx/90000 a=fmtp:96 apt=100 a=rtpmap:97 rtx/90000 a=fmtp:97 apt=101 a=rtpmap:99 rtx/90000 a=fmtp:99 apt=107 a=rtpmap:98 rtx/90000 a=fmtp:98 apt=116 a=ssrc-group:FID 2582643540 2578869194 a=ssrc:2582643540 cname:XQZRRj3PHWu0cVCs a=ssrc:2582643540 msid:UKNMYUu2QxxXBNm9dzduBFzbxJ8P1HrdLcjE 6fa1c7d2-f92d-4835-9786-5212d5b5e21c a=ssrc:2582643540 mslabel:UKNMYUu2QxxXBNm9dzduBFzbxJ8P1HrdLcjE a=ssrc:2582643540 label:6fa1c7d2-f92d-4835-9786-5212d5b5e21c a=ssrc:2578869194 cname:XQZRRj3PHWu0cVCs a=ssrc:2578869194 msid:UKNMYUu2QxxXBNm9dzduBFzbxJ8P1HrdLcjE 6fa1c7d2-f92d-4835-9786-5212d5b5e21c a=ssrc:2578869194 mslabel:UKNMYUu2QxxXBNm9dzduBFzbxJ8P1HrdLcjE a=ssrc:2578869194 label:6fa1c7d2-f92d-4835-9786-5212d5b5e21c m=application 42109 DTLS/SCTP 5000 c=IN IP4 212.112.188.157 a=candidate:2691206179 1 udp 2122265343 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 54248 typ host generation 0 network-id 3 a=candidate:801776872 1 udp 2122199807 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 54249 typ host generation 0 network-id 2 a=candidate:2999745851 1 udp 2122129151 192.168.56.1 54250 typ host generation 0 network-id 4 a=candidate:146061198 1 udp 2122063615 10.46.16.36 54251 typ host generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 42109 typ srflx raddr 10.46.16.36 rport 54251 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 19564 typ srflx raddr 10.46.16.36 rport 54251 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 33676 typ srflx raddr 10.46.16.36 rport 54251 generation 0 network-id 1 a=candidate:4008407251 1 tcp 1518285567 fd93:27e0:59ca:16:a9a7:deaa:c30d:f143 9 typ host tcptype active generation 0 network-id 3 a=candidate:1632229400 1 tcp 1518220031 fd93:27e0:59ca:16:b019:fdd5:96d3:18f2 9 typ host tcptype active generation 0 network-id 2 a=candidate:4233069003 1 tcp 1518149375 192.168.56.1 9 typ host tcptype active generation 0 network-id 4 a=candidate:1178028926 1 tcp 1518083839 10.46.16.36 9 typ host tcptype active generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 44866 typ srflx raddr 10.46.16.36 rport 54251 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 46110 typ srflx raddr 10.46.16.36 rport 54251 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 33476 typ srflx raddr 10.46.16.36 rport 54251 generation 0 network-id 1 a=candidate:2716547163 1 udp 1685855999 212.112.188.157 16044 typ srflx raddr 10.46.16.36 rport 54251 generation 0 network-id 1 a=ice-ufrag:snQE a=ice-pwd:SvycgwajuC/KnOTqvpCjhdl7 a=fingerprint:sha-256 C3:85:F6:DB:39:81:1F:BA:02:24:41:1D:5B:4F:43:2D:4C:4E:AD:47:54:05:8B:2B:F0:BF:0D:01:35:55:47:F5 a=setup:actpass a=mid:data a=sctpmap:5000 webrtc-datachannel 1024

skylink.complete.js:18462 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - <> (offer) Session description object created RTCSessionDescription {type: "offer", sdp: "v=0 ↵o=- 1658432623565629823 3 IN IP4 127.0.0.1 ↵s…id:data ↵a=sctpmap:5000 webrtc-datachannel 1024 ↵"} skylink.complete.js:18462 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - <> Peer connection state changed -> have-remote-offer skylink.complete.js:18464 SkylinkJS - <> (peerConnectionState) Event is triggered skylink.complete.js:18462 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - <> Peer connection state changed -> have-remote-offer skylink.complete.js:18464 SkylinkJS - <> (peerConnectionState) Event is triggered skylink.complete.js:18464 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - <> (offer) Remote description set skylink.complete.js:18464 SkylinkJS - <> (handshakeProgress) Event is triggered skylink.complete.js:18464 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - No queued candidates to add skylink.complete.js:18462 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - Creating answer with config: Object {mandatory: Object} skylink.complete.js:18464 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - <> (offer) Remote description set skylink.complete.js:18464 SkylinkJS - <> (handshakeProgress) Event is triggered skylink.complete.js:18464 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - No queued candidates to add skylink.complete.js:18462 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - Creating answer with config: Object {mandatory: Object} skylink.complete.js:18462 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - Created answer RTCSessionDescription {type: "answer", sdp: "v=0 ↵o=- 2366888081698178342 3 IN IP4 127.0.0.1 ↵s…id:data ↵a=sctpmap:5000 webrtc-datachannel 1024 ↵"} skylink.complete.js:18464 SkylinkJS - <> Not setting maximum sending audio bandwidth bitrate and leaving to browser's defaults skylink.complete.js:18464 SkylinkJS - <> Not setting maximum sending video bandwidth bitrate and leaving to browser's defaults skylink.complete.js:18464 SkylinkJS - <> Not setting maximum sending data bandwidth bitrate and leaving to browser's defaults skylink.complete.js:18464 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - Not setting any video codec skylink.complete.js:18464 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - Not setting any audio codec skylink.complete.js:18462 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - <> (answer) Updated session description: RTCSessionDescription {type: "answer", sdp: "v=0 ↵o=- 2366888081698178342 3 IN IP4 127.0.0.1 ↵s…id:data ↵a=sctpmap:5000 webrtc-datachannel 1024 ↵"} skylink.complete.js:18462 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - Created answer RTCSessionDescription {type: "answer", sdp: "v=0 ↵o=- 5923986816041455834 3 IN IP4 127.0.0.1 ↵s…id:data ↵a=sctpmap:5000 webrtc-datachannel 1024 ↵"} skylink.complete.js:18464 SkylinkJS - <> Not setting maximum sending audio bandwidth bitrate and leaving to browser's defaults skylink.complete.js:18464 SkylinkJS - <> Not setting maximum sending video bandwidth bitrate and leaving to browser's defaults skylink.complete.js:18464 SkylinkJS - <> Not setting maximum sending data bandwidth bitrate and leaving to browser's defaults skylink.complete.js:18464 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - Not setting any video codec skylink.complete.js:18464 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - Not setting any audio codec skylink.complete.js:18462 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - <> (answer) Updated session description: RTCSessionDescription {type: "answer", sdp: "v=0 ↵o=- 5923986816041455834 3 IN IP4 127.0.0.1 ↵s…id:data ↵a=sctpmap:5000 webrtc-datachannel 1024 ↵"} skylink.complete.js:18462 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - <> Peer connection state changed -> stable skylink.complete.js:18464 SkylinkJS - <> (peerConnectionState) Event is triggered skylink.complete.js:18464 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - <> Peer connection with user is stable skylink.complete.js:18464 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - <> Stopping peer connection health timer check skylink.complete.js:18462 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - <> Peer connection state changed -> stable skylink.complete.js:18464 SkylinkJS - <> (peerConnectionState) Event is triggered skylink.complete.js:18464 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - <> Peer connection with user is stable skylink.complete.js:18464 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - <> Stopping peer connection health timer check skylink.complete.js:18464 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - <> (Local description set) undefined skylink.complete.js:18464 SkylinkJS - <> (handshakeProgress) Event is triggered skylink.complete.js:18462 SkylinkJS [zx8Ovc2LIaHghbw2AAR4] - Sending to peer -> Object {type: "answer", sdp: "v=0 ↵o=- 2366888081698178342 3 IN IP4 127.0.0.1 ↵s…id:data ↵a=sctpmap:5000 webrtc-datachannel 1024 ↵", mid: "AIUqJSdSr94KylY3ABTh", target: "zx8Ovc2LIaHghbw2AAR4", rid: "e331b0254976f2720d6514283d97693f0b710b1a_api_room1"…} skylink.complete.js:18464 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - <> (Local description set) undefined skylink.complete.js:18464 SkylinkJS - <> (handshakeProgress) Event is triggered skylink.complete.js:18462 SkylinkJS [KwCTxKkpdHGd0Gf9AAoh] - Sending to peer -> Object {type: "answer", sdp: "v=0 ↵o=- 5923986816041455834 3 IN IP4 127.0.0.1 ↵s…id:data ↵a=sctpmap:5000 webrtc-datachannel 1024 ↵", mid: "AIUqJSdSr94KylY3ABTh", target: "KwCTxKkpdHGd0Gf9AAoh", rid: "e331b0254976f2720d6514283d97693f0b710b1a_api_room1"…} skylink.complete.js:18462 SkylinkJS [server] - Sending to peers -> Object {type: "stream", mid: "AIUqJSdSr94KylY3ABTh", rid: "e331b0254976f2720d6514283d97693f0b710b1a_api_room1", cid: "SkyWay00000001", sessionType: "stream"…} skylink.complete.js:18462 SkylinkJS [server] - Messages fired too rapidly. Delaying. Object {interval: 1000, throughput: 16, message: Object} skylink.complete.js:18462 SkylinkJS [server] - Sending delayed messages -> Object {type: "group", lists: Array[1], mid: "AIUqJSdSr94KylY3ABTh", rid: "e331b0254976f2720d6514283d97693f0b710b1a_api_room1"}

JanNorden commented 7 years ago

And without the logging:

chrome: {"audio":{},"video":{"mandatory":{"maxWidth":320,"maxHeight":240}}} code.js:24 Stream stopped undefined code.js:11 streamEnded code.js:19 Stream retrieved f45j2ijiyWkGfU0zS5HiFMFqbPTAoRmeLfqB code.js:7 incomingStream code.js:24 Stream stopped undefined code.js:11 streamEnded

JanNorden commented 7 years ago

Note that the stream isn't actually stopped. There is just an extra incorrect event.

oooookk7 commented 7 years ago

Hi @JanNorden, verified. Thanks for the bug report. Yes, it is just extra incorrect events being trigger if you log the streamId above. For now, I would suggest to identify streams with the stream.id as a proper workaround as documented which should work for your case.

skylink.on('incomingStream', function (_peerId, stream) {
  console.log("stream ID ->", stream.id);
});

skylink.on('streamEnded', function (_peerId, peerInfo, isSelf, isScreenSharing, streamId) {
  console.log("stream ID ->", streamId);
});
oooookk7 commented 7 years ago

Hi @JanNorden, this issue has been resolved in the 0.6.16 release version and hence I'm closing this ticket for now. If this issue persists, please feel free to re-open this ticket.