kangshaojun / flutter-incall-manager Goto Github PK
View Code? Open in Web Editor NEWflutter-incall-manager
License: ISC License
flutter-incall-manager
License: ISC License
is there a way to force ringback to stop, because i cant seem to stop it with the stop command. even ater stoping it inside dispose, it still keeps ringing, and it changes from earpiece to speaker.
started like this
incall.start( auto: true, media: MediaType.AUDIO, ringback: "_DTMF_");
and stoping like this
incall.stopRingtone(); incall.stop(busytone: "_DTMF_");
but nothing seem to work. please help.
I want to use speaker for my call application. It works but not enough to hear other side. How can we boost mic or speaker volume.
incall.setSpeakerphoneOn(true);
incall.setForceSpeakerphoneOn(1);
the only thing that can't make it work, could you give me a hand.
incall.startRingtone('DEFAULT', 'default', 30);
Cocoapods writes
Analyzing dependencies
[!] No podspec found for flutter_incall
in .symlinks/plugins/flutter_incall/ios
Thanks for a great plugin. But I'm having a basic issue with the speaker phone. I'm using only audio, so I need the speaker phone to be off by default.
When I call
incall.start(media: MediaType.AUDIO);
it is supposed to start with speakerphone off, right? But it always starts with speakerphone on. It doesn't help if I do this:
incall.start(media: MediaType.AUDIO);
incall.setSpeakerPhoneOn(false);
or even this:
incall.start(media: MediaType.AUDIO);
incall.setForceSpeakerPhoneOn(flag: ForceSpeakerType.FORCE_OFF);
The result is always that the speaker phone is on.
However, if I call incall.setSpeakerPhoneOn(false)
a little later, it does work. What's going on?
hi, arround 20% of my users are getting this exception
java.lang.NullPointerException:
at com.cloudwebrtc.flutterincallmanager.FlutterIncallManagerPlugin.hasEarpiece (FlutterIncallManagerPlugin.java:4)
at com.cloudwebrtc.flutterincallmanager.FlutterIncallManagerPlugin.j (FlutterIncallManagerPlugin.java:169)
at com.cloudwebrtc.flutterincallmanager.FlutterIncallManagerPlugin.updateAudioRoute (FlutterIncallManagerPlugin.java:5)
at com.cloudwebrtc.flutterincallmanager.FlutterIncallManagerPlugin.a (FlutterIncallManagerPlugin.java:43)
at com.cloudwebrtc.flutterincallmanager.InCallProximityManager$1.run (InCallProximityManager.java:19)
at com.cloudwebrtc.flutterincallmanager.AppRTC.AppRTCProximitySensor.onSensorChanged (AppRTCProximitySensor.java:37)
at android.hardware.SystemSensorManager$SensorEventQueue.dispatchSensorEvent (SystemSensorManager.java:964)
at android.os.MessageQueue.nativePollOnce (MessageQueue.java)
at android.os.MessageQueue.next (MessageQueue.java:325)
at android.os.Looper.loop (Looper.java:142)
at android.app.ActivityThread.main (ActivityThread.java:6938)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)
keep up your good work
Hi, do you plan to migrate the package to the null safety anytime soon?
this gifted guy, within in less than one month, makes a great break-through in mobile app programming style. with flutter and dart, he will change the future of WEBRTC application on mobile.
Companies, like BAT have pay intensive attention to this project and it is estimated by financial analyzer,
the acquisition negotiation is under going.
when the app is running and the user the user approaches the proximity sensor the next error is launched
flutter: map['isNear'] String
[VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: type 'String' is not a subtype of type 'bool'
#0 IncallManager.eventListener (package:flutter_incall_manager/incall.dart:197:14)
#1 _rootRunUnary (dart:async/zone.dart:1132:38)
#2 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#3 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#4 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#5 _DelayedData.perform (dart:async/stream_impl.dart:591:14)
#6 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:707:11)
#7 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:667:7)
#8 _rootRun (dart:async/zone.dart:1120:38)
#9 _CustomZone.run (dart:async/zone.dart:1021:19)
#10 _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#11 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#12 _rootRun (dart:async/zone.dart:1124:13)
#13 _CustomZone.run (dart:async/zone.dart:1021:19)
#14 _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#15 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#16 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#17 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
flutter: flutter: close video chat
this is my implementation
@override
void initState() {
super.initState();
incall.checkRecordPermission();
incall.requestRecordPermission();
incall.start({'media': 'audio', 'auto': true, 'ringback': ''});
}
@override
void dispose() {
incall.stop({'busytone': ''});
super.dispose();
}
Getting this exception when enableSpeakerPhone is called.
Unhandled Exception: MissingPluginException(No implementation found for method enableSpeakerphone on channel FlutterWebRTC.Method)
#0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:319:7) <asynchronous suspension>
#1 MediaStreamTrack.enableSpeakerphone
(package:flutter_webrtc/media_stream_track.dart:60:20)
#2 Signaling.createStream.<anonymous closure>
(package:online_jyotish/webrtc/signaling.dart:232:22)
setForceSpeakerphoneOn(flag: ?boolean) this method is not working on iOS
This lib not working on xcode 11. I think that in new xcode, build system and SDK was changed and now required is using new methods. Solutions used in this version of library are deprecated to correct cooperation with new xcode.
Error occurs on xcode 11 and 11.1.
/AppRTCProximitySensor(10760): Proximity sensor => FAR state
D/InCallProximityManager(10760): InCallProximityManager:AppRTCProximitySensor:run()
D/InCallManager(10760): onProximitySensorChangedState:false
D/AppRTCProximitySensor(10760): onSensorChanged: accuracy=3, timestamp=8362411732000, distance=1.0
D/AppRTCProximitySensor(10760): Proximity sensor => FAR state
D/InCallProximityManager(10760): InCallProximityManager:AppRTCProximitySensor:run()
D/InCallManager(10760): onProximitySensorChangedState:false
D/AppRTCProximitySensor(10760): onSensorChanged: accuracy=3, timestamp=8362478500000, distance=1.0
D/AppRTCProximitySensor(10760): Proximity sensor => FAR state
D/InCallProximityManager(10760): InCallProximityManager:AppRTCProximitySensor:run()
D/InCallManager(10760): onProximitySensorChangedState:false
D/AppRTCProximitySensor(10760): onSensorChanged: accuracy=3, timestamp=8362544479000, distance=1.0
D/AppRTCProximitySensor(10760): Proximity sensor => FAR state
D/InCallProximityManager(10760): InCallProximityManager:AppRTCProximitySensor:run()
D/InCallManager(10760): onProximitySensorChangedState:false
D/AppRTCProximitySensor(10760): onSensorChanged: accuracy=3, timestamp=8362611073000, distance=1.0
D/AppRTCProximitySensor(10760): Proximity sensor => FAR state
D/InCallProximityManager(10760): InCallProximityManager:AppRTCProximitySensor:run()
D/InCallManager(10760): onProximitySensorChangedState:false
D/AppRTCProximitySensor(10760): onSensorChanged: accuracy=3, timestamp=8362678547000, distance=1.0
D/AppRTCProximitySensor(10760): Proximity sensor => FAR state
D/InCallProximityManager(10760): InCallProximityManager:AppRTCProximitySensor:run()
D/InCallManager(10760): onProximitySensorChangedState:false
D/AppRTCProximitySensor(10760): onSensorChanged: accuracy=3, timestamp=8362745186000, distance=1.0
D/AppRTCProximitySensor(10760): Proximity sensor => FAR state
D/InCallProximityManager(10760): InCallProximityManager:AppRTCProximitySensor:run()
D/InCallManager(10760): onProximitySensorChangedState:false
D/AppRTCProximitySensor(10760): onSensorChanged: accuracy=3, timestamp=8362811925000, distance=1.0
I am a newbie to Flutter So
can you tell me How I am supposed to import this plugin to Flutter project
Thanks
Hi, when i add this plugin to my pubspec.yml flutter_incall: ^1.0.0
and try build the app in Xcode, it fails. Giving me the error:
The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
I run flutter run -v
from terminal it fails during the automatic pod install and gives the error:
No podspec found for 'flutter_incall' in '.symlinks/plugins/flutter_incall/ios'
output of flutter doctor -v
`flutter doctor -v
[✓] Flutter (Channel stable, v1.17.3, on Mac OS X 10.15.3 19D76, locale en-US)
• Flutter version 1.17.3 at /Users/kenankarav/flutter
• Framework revision b041144f83 (4 weeks ago), 2020-06-04 09:26:11 -0700
• Engine revision ee76268252
• Dart version 2.8.4
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/kenankarav/Library/Android/sdk
• Platform android-29, build-tools 29.0.3
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_212-release-1586-b4-5784211)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.5, Build version 11E608c
• CocoaPods version 1.9.3
[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 44.0.2
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build
1.8.0_212-release-1586-b4-5784211)
[✓] VS Code (version 1.46.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.12.1
[✓] Connected device (1 available)
• iPhone • fa622b6315a4c944aa475030bf75eb02fa4d87cf • ios • iOS 13.5.1
• No issues found!
`
E/flutter ( 999): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: type '_Smi' is not a subtype of type 'bool'
E/flutter ( 999): #0 IncallManager.eventListener (package:flutter_incall_manager/incall.dart:205)
E/flutter ( 999): #1 _rootRunUnary (dart:async/zone.dart:1134)
E/flutter ( 999): #2 _CustomZone.runUnary (dart:async/zone.dart:1031)
E/flutter ( 999): #3 _CustomZone.runUnaryGuarded (dart:async/zone.dart:933)
E/flutter ( 999): #4 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:338)
E/flutter ( 999): #5 _DelayedData.perform (dart:async/stream_impl.dart:593)
E/flutter ( 999): #6 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:709)
E/flutter ( 999): #7 _PendingEvents.schedule. (dart:async/stream_impl.dart:669)
E/flutter ( 999): #8 _rootRun (dart:async/zone.dart:1122)
E/flutter ( 999): #9 _CustomZone.run (dart:async/zone.dart:1023)
E/flutter ( 999): #10 _CustomZone.runGuarded (dart:async/zone.dart:925)
E/flutter ( 999): #11 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:965)
E/flutter ( 999): #12 _rootRun (dart:async/zone.dart:1126)
E/flutter ( 999): #13 _CustomZone.run (dart:async/zone.dart:1023)
E/flutter ( 999): #14 _CustomZone.runGuarded (dart:async/zone.dart:925)
E/flutter ( 999): #15 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:965)
E/flutter ( 999): #16 _microtaskLoop (dart:async/schedule_microtask.dart:43)
E/flutter ( 999): #17 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52)
E/flutter ( 999):
2 com.cloudwebrtc.flutterincallmanager.FlutterIncallManagerPlugin.updateAudioDeviceState(FlutterIncallManagerPlugin.java:1818)
3 com.cloudwebrtc.flutterincallmanager.FlutterIncallManagerPlugin.updateAudioRoute(FlutterIncallManagerPlugin.java:1615)
4 com.cloudwebrtc.flutterincallmanager.FlutterIncallManagerPlugin.access$400(FlutterIncallManagerPlugin.java:56)
5 com.cloudwebrtc.flutterincallmanager.FlutterIncallManagerPlugin$8.onPrepared(FlutterIncallManagerPlugin.java:1124)
6 android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:3481)
7 android.os.Handler.dispatchMessage(Handler.java:107)
8 android.os.Looper.loop(Looper.java:213)
9 android.app.ActivityThread.main(ActivityThread.java:8178)
10 java.lang.reflect.Method.invoke(Native Method)
11 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
12 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)
flutter 现在的版本,默认生成的插件都是 kotlin swift
希望亢老师抽空,能出对应的版本
而且kotlin swift 是趋势~~ 不可逆的趋势~~
The plugin `flutter_incall_manager` is built using an older version of
the Android plugin API which assumes that it's running in a full-Flutter
environment. It may have undefined behaviors when Flutter is integrated
into an existing app as a module.
there is a type error in line 199 in flutter_incall.dart it's supposed to be int not bool
incall.startRingtone('DEFAULT', 'default', 30);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.