melihercan / WebRTCme

A cross-platform framework for adding WebRTC support to .NET MAUI, Blazor, and Desktop applications by using a single unified .NET/C# API.
https://github.com/melihercan/WebRTCme
MIT License
232 stars 46 forks source link

Latest code not rendering video on Xamarin #12

Closed georgeinva2004 closed 2 years ago

georgeinva2004 commented 2 years ago

Once again, I think this project is brilliant!!!!

I was running into issues with my app where I had to update it's referenced packages which necessitated moving to your latest code. My android app is connecting properly to my Blazor app. Audio is working, but video is not rendering on the Android app (neither local camera nor remotely sourced from the Blazor app) nor is the android video rendering on the Blazor app. Both are on the same subnet. Any tips you can suggest or changes in the code that may have caused the android video rendering to break? While the call is in-progress, I do see the CallViewModel.MediaStreamParametersList have two members in the collection which I assume to be the local Android app media stream and the remote Blazor app media stream.

I'm including what I believe are the germane portions of the debug log. The sequence of events that generated the log is:

  1. Android App (the name used for the signaling server was TABA) initiates a call to the Blazor App (name for signaling is BART).
  2. The Blazor app answers the call
  3. The local video on the Blazor app appears. No video received from the Android app
  4. No local video on the Android app and Blazor video not rendering on the Android app
  5. Audio was being heard on both sides
  6. Terminated the call from the Android side
  7. Exited the Blazor app.

I do see evidence in the log of ICE Exchanges and a video codec firing up on the Android side. I also see entries that show the cameras are in a closed state, so maybe something there. I have the permissions set properly (and this worked with the earlier version of code).

I'd appreciate any help you can provide.

Regards,

-John

[0:] Microsoft.AspNetCore.Http.Connections.Client.HttpConnection: Debug: Skipping transport ServerSentEvents because it does not support the requested transfer format 'Binary'. [0:] Microsoft.AspNetCore.Http.Connections.Client.HttpConnection: Debug: Establishing connection with server at 'https://ghatest.george.net:7001/roomhub'. [0:] Microsoft.AspNetCore.Http.Connections.Client.HttpConnection: Debug: Established connection 'cWC43j6N5GqhHEsiuGbW9g' with the server. [0:] Microsoft.AspNetCore.Http.Connections.Client.HttpConnection: Debug: Starting transport 'LongPolling' with Url: https://ghatest.george.net:7001/roomhub. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Information: Starting transport. Transfer mode: Binary. Loaded assembly: /data/data/com.george_home.GeorgeHA/files/.override/System.Threading.Tasks.Extensions.dll [External] [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Starting receive loop. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Starting the send loop. [0:] Microsoft.AspNetCore.Http.Connections.Client.HttpConnection: Debug: Transport 'LongPolling' started. [0:] Microsoft.AspNetCore.Http.Connections.Client.HttpConnection: Information: HttpConnection Started. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Information: Using HubProtocol 'messagepack v1'. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending Hub Handshake. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Sending 39 bytes to the server using url: https://ghatest.george.net:7001/roomhub?id=BkN3xCmyYF6VjuwOeWC98g. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Received messages from the server. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Message(s) sent successfully. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Handshake with server complete. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Receive loop starting. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Information: HubConnection started. [System.out] (HTTPLog)-Static: isSBSettingEnabled false [System.out] (HTTPLog)-Static: isSBSettingEnabled false [System.out] (HTTPLog)-Static: isSBSettingEnabled false [System.out] (HTTPLog)-Static: isSBSettingEnabled false Thread finished: #13 The thread 0xd has exited with code 0 (0x0). Thread finished: #20 The thread 0x14 has exited with code 0 (0x0). [System.out] (HTTPLog)-Static: isSBSettingEnabled false [System.out] (HTTPLog)-Static: isSBSettingEnabled false [System.out] (HTTPLog)-Static: isSBSettingEnabled false [System.out] (HTTPLog)-Static: isSBSettingEnabled false [ViewRootImpl@dc49831[MainActivity]] ViewPostIme pointer 0 [ViewRootImpl@dc49831[MainActivity]] ViewPostIme pointer 1 [System.out] (HTTPLog)-Static: isSBSettingEnabled false [System.out] (HTTPLog)-Static: isSBSettingEnabled false [e_home.GeorgeH] Explicit concurrent copying GC freed 15558(814KB) AllocSpace objects, 54(4536KB) LOS objects, 76% free, 3869KB/15MB, paused 157us total 46.832ms [InputMethodManager] HSIFW - flag : 0 [AbsListView] in onLayout changed [ViewRootImpl@dc49831[MainActivity]] ViewPostIme pointer 0 [ViewRootImpl@dc49831[MainActivity]] ViewPostIme pointer 1 [AbsListView] onTouchUp() mTouchMode : 1 [ViewRootImpl@dc49831[MainActivity]] ViewPostIme pointer 0 [ViewRootImpl@dc49831[MainActivity]] ViewPostIme pointer 1 [0:] IntercomViewWebRtc::btnHook_clicked - intercom station selected: Bart [System.out] (HTTPLog)-Static: isSBSettingEnabled false [System.out] (HTTPLog)-Static: isSBSettingEnabled false [AudioManager] Failed to find port id for device with type:15 address:back [AudioManager] Failed to find port id for device with type:15 address:back [CameraManagerGlobal] Connecting to camera service [VendorTagDescriptor] addVendorDescriptor: vendor tag id 3854507339 added [CameraManagerGlobal] Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client com.sec.android.app.camerasaver API Level 2 [CameraManagerGlobal] Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client com.google.android.apps.tachyon API Level 2 [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Registering Invocation ID '1' for tracking. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '1'. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '1' completed. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Sending 99 bytes to the server using url: https://ghatest.george.net:7001/roomhub?id=BkN3xCmyYF6VjuwOeWC98g. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Message(s) sent successfully. [Choreographer] Skipped 52 frames! The application may be doing too much work on its main thread. [OpenGLRenderer] Davey! duration=979ms; Flags=0, IntendedVsync=2316516383788607, Vsync=2316517250455239, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=2316517263699285, AnimationStart=2316517263702150, PerformTraversalsStart=2316517353367462, DrawStart=2316517359156421, SyncQueued=2316517359699494, SyncStart=2316517360403035, IssueDrawCommandsStart=2316517361081108, SwapBuffers=2316517362780900, FrameCompleted=2316517364311421, DequeueBufferDuration=193750, QueueBufferDuration=553802, GpuCompleted=2316509407364340, [InputMethodManager] HSIFW - flag : 0 [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Received messages from the server. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Processing 15 byte message from server. [0:] GHACallbackHandler::websocket_onmessage invoked [0:] GHACallbackHandler::websocket_onmessage invoked [0:] IntercomViewWebRtc::onChangedAnswered - Invoked for gha://gharoot/Server/Intercom/TabA, set to True [System.out] (HTTPLog)-Static: isSBSettingEnabled false [System.out] (HTTPLog)-Static: isSBSettingEnabled false [System.out] (HTTPLog)-Static: isSBSettingEnabled false [System.out] (HTTPLog)-Static: isSBSettingEnabled false [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Received messages from the server. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Processing 68 byte message from server. [0:] WebRTCme.Connection.Services.SignalingConnection: Information: >>>>>>>> OnPeerJoined - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Registering Invocation ID '2' for tracking. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '2'. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '2' completed. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Sending 27 bytes to the server using url: https://ghatest.george.net:7001/roomhub?id=BkN3xCmyYF6VjuwOeWC98g. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Message(s) sent successfully. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Received messages from the server. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Processing 167 byte message from server. [0:] WebRTCme.Connection.Services.SignalingConnection: Information: ################ LIST OF ICE SERVERS ################ [0:] WebRTCme.Connection.Services.SignalingConnection: Information: - stun:stun.stunprotocol.org:3478 [0:] WebRTCme.Connection.Services.SignalingConnection: Information: - stun:stun.l.google.com:19302 [0:] WebRTCme.Connection.Services.SignalingConnection: Information: ##################################################### Thread started: #28 [0:] WebRTCme.Connection.Services.SignalingConnection: Information: ######## OnNegotiationNeeded - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart [rtp_sender.cc] (line 601): Tried to get DTMF sender from video sender. [0:] WebRTCme.Connection.Services.SignalingConnection: Information: ######## OnNegotiationNeeded - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart [0:] WebRTCme.Connection.Services.SignalingConnection: Information: -------> Sending Offer - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart [0:] WebRTCme.Connection.Services.SignalingConnection: Information: ######## OnSignallingStateChange - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart, signallingState:HaveLocalOffer [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Registering Invocation ID '3' for tracking. [0:] WebRTCme.Connection.Services.SignalingConnection: Information: ######## OnIceGatheringStateChange - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart iceGatheringState: Gathering [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '3'. [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '3' completed. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Sending 3549 bytes to the server using url: https://ghatest.george.net:7001/roomhub?id=BkN3xCmyYF6VjuwOeWC98g. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Message(s) sent successfully. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Received messages from the server. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Processing 15 byte message from server. [0:] WebRTCme.Connection.Services.SignalingConnection: Information: --------> Sending ICE Candidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart ice:{"candidate":"candidate:3287916621 1 udp 2122260223 192.168.1.151 46929 typ host generation 0 ufrag cwfF network-id 3 network-cost 10","sdpMid":"audio","sdpMLineIndex":0} [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Registering Invocation ID '4' for tracking. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '4'. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '4' completed. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Sending 228 bytes to the server using url: https://ghatest.george.net:7001/roomhub?id=BkN3xCmyYF6VjuwOeWC98g. [0:] WebRTCme.Connection.Services.SignalingConnection: Information: --------> Sending ICE Candidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart ice:{"candidate":"candidate:559267639 1 udp 2122202367 ::1 37172 typ host generation 0 ufrag cwfF network-id 2","sdpMid":"audio","sdpMLineIndex":0} [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Registering Invocation ID '5' for tracking. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '5'. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Message(s) sent successfully. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '5' completed. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Sending 201 bytes to the server using url: https://ghatest.george.net:7001/roomhub?id=BkN3xCmyYF6VjuwOeWC98g. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Received messages from the server. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Processing 15 byte message from server. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Message(s) sent successfully. [0:] WebRTCme.Connection.Services.SignalingConnection: Information: --------> Sending ICE Candidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart ice:{"candidate":"candidate:1510613869 1 udp 2122129151 127.0.0.1 44863 typ host generation 0 ufrag cwfF network-id 1","sdpMid":"audio","sdpMLineIndex":0} [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Registering Invocation ID '6' for tracking. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '6'. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Sending 208 bytes to the server using url: https://ghatest.george.net:7001/roomhub?id=BkN3xCmyYF6VjuwOeWC98g. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '6' completed. [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Received messages from the server. [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Processing 15 byte message from server. [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [0:] WebRTCme.Connection.Services.SignalingConnection: Information: --------> Sending ICE Candidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart ice:{"candidate":"candidate:3287916621 1 udp 2122260223 192.168.1.151 44244 typ host generation 0 ufrag cwfF network-id 3 network-cost 10","sdpMid":"video","sdpMLineIndex":1} [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Registering Invocation ID '7' for tracking. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '7'. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '7' completed. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Message(s) sent successfully. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Sending 228 bytes to the server using url: https://ghatest.george.net:7001/roomhub?id=BkN3xCmyYF6VjuwOeWC98g. [0:] WebRTCme.Connection.Services.SignalingConnection: Information: --------> Sending ICE Candidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart ice:{"candidate":"candidate:559267639 1 udp 2122202367 ::1 47531 typ host generation 0 ufrag cwfF network-id 2","sdpMid":"video","sdpMLineIndex":1} [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Registering Invocation ID '8' for tracking. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Message(s) sent successfully. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '8'. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '8' completed. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Sending 201 bytes to the server using url: https://ghatest.george.net:7001/roomhub?id=BkN3xCmyYF6VjuwOeWC98g. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Received messages from the server. [0:] WebRTCme.Connection.Services.SignalingConnection: Information: --------> Sending ICE Candidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart ice:{"candidate":"candidate:1510613869 1 udp 2122129151 127.0.0.1 46089 typ host generation 0 ufrag cwfF network-id 1","sdpMid":"video","sdpMLineIndex":1} [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Registering Invocation ID '9' for tracking. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Processing 4448 byte message from server. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '9'. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Message(s) sent successfully. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Sending 208 bytes to the server using url: https://ghatest.george.net:7001/roomhub?id=BkN3xCmyYF6VjuwOeWC98g. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '9' completed. [0:] WebRTCme.Connection.Services.SignalingConnection: Information: --------> Sending ICE Candidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart ice:{"candidate":"candidate:842163049 1 udp 1686052607 108.45.137.174 46929 typ srflx raddr 192.168.1.151 rport 46929 generation 0 ufrag cwfF network-id 3 network-cost 10","sdpMid":"audio","sdpMLineIndex":0} [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Registering Invocation ID '10' for tracking. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '10'. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '10' completed. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Message(s) sent successfully. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Sending 262 bytes to the server using url: https://ghatest.george.net:7001/roomhub?id=BkN3xCmyYF6VjuwOeWC98g. [0:] WebRTCme.Connection.Services.SignalingConnection: Information: --------> Sending ICE Candidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart ice:{"candidate":"candidate:842163049 1 udp 1686052607 108.45.137.174 44244 typ srflx raddr 192.168.1.151 rport 44244 generation 0 ufrag cwfF network-id 3 network-cost 10","sdpMid":"video","sdpMLineIndex":1} [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Registering Invocation ID '11' for tracking. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '11'. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '11' completed. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Message(s) sent successfully. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Sending 262 bytes to the server using url: https://ghatest.george.net:7001/roomhub?id=BkN3xCmyYF6VjuwOeWC98g. [0:] WebRTCme.Connection.Services.SignalingConnection: Information: --------> Sending ICE Candidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart ice:{"candidate":"candidate:842163049 1 udp 1686052607 108.45.137.174 37329 typ srflx raddr 192.168.1.151 rport 46929 generation 0 ufrag cwfF network-id 3 network-cost 10","sdpMid":"audio","sdpMLineIndex":0} [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Registering Invocation ID '12' for tracking. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '12'. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '12' completed. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Message(s) sent successfully. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Sending 262 bytes to the server using url: https://ghatest.george.net:7001/roomhub?id=BkN3xCmyYF6VjuwOeWC98g. [0:] WebRTCme.Connection.Services.SignalingConnection: Information: --------> Sending ICE Candidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart ice:{"candidate":"candidate:842163049 1 udp 1686052607 108.45.137.174 37330 typ srflx raddr 192.168.1.151 rport 44244 generation 0 ufrag cwfF network-id 3 network-cost 10","sdpMid":"video","sdpMLineIndex":1} [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Registering Invocation ID '13' for tracking. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '13'. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '13' completed. [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Message(s) sent successfully. [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Sending 262 bytes to the server using url: https://ghatest.george.net:7001/roomhub?id=BkN3xCmyYF6VjuwOeWC98g. [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [0:] WebRTCme.Connection.Services.SignalingConnection: Information: --------> Sending ICE Candidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart ice:{"candidate":"candidate:1876313031 1 tcp 1518222591 ::1 40453 typ host tcptype passive generation 0 ufrag cwfF network-id 2","sdpMid":"audio","sdpMLineIndex":0} [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Registering Invocation ID '14' for tracking. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '14'. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '14' completed. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Message(s) sent successfully. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Sending 219 bytes to the server using url: https://ghatest.george.net:7001/roomhub?id=BkN3xCmyYF6VjuwOeWC98g. [0:] WebRTCme.Connection.Services.SignalingConnection: Information: --------> Sending ICE Candidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart ice:{"candidate":"candidate:344579997 1 tcp 1518149375 127.0.0.1 43637 typ host tcptype passive generation 0 ufrag cwfF network-id 1","sdpMid":"audio","sdpMLineIndex":0} [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Registering Invocation ID '15' for tracking. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '15'. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '15' completed. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Message(s) sent successfully. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Sending 224 bytes to the server using url: https://ghatest.george.net:7001/roomhub?id=BkN3xCmyYF6VjuwOeWC98g. [0:] WebRTCme.Connection.Services.SignalingConnection: Information: --------> Sending ICE Candidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart ice:{"candidate":"candidate:1876313031 1 tcp 1518222591 ::1 37107 typ host tcptype passive generation 0 ufrag cwfF network-id 2","sdpMid":"video","sdpMLineIndex":1} [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Registering Invocation ID '16' for tracking. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '16'. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '16' completed. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Message(s) sent successfully. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Sending 219 bytes to the server using url: https://ghatest.george.net:7001/roomhub?id=BkN3xCmyYF6VjuwOeWC98g. [0:] WebRTCme.Connection.Services.SignalingConnection: Information: --------> Sending ICE Candidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart ice:{"candidate":"candidate:344579997 1 tcp 1518149375 127.0.0.1 39207 typ host tcptype passive generation 0 ufrag cwfF network-id 1","sdpMid":"video","sdpMLineIndex":1} [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Registering Invocation ID '17' for tracking. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '17'. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '17' completed. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Message(s) sent successfully. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Sending 224 bytes to the server using url: https://ghatest.george.net:7001/roomhub?id=BkN3xCmyYF6VjuwOeWC98g. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Message(s) sent successfully. [0:] WebRTCme.Connection.Services.SignalingConnection: Information: <-------- OnPeerSdp - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart [0:] WebRTCme.Connection.Services.SignalingConnection: Information: ######## OnSignallingStateChange - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart, signallingState:Stable [0:] WebRTCme.Connection.Services.SignalingConnection: Information: ######## OnIceConnectionStateChange - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart iceConnectionState:Checking [0:] WebRTCme.Connection.Services.SignalingConnection: Information: ######## OnTrack - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart trackType:Audio [libc] Access denied finding property "ro.vendor.perf.scroll_opt" [webrtc_video_engine.cc] (line 3375): Absent receive stream; ignoring clearing encoded frame sink for ssrc 0 [0:] WebRTCme.Connection.Services.SignalingConnection: Information: ######## OnTrack - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart trackType:Video [0:] WebRTCme.Connection.Services.SignalingConnection: Information: ######## OnIceGatheringStateChange - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart iceGatheringState: Complete [ACodec] [] Now uninitialized [0:] WebRTCme.Connection.Services.SignalingConnection: Information: ######## OnIceConnectionStateChange - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart iceConnectionState:Connected [ACodec] [] onAllocateComponent [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Received messages from the server. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Processing 1080 byte message from server. [OMXClient] IOmx service obtained [0:] WebRTCme.Connection.Services.SignalingConnection: Information: ######## OnConnectionStateChanged - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart connectionState:Connected [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Received messages from the server. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Processing 143 byte message from server. [0:] WebRTCme.Connection.Services.SignalingConnection: Information: ######## OnIceConnectionStateChange - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart iceConnectionState:Completed [0:] WebRTCme.Connection.Services.SignalingConnection: Information: <-------- OnPeerIceCandidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart peerIce:{"candidate":"candidate:1830786349 1 udp 2122260223 172.29.224.1 51436 typ host generation 0 ufrag BCoh network-id 1","sdpMid":"audio","sdpMLineIndex":0,"usernameFragment":null} [0:] WebRTCme.Connection.Services.SignalingConnection: Information: <-------- OnPeerIceCandidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart peerIce:{"candidate":"candidate:2439031927 1 udp 2122194687 192.168.1.183 51437 typ host generation 0 ufrag BCoh network-id 2","sdpMid":"audio","sdpMLineIndex":0,"usernameFragment":null} [0:] WebRTCme.Connection.Services.SignalingConnection: Information: ######## OnIceConnectionStateChange - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart iceConnectionState:Connected [0:] WebRTCme.Connection.Services.SignalingConnection: Information: <-------- OnPeerIceCandidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart peerIce:{"candidate":"candidate:271100611 1 udp 1685987071 108.45.137.174 51437 typ srflx raddr 192.168.1.183 rport 51437 generation 0 ufrag BCoh network-id 2","sdpMid":"audio","sdpMLineIndex":0,"usernameFragment":null} [0:] WebRTCme.Connection.Services.SignalingConnection: Information: <-------- OnPeerIceCandidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart peerIce:{"candidate":"candidate:271100611 1 udp 1685987071 108.45.137.174 37331 typ srflx raddr 192.168.1.183 rport 51437 generation 0 ufrag BCoh network-id 2","sdpMid":"audio","sdpMLineIndex":0,"usernameFragment":null} [0:] WebRTCme.Connection.Services.SignalingConnection: Information: <-------- OnPeerIceCandidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart peerIce:{"candidate":"candidate:597453277 1 tcp 1518280447 172.29.224.1 9 typ host tcptype active generation 0 ufrag BCoh network-id 1","sdpMid":"audio","sdpMLineIndex":0,"usernameFragment":null} [0:] WebRTCme.Connection.Services.SignalingConnection: Information: <-------- OnPeerIceCandidate - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart peerIce:{"candidate":"candidate:3756216455 1 tcp 1518214911 192.168.1.183 9 typ host tcptype active generation 0 ufrag BCoh network-id 2","sdpMid":"audio","sdpMLineIndex":0,"usernameFragment":null} [ACodec] [OMX.qcom.video.decoder.vp8] Now Loaded [SurfaceUtils] connecting to surface 0x6f268b3010, reason connectToSurface [MediaCodec] [OMX.qcom.video.decoder.vp8] setting surface generation to 23871489 [SurfaceUtils] disconnecting from surface 0x6f268b3010, reason connectToSurface(reconnect) [SurfaceUtils] connecting to surface 0x6f268b3010, reason connectToSurface(reconnect) [ACodec] app-pid(23312) [ACodec] [OMX.qcom.video.decoder.vp8] OMX_QCOM_FramePacking_OnlyOneCompleteFrame is setting [ACodec] Success to set FramePackingMode [ACodec] [OMX.qcom.video.decoder.vp8] Now Loaded->Idle [SurfaceUtils] set up nativeWindow 0x6f268b3010 for 640x480, color 0x7fa30c04, rotation 0, usage 0x20002900 [ACodec] [OMX.qcom.video.decoder.vp8] configureOutputBuffersFromNativeWindow setBufferCount : 11, minUndequeuedBuffers : 5 [stun_port.cc] (line 308): Port[26749600:audio:1:0:local:Net[lo:127.0.0.x/8:Loopback:id=1]]: UDP send of 100 bytes failed with error 22 [ACodec] [OMX.qcom.video.decoder.vp8] Now Idle->Executing [ACodec] [OMX.qcom.video.decoder.vp8] Now Executing [MediaCodec] setCodecState state : 0 [Gralloc4] allocator 3.x is not supported [Gralloc3] allocator 3.x is not supported [ACodec] [OMX.qcom.video.decoder.vp8] OMX_EventPortSettingsChanged 0x7f000062 [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [MediaCodec] setCodecState state : 1 [stun_port.cc] (line 308): Port[26749600:audio:1:0:local:Net[lo:127.0.0.x/8:Loopback:id=1]]: UDP send of 100 bytes failed with error 22 [stun_port.cc] (line 308): Port[26749600:audio:1:0:local:Net[lo:127.0.0.x/8:Loopback:id=1]]: UDP send of 100 bytes failed with error 22 [stun_port.cc] (line 308): Port[26749600:audio:1:0:local:Net[lo:127.0.0.x/8:Loopback:id=1]]: UDP send of 100 bytes failed with error 22 [stun_port.cc] (line 308): Port[26749600:audio:1:0:local:Net[lo:127.0.0.x/8:Loopback:id=1]]: UDP send of 100 bytes failed with error 22 [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [0:] WebRTCme.Connection.Services.SignalingConnection: Information: ######## OnIceConnectionStateChange - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart iceConnectionState:Disconnected [0:] WebRTCme.Connection.Services.SignalingConnection: Information: ######## OnConnectionStateChanged - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart connectionState:Connected [System.out] (HTTPLog)-Static: isSBSettingEnabled false [System.out] (HTTPLog)-Static: isSBSettingEnabled false [System.out] (HTTPLog)-Static: isSBSettingEnabled false [System.out] (HTTPLog)-Static: isSBSettingEnabled false [MediaCodec] setCodecState state : 0 [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [dtls_transport.cc] (line 545): DtlsTransport[audio|1|__]: OnWritableState() called in state DTLS_TRANSPORT_CLOSED. [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [stun_port.cc] (line 596): sendto : [0x00000016] Invalid argument [ViewRootImpl@dc49831[MainActivity]] ViewPostIme pointer 0 [ViewRootImpl@dc49831[MainActivity]] ViewPostIme pointer 1 [System.out] (HTTPLog)-Static: isSBSettingEnabled false [System.out] (HTTPLog)-Static: isSBSettingEnabled false [0:] GHACallbackHandler::websocket_onmessage invoked [0:] GHACallbackHandler::websocket_onmessage invoked [0:] IntercomViewWebRtc::onChangedAnswered - Invoked for gha://gharoot/Server/Intercom/TabA, set to False [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Registering Invocation ID '18' for tracking. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '18'. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Sending InvocationMessage message '18' completed. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Sending 58 bytes to the server using url: https://ghatest.george.net:7001/roomhub?id=BkN3xCmyYF6VjuwOeWC98g. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Message(s) sent successfully. [0:] Microsoft.AspNetCore.Http.Connections.Client.Internal.LongPollingTransport: Debug: Received messages from the server. [0:] Microsoft.AspNetCore.SignalR.Client.HubConnection: Debug: Processing 16 byte message from server. [0:] WebRTCme.Connection.Services.SignalingConnection: Information: ######## OnIceConnectionStateChange - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart iceConnectionState:Closed [0:] WebRTCme.Connection.Services.SignalingConnection: Information: ######## OnSignallingStateChange - room:ba3d4e79-415a-481d-9f8c-c3b2118c5d60 user:TabA peerUser:Bart, signallingState:Closed [ACodec] [OMX.qcom.video.decoder.vp8] Now Executing->Idle [ACodec] [OMX.qcom.video.decoder.vp8] Now Idle->Loaded [ACodec] [OMX.qcom.video.decoder.vp8] Now Loaded [ACodec] [OMX.qcom.video.decoder.vp8] Now kWhatShutdownCompleted event : 8312 [SurfaceUtils] disconnecting from surface 0x6f268b3010, reason disconnectFromSurface [ACodec] [OMX.qcom.video.decoder.vp8] Now uninitialized [ACodec] [] Now kWhatShutdownCompleted event : 8312 [MediaCodec] Codec shutdown complete [AudioTrack] stop(199): called with 1252320 frames delivered

melihercan commented 2 years ago

I will try to reproduce and check what is going wrong today.

melihercan commented 2 years ago

@georgeinva2004 I have updated all NuGets and upgraded Android to 12.0. The call is working for me ( I am using Huawei P20 Lite - Android 9 phone).. Please re-check with the above changes and let me know if you are still having the same issue.

georgeinva2004 commented 2 years ago

You are the man!!!! That did it!!!! I am using a clone of your repo where I added support to change the signaling server at runtime (per my suggestion earlier). I updated the nugets and upgraded to Android 12.0 (also had to update to the latest JDK) and things are working!!! Thanks again for your hard work. I love this library!!!!

melihercan commented 2 years ago

You are the man!!!! That did it!!!! I am using a clone of your repo where I added support to change the signaling server at runtime (per my suggestion earlier). I updated the nugets and upgraded to Android 12.0 (also had to update to the latest JDK) and things are working!!! Thanks again for your hard work. I love this library!!!!

I am glad it is also working for you.