8000 Android: getUserMedia does not work for capturing audio only · Issue #29 · flutter-webrtc/flutter-webrtc · GitHub
[go: up one dir, main page]

Skip to content

Android: getUserMedia does not work for capturing audio only #29

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

Closed
aryzhov opened this issue Nov 23, 2018 · 1 comment
Closed

Android: getUserMedia does not work for capturing audio only #29

aryzhov opened this issue Nov 23, 2018 · 1 comment

Comments

@aryzhov
Copy link
Contributor
aryzhov commented Nov 23, 2018

When I specify "video": false in constraints, I get an NPE on Android when attempting to call the method getUserMedia. Below is the stack trace:

E/MethodChannel#cloudwebrtc.com/WebRTC.Method( 8994): Failed to handle method call
E/MethodChannel#cloudwebrtc.com/WebRTC.Method( 8994): java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.cloudwebrtc.webrtc.utils.ConstraintsMap.hasKey(java.lang.String)' on a null object reference
E/MethodChannel#cloudwebrtc.com/WebRTC.Method( 8994): 	at com.cloudwebrtc.webrtc.GetUserMediaImpl.getUserMedia(GetUserMediaImpl.java:328)
E/MethodChannel#cloudwebrtc.com/WebRTC.Method( 8994): 	at com.cloudwebrtc.webrtc.FlutterWebRTCPlugin.getUserMedia(FlutterWebRTCPlugin.java:665)
E/MethodChannel#cloudwebrtc.com/WebRTC.Method( 8994): 	at com.cloudwebrtc.webrtc.FlutterWebRTCPlugin.onMethodCall(FlutterWebRTCPlugin.java:118)
E/MethodChannel#cloudwebrtc.com/WebRTC.Method( 8994): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:200)
E/MethodChannel#cloudwebrtc.com/WebRTC.Method( 8994): 	at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163)
E/MethodChannel#cloudwebrtc.com/WebRTC.Method( 8994): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#cloudwebrtc.com/WebRTC.Method( 8994): 	at android.os.MessageQueue.next(MessageQueue.java:323)
E/MethodChannel#cloudwebrtc.com/WebRTC.Method( 8994): 	at android.os.Looper.loop(Looper.java:136)
E/MethodChannel#cloudwebrtc.com/WebRTC.Method( 8994): 	at android.app.ActivityThread.main(ActivityThread.java:6351)
E/MethodChannel#cloudwebrtc.com/WebRTC.Method( 8994): 	at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#cloudwebrtc.com/WebRTC.Method( 8994): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:896)
E/MethodChannel#cloudwebrtc.com/WebRTC.Method( 8994): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:786)

Omitting the "video" attribute does not help.

aryzhov added a commit to aryzhov/flutter-webrtc that referenced this issue Nov 23, 2018
cloudwebrtc added a commit that referenced this issue Nov 23, 2018
Fixed issue #29: Android: getUserMedia does not work for capturing audio only
@cloudwebrtc
8000 Copy link
Member

Thank you, I have merged.

cloudwebrtc added a commit that referenced this issue Jul 4, 2020
Fixed issue #29: Android: getUserMedia does not work for capturing audio only
evdokimovs pushed a commit to evdokimovs/flutter-webrtc that referenced this issue Jun 6, 2024
…rtc#29, flutter-webrtc#10)

Additionally:
- add `flutter.test` command to  Makefile
- run Flutter integration tests on CI
- improve CI pipeline with auto-cancelation

Co-authored-by: rogurotus <rogurotus@gmail.com>
Co-authored-by: alexlapa <lapa.alex@ex.ua>
Co-authored-by: Kai Ren <tyranron@gmail.com>
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

2 participants
0