Hi,
Now I modified Janus to be a Websocket client. And I modified Streaming Plugin to use Datachannels. Janus connects to a Websocket Server which works like a relay server.
When I connect Janus (Raspberry Pi 2) from a local PC(Firefox), I get video and datachannel working. But when I try from a remote Pc, Firefox says "ICE failed".
In webrtc internals it says;
____________________________________________________________________________________________________________________________
Local Candidate Remote Candidate ICE State Priority
other.clients.LOCAL.ip:49933/udp(host) janus.LOCAL.ip:50681/udp(host) failed 8646913483536859000
other.clients.LOCAL.ip:49933/udp(host) janus.PUBLIC.ip:50681/udp(serverreflexive) failed 7205760503266673000
other.clients.PUBLIC.ip:49933/udp(serverreflexive)
SDP
Local SDP
v=0
o=mozilla...THIS_IS_SDPARTA-40.0.3 4294967295 0 IN IP4 0.0.0.0
s=-
t=0 0
a=sendrecv
a=fingerprint:sha-256 67:D6:98:A5:E9:E8:CB:35:DC:12:EE:EB:B7:94:00:6F:08:81:89:F7:02:81:50:50:1F:52:9A:CA:F8:F2:C4:1E
a=group:BUNDLE video data
a=ice-options:trickle
a=msid-semantic:WMS *
m=video 49933 RTP/SAVPF 96
c=IN IP4 other.clients.PUBLIC.ip
a=candidate:0 1 UDP
2128609535 other.clients.LOCAL.ip 49933 typ host
a=candidate:1 1 UDP 1692467199 other.clients.PUBLIC.ip 49933 typ srflx raddr other.clients.LOCAL.ip rport 49933
a=recvonly
a=end-of-candidates
a=fmtp:96 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1
a=ice-pwd:095949f5c2cf0e808beaa2e7d38aaa0c
a=ice-ufrag:d18b64c4
a=mid:video
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtcp-fb:96 ccm fir
a=rtcp-mux
a=rtpmap:96 H264/90000
a=setup:active
a=ssrc:390419691 cname:{5f705f81-ee37-4739-a743-18f7b2ee8568}
m=application 49933 DTLS/SCTP 5000
c=IN IP4 other.clients.PUBLIC.ip
a=sendrecv
a=ice-pwd:095949f5c2cf0e808beaa2e7d38aaa0c
a=ice-ufrag:d18b64c4
a=mid:data
a=sctpmap:5000 webrtc-datachannel 256
a=setup:active
a=ssrc:2809031533 cname:{5f705f81-ee37-4739-a743-18f7b2ee8568}
Remote SDP
v=0
o=- 4294967295 4294967295 IN IP4 127.0.0.1
s=-
t=0 0
a=sendrecv
a=group:BUNDLE video data
a=msid-semantic:WMS janus
m=video 1 RTP/SAVPF 96
c=IN IP4 janus.LOCAL.ip
a=candidate:1 1 udp
2013266431 janus.LOCAL.ip 50681 typ host
a=candidate:3 1 udp 1677721855 janus.PUBLIC.ip 50681 typ srflx raddr janus.LOCAL.ip rport 50681
a=candidate:1 2 udp
2013266430 janus.LOCAL.ip 38133 typ host
a=candidate:3 2 udp 1677721854 janus.PUBLIC.ip 38133 typ srflx raddr janus.LOCAL.ip rport 38133
a=sendonly
a=fingerprint:sha-256 D2:B9:31:8F:DF:24:D8:0E:ED:D2:EF:25:9E:AF:6F:B8:34:AE:53:9C:E6:F3:8F:F2:64:15:FA:E8:7F:53:2D:38
a=fmtp:96 profile-level-id=42e028;level-asymmetry-allowed=0;packetization-mode=1
a=ice-options:trickle
a=ice-pwd:G9p50eaKvLvGJg+BC7arS8
a=ice-ufrag:JEj1
a=mid:video
a=rtcp-fb:96 nack
a=rtcp-mux
a=rtpmap:96 H264/90000
a=setup:actpass
a=ssrc:3705665206 cname:janusvideo
a=ssrc:3705665206 msid:janus janusv0
a=ssrc:3705665206 mslabel:janus
a=ssrc:3705665206 label:janusv0
m=application 1 DTLS/SCTP 5000
c=IN IP4 janus.LOCAL.ip
a=candidate:2 1 udp
2013266431 janus.LOCAL.ip 49540 typ host
a=candidate:4 1 udp 1677721855 janus.PUBLIC.ip 49540 typ srflx raddr janus.LOCAL.ip rport 49540
a=sendrecv
a=fingerprint:sha-256 D2:B9:31:8F:DF:24:D8:0E:ED:D2:EF:25:9E:AF:6F:B8:34:AE:53:9C:E6:F3:8F:F2:64:15:FA:E8:7F:53:2D:38
a=ice-options:trickle
a=ice-pwd:vZiR7c22jeLmoZA1BDHEK1
a=ice-ufrag:vmG/
a=mid:data
a=sctpmap:5000 webrtc-datachannel 16
a=setup:actpass
____________________________________________________________________________________________________________________________