Replies: 1 comment
-
I think there are two issues here:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been trying to set up a DataChannel using libdatachannel, but the connection breaks as soon as it gets set up.
It's an Android WebRTC project with parts of it being itegrated via JNI, DataChannels for instance.
The JNI setup looks as follows :
Here's the output whenever I run the Android app on
ws://192.168.215.220
with a user ID local_user_id:Here's the output of
./client-benchmark -d 300 -w ws://192.168.215.220
:Initialize my Node Server :
Server listening on 192.168.215.220:8000
WS /local_user_id
Client local_user_id << {"description":"v=0\r\no=rtc 3789351977 0 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0\r\na=msid-semantic:WMS *\r\na=setup:actpass\r\na=ice-ufrag:9x6r\r\na=ice-pwd:JUE9x5b5ngOlfdO/gdawjl\r\na=ice-options:ice2,trickle\r\na=fingerprint:sha-256 78:0A:DA:00:09:5D:7C:61:9D:9C:B7:90:1B:77:73:29:53:85:10:34:09:AA:3A:0C:77:82:F4:CB:60:33:4F:40\r\nm=application 9 UDP/DTLS/SCTP webrtc-datachannel\r\nc=IN IP4 0.0.0.0\r\na=mid:0\r\na=sendrecv\r\na=sctp-port:5000\r\na=max-message-size:262144\r\n","id":"remote_user_id","type":"offer"}
Client remote_user_id not found
Client local_user_id << {"candidate":"a=candidate:1 1 UDP 2122317823 192.168.0.30 55988 typ host","id":"remote_user_id","mid":"0","type":"candidate"}
Client remote_user_id not found
Client local_user_id << {"candidate":"a=candidate:2 1 UDP 2122317567 192.168.215.128 55988 typ host","id":"remote_user_id","mid":"0","type":"candidate"}
Client remote_user_id not found
Client local_user_id disconnected
WS /remote_user_id
Client remote_user_id << {"description":"v=0\r\no=rtc 1214504962 0 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0\r\na=msid-semantic:WMS *\r\na=setup:actpass\r\na=ice-ufrag:fZhe\r\na=ice-pwd:41wQzd7P5ecBNTRW/25AE4\r\na=ice-options:ice2,trickle\r\na=fingerprint:sha-256 9E:AB:BF:22:BF:0E:2A:88:F6:23:32:EA:FF:EB:10:F8:22:73:07:29:64:1A:E0:FD:9B:AD:9B:3E:FC:90:EE:8E\r\nm=application 9 UDP/DTLS/SCTP webrtc-datachannel\r\nc=IN IP4 0.0.0.0\r\na=mid:0\r\na=sendrecv\r\na=sctp-port:5000\r\na=max-message-size:262144\r\n","id":"local_user_id","type":"offer"}
Client local_user_id not found
Client remote_user_id << {"candidate":"a=candidate:1 1 UDP 2122317823 192.168.215.220 40791 typ host","id":"local_user_id","mid":"0","type":"candidate"}
Client local_user_id not found
Client remote_user_id << {"candidate":"a=candidate:2 1 UDP 1686109951 102.140.244.151 40791 typ srflx raddr 0.0.0.0 rport 0","id":"local_user_id","mid":"0","type":"candidate"}
Client local_user_id not found
As you can see the android app connects and disconnects immediately.
How can I get this to work?
Thank you all in advance.
Heres the libdatachannel implementation :
Beta Was this translation helpful? Give feedback.
All reactions