Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No audio in calls. #1

Open
mitchell-mecca opened this issue Feb 5, 2025 · 0 comments
Open

No audio in calls. #1

mitchell-mecca opened this issue Feb 5, 2025 · 0 comments

Comments

@mitchell-mecca
Copy link

I am making an app using flutter_webrtc and flutter_callkit_incoming, and I was having an issue where when using callkit audio(both playing and recording) would not work on iOS. Since it seems like you have that working in this app, I thought I would try to reverse engineer your logic. However I can't get audio to work in this app at all, both calling from android to iOS and the reverse have no audio.

The only logs I that stand out to me as indicating an error are
[connection] nw_connection_get_connected_socket [C3] Client called nw_connection_get_connected_socket on unconnected nw_connection TCP Conn 0x2809dd760 Failed : error 0:50 [50]
Which happens before the call and
Not found video track for RTCMediaStream: 943a34be-c852-4389-bbdf-fe31d2831cad

Also If I try to answer two calls in a row without restarting this exception gets thrown
PlatformException (PlatformException(mediaStreamAddTrack, mediaStreamAddTrack(): mediaStreamAddTrack() stream [4969B914-4148-456F-A712-282CFCA55D46] is null, null, null))

I feel like I need to setup some kind of call server but the setup guide doesn't mention anything of the sort.

If you could help me either get audio working in this app or have any idea why callkit would stop audio from working in iOS and how to fix it I would appreciate it greatly.

Also to get this working at all I had to comment out line 109 of lib\core\utils\fcm_helper.dart. If I don't comment out the line sending the notification to iOS fails.

final data = {
    "message": {
        "token": fcmToken,
        //'notification': {},
        "data": payload?.toJson(),
    }
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant