ImTheSquid / Tuxphones

[In-Development] Discord Screensharing Audio for Linux
MIT License
56 stars 4 forks source link

webrtc::peer_connection fails to handle incoming RTCP ssrc. #18

Closed sagematter closed 1 year ago

sagematter commented 1 year ago

!!!!!!! I did an nslookup to force the ip of the endpoint after clicking start stream ( the previous bug I was complaining about ) !!!!

String: {"type":"StartStream","pid":30303,"xid":134217729,"resolution":{"width":0,"height":0,"is_fixed":false},"framerate":60,"server_id":"1048070417161650186","user_id":"147892034932441088","token":"a328700fb10383f4","session_id":"d0a96ba751af9725e869d95df3cc98d6","rtc_connection_id":"adbb0f20-b943-4de7-8ee5-4c3626d9aedf","endpoint":"us-east2334.discord.media:443","ip":"162.159.129.235","ice":{"type":"IceData","urls":["stun:global.stun.twilio.com:3478?transport=udp","turn:global.turn.twilio.com:3478?transport=tcp","turn:global.turn.twilio.com:3478?transport=udp"],"username":"4aac1e53ade1a5473f8b5da67be3b591113cad11a9c75f957537026f628111fa","credential":"dyH2YPGFDI8rgDcaAl73jJOR7ga/st4/YpNxsVJ498A="}} 2022-12-02T02:57:40.079336Z INFO tuxphones: [StartStream] Command received 2022-12-02T02:57:40.148489Z INFO tuxphones::gstreamer: [WebRTC] Negotiation needed 2022-12-02T02:57:40.164483Z INFO webrtc_ice::mdns: mDNS is using 224.0.0.251:5353 as dest_addr
2022-12-02T02:57:40.165024Z INFO webrtc_mdns::conn: Looping and listening Ok(224.0.0.251:5353)
2022-12-02T02:57:40.166304Z INFO webrtc::peer_connection: signaling state changed to have-local-offer
2022-12-02T02:57:40.166392Z INFO tuxphones::gstreamer: [WebRTC] Local description set 2022-12-02T02:57:40.166516Z WARN webrtc_ice::agent::agent_gather: [controlled]: Unable to handle URL in gather_candidates_relay turn:global.turn.twilio.com:3478?transport=tcp
2022-12-02T02:57:40.195676Z INFO new{endpoint="us-east2334.discord.media:443" max_framerate=60 max_resolution=StreamResolutionInformation { width: 0, height: 0, is_fixed: false } rtc_connection_id="adbb0f20-b943-4de7-8ee5-4c3626d9aedf" ip="162.159.129.235" server_id="1048070417161650186" session_id="d0a96ba751af9725e869d95df3cc98d6" token="a328700fb10383f4" user_id="147892034932441088" from_gst_rx=Receiver { chan: Rx { inner: Chan { tx: Tx { block_tail: 0x7f01fc0b9dd0, tail_position: 0 }, semaphore: (Semaphore { permits: 10 }, 10), rx_waker: AtomicWaker, tx_count: 1, rx_fields: "..." } } } to_gst_tx=Sender { chan: Tx { inner: Chan { tx: Tx { block_tail: 0x7f01b005b7c0, tail_position: 0 }, semaphore: (Semaphore { permits: 10 }, 10), rx_waker: AtomicWaker, tx_count: 1, rx_fields: "..." } } } command_sender=Sender { chan: Tx { inner: Chan { tx: Tx { block_tail: 0x55d1bd30a470, tail_position: 75 }, semaphore: (Semaphore { permits: 1000 }, 1000), rx_waker: AtomicWaker, tx_count: 5, rx_fields: "..." } } }}: tuxphones::discord::websocket: WebSocket connection successful 2022-12-02T02:57:40.214892Z WARN webrtc_ice::agent::agent_gather: [controlled]: failed to resolve stun host: global.turn.twilio.com:3478: io error: No available ipv6 IP address found!
2022-12-02T02:57:40.215812Z WARN webrtc_ice::agent::agent_gather: [controlled]: failed to resolve stun host: global.stun.twilio.com:3478: io error: No available ipv6 IP address found!
2022-12-02T02:57:40.220699Z WARN webrtc_ice::agent::agent_gather: [controlled]: failed to resolve stun host: global.turn.twilio.com:3478: io error: No available ipv6 IP address found!
2022-12-02T02:57:40.226923Z WARN webrtc_ice::agent::agent_gather: [controlled]: Failed to allocate on turn.Client global.turn.twilio.com:3478 Allocate error response (error 401: Unauthorized)
2022-12-02T02:57:40.231152Z INFO tuxphones: [StartStream] Command processed (stream started) 2022-12-02T02:57:40.231171Z INFO tuxphones: Sending stream preview 2022-12-02T02:57:40.237877Z INFO webrtc::peer_connection: signaling state changed to stable
2022-12-02T02:57:40.239171Z INFO tuxphones::gstreamer: [WebRTC] Remote description set 2022-12-02T02:57:40.239338Z INFO webrtc_ice::agent::agent_internal: [controlling]: Setting new connection state: Checking
2022-12-02T02:57:40.239393Z INFO webrtc::peer_connection: ICE connection state changed: checking
2022-12-02T02:57:40.248251Z INFO webrtc_ice::agent::agent_internal: [controlling]: Setting new connection state: Connected
2022-12-02T02:57:40.248366Z INFO webrtc::peer_connection: ICE connection state changed: connected
2022-12-02T02:57:40.269851Z INFO webrtc::peer_connection: peer connection state changed: connected
2022-12-02T02:57:40.690942Z WARN webrtc::peer_connection::peer_connection_internal: Incoming unhandled RTCP ssrc(0), on_track will not be fired

ImTheSquid commented 1 year ago

That's likely a harmless error message as we don't currently care about incoming streams.