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

Null Exception Error: Challenges with DTMF Tones in Video Calls versus Seamless Audio Performance #423

Open
krishnaneeldeva opened this issue Jan 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@krishnaneeldeva
Copy link

krishnaneeldeva commented Jan 20, 2024

Describe the bug
A clear and concise description of what the bug is.

Subject: Error in Video Call - Null Pointer Exception During DTMF Tone Transmission

Description:

When attempting to make a video call using the application, a null pointer exception is thrown during the process of sending DTMF tones. This issue is not observed in audio calls, where DTMF tone transmission works as expected.

Error Details:

E/MethodChannel#FlutterWebRTC.Method(24190): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.webrtc.MediaStreamTrack.kind()' on a null object reference
E/flutter (24190): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(error, Attempt to invoke virtual method 'java.lang.String org.webrtc.MediaStreamTrack.kind()' on a null object reference, null, java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.webrtc.MediaStreamTrack.kind()' on a null object reference

This error seems to stem from an issue with handling method calls related to WebRTC, particularly when transitioning from audio to video calls. The specific error message indicates a null object reference within the org.webrtc.MediaStreamTrack class.

Request for Assistance:

I kindly request assistance in addressing this null pointer exception during video calls. The application successfully handles audio calls and DTMF tone transmission, but encounters issues when transitioning to video calls.

If further details or code snippets are

required for analysis, please let me know. Thank you for your support.

@krishnaneeldeva krishnaneeldeva added the bug Something isn't working label Jan 20, 2024
@krishnaneeldeva
Copy link
Author

krishnaneeldeva commented Jan 21, 2024

Update: It is working fine if we request camera permission from user.

Subject: Request for Improvement: Decoupling Camera Permission from DTMF Tone Transmission

Description:

Update:
During my recent work involving a doorbell application, I encountered a scenario where camera permission was required for sending DTMF tones. However, considering the nature of the application (doorbell functionality), the need for camera permission seemed unnecessary.

Request:
I propose an improvement in the implementation where the requirement for camera permission is decoupled from the process of sending DTMF tones. In cases like this, where camera functionality is not directly related to the task at hand, it would be beneficial to avoid requesting unnecessary permissions. This adjustment could enhance the user experience by minimizing permission requests for unrelated functionalities.

Thank you for considering this request. If further clarification or details are needed, please let me know.

@lineaira
Copy link

I've found this issue to be related to flutter-webrtc/flutter-webrtc packag, opened an issue there, and submitted a PR for this:
Issue: Issue 1611
PR: PR 1612

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants