Discussions

Ask a Question
Back to All

API Response not a valid response

Hi. Im getting the following response v1/streaming.new .. Which Is a invalid json I couldn't move further.

..............

{"code":100,"data":{"session_id":"4e8d2a97-e4e1-11ee-9a5d-4613019ff588","sdp":{"type":"offer","sdp":"v=0\r\no=-
4735743835155202953 1710736961 IN IP4 0.0.0.0\r\ns=-\r\nt=0 0\r\na=fingerprint:sha-256
DD:FA:EB:0C:27:76:79:68:CB:54:E9:21:81:38:55:AB:9C:ED:CC:D7:10:42:2D:EA:3A:D1:6F:34:1E:C6:54:2B\r\na=extmap-allow-mixed\r\na=group:BUNDLE
0 1 2\r\nm=video 9 UDP/TLS/RTP/SAVPF 96\r\nc=IN IP4
0.0.0.0\r\na=setup:actpass\r\na=mid:0\r\na=ice-ufrag:iwMisUWVyFlbRYxO\r\na=ice-pwd:jOFFQBkcOEsDgvmSqhpKSlRyqCjjkCXL\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:96
VP8/90000\r\na=ssrc:2891845027 cname:pion\r\na=ssrc:2891845027 msid:pion video\r\na=ssrc:2891845027
mslabel:pion\r\na=ssrc:2891845027 label:video\r\na=msid:pion video\r\na=sendonly\r\na=candidate:1534516513 1 udp
2130706431 192.168.58.198 41758 typ host\r\na=candidate:1534516513 2 udp 2130706431 192.168.58.198 41758 typ
host\r\na=candidate:233762139 1 udp 2130706431 172.17.0.1 60594 typ host\r\na=candidate:233762139 2 udp 2130706431
172.17.0.1 60594 typ host\r\na=candidate:3346835650 1 udp 1694498815 18.191.153.170 40591 typ srflx raddr 0.0.0.0 rport
40591\r\na=candidate:3346835650 2 udp 1694498815 18.191.153.170 40591 typ srflx raddr 0.0.0.0 rport
40591\r\na=candidate:3346835650 1 udp 1694498815 18.191.153.170 53252 typ srflx raddr 0.0.0.0 rport
53252\r\na=candidate:3346835650 2 udp 1694498815 18.191.153.170 53252 typ srflx raddr 0.0.0.0 rport
53252\r\na=candidate:3346835650 1 udp 1694498815 18.191.153.170 51921 typ srflx raddr 0.0.0.0 rport
51921\r\na=candidate:3346835650 2 udp 1694498815 18.191.153.170 51921 typ srflx raddr 0.0.0.0 rport
51921\r\na=candidate:3346835650 1 udp 1694498815 18.191.153.170 60307 typ srflx raddr 0.0.0.0 rport
60307\r\na=candidate:3346835650 2 udp 1694498815 18.191.153.170 60307 typ srflx raddr 0.0.0.0 rport
60307\r\na=candidate:3346835650 1 udp 1694498815 18.191.153.170 60819 typ srflx raddr 0.0.0.0 rport
60819\r\na=candidate:3346835650 2 udp 1694498815 18.191.153.170 60819 typ srflx raddr 0.0.0.0 rport
60819\r\na=candidate:1434091310 1 udp 16777215 34.203.251.212 25599 typ relay raddr 0.0.0.0 rport
51372\r\na=candidate:1434091310 2 udp 16777215 34.203.251.212 25599 typ relay raddr 0.0.0.0 rport
51372\r\na=candidate:1434091310 1 udp 16777215 34.203.251.212 51945 typ relay raddr 192.168.58.198 rport
44472\r\na=candidate:1434091310 2 udp 16777215 34.203.251.212 51945 typ relay raddr 192.168.58.198 rport
44472\r\na=candidate:1434091310 1 udp 16777215 34.203.251.212 46944 typ relay raddr 192.168.58.198 rport
56442\r\na=candidate:1434091310 2 udp 16777215 34.203.251.212 46944 typ relay raddr 192.168.58.198 rport
56442\r\na=end-of-candidates\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4
0.0.0.0\r\na=setup:actpass\r\na=mid:1\r\na=ice-ufrag:iwMisUWVyFlbRYxO\r\na=ice-pwd:jOFFQBkcOEsDgvmSqhpKSlRyqCjjkCXL\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:111
opus/48000/2\r\na=fmtp:111 minptime=10;useinbandfec=1\r\na=ssrc:550330714 cname:pion\r\na=ssrc:550330714 msid:pion
audio\r\na=ssrc:550330714 mslabel:pion\r\na=ssrc:550330714 label:audio\r\na=msid:pion
audio\r\na=sendrecv\r\nm=application 9 UDP/DTLS/SCTP webrtc-datachannel\r\nc=IN IP4
0.0.0.0\r\na=setup:actpass\r\na=mid:2\r\na=sendrecv\r\na=sctp-port:5000\r\na=ice-ufrag:iwMisUWVyFlbRYxO\r\na=ice-pwd:jOFFQBkcOEsDgvmSqhpKSlRyqCjjkCXL\r\n"},"ice_servers":["stun:stun.l.google.com:19302"],"ice_servers2":[{"credentialType":"password","urls":["stun:stun.l.google.com:19302"]},{"credential":"","credentialType":"password","urls":["stun:global.stun.twilio.com:3478"]},{"credential":"Kphvw+7m32YM3aAmjOqNnVzgbs1XvPCDS4cD7GpRG6g=","credentialType":"password","urls":["turn:global.turn.twilio.com:3478?transport=udp"],"username":"267c5c925d92d0634a2761a6457f40e3578eed98597e6bde7fc5ee82db33b6a3"},{"credential":"Kphvw+7m32YM3aAmjOqNnVzgbs1XvPCDS4cD7GpRG6g=","credentialType":"password","urls":["turn:global.turn.twilio.com:3478?transport=tcp"],"username":"267c5c925d92d0634a2761a6457f40e3578eed98597e6bde7fc5ee82db33b6a3"},{"credential":"Kphvw+7m32YM3aAmjOqNnVzgbs1XvPCDS4cD7GpRG6g=","credentialType":"password","urls":["turn:global.turn.twilio.com:443?transport=tcp"],"username":"267c5c925d92d0634a2761a6457f40e3578eed98597e6bde7fc5ee82db33b6a3"}]},"message":"success"}