Discussions

Ask a Question
Back to All

live streaming agent in Flutter

to use the live streaming with the agent.. should the access status be public?

I've been trying to implement live streaming agent in Flutter but keep getting the ICE connection fails..

I was able to create agent, session, send chat. But was not able to get any video/audio response back from the AI - agent because of the ICE/webrtc I don't know what the reason is.

flutter: Failed to submit SDP answer with status code: 400

flutter: Response: {"kind":"ValidationError","description":"validation failed","details":{"body.answer":{"message":"invalid object","value":"v=0\r\no=- 8738710856524023695 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE a d\r\na=extmap-allow-mixed\r\na=msid-semantic: WMS\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:iO4p\r\na=ice-pwd:1z9ElZM26y0Mvr3kpKtXpA8c\r\na=ice-options:trickle renomination\r\na=fingerprint:sha-256 9C:3F:2D:6D:EA:83:F1:5D:A1:C1:B0:37:98:6B:FD:33:70:67:0E:56:6A:41:7F:F8:51:38:1F:A0:9E:BE:51:36\r\na=setup:active\r\na=mid:a\r\na=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=recvonly\r\na=rtcp-mux\r\na=rtpmap:111 opus/48000/2\r\na=rtcp-fb:111 transport-cc\r\na=fmtp:111 minptime=10;useinbandfec=1\r\nm=video 0 UDP/TLS/RTP/SAVPF 0\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:A/oJ\r\na=ice-pwd:HycqNI9gGs6qQEHwHA9jQ/Qx\r\na=ice-option<…>
flutter: Sending message: hello to chat session: sessionID
flutter: Message sent successfully
flutter: No AI response available.
flutter: No AI response received.
flutter: ICE connection state: RTCIceConnectionState.RTCIceConnectionStateFailed
flutter: Sending message: hello to chat session: sessionID