feat: add mic gain set and get methods
This commit is contained in:
parent
a740475d56
commit
7608d79d64
8 changed files with 83 additions and 8 deletions
|
|
@ -117,4 +117,17 @@ class MethodChannelLiblinphoneFlutter extends LiblinphoneFlutterPlatform {
|
|||
Future<bool> stopCallService() async {
|
||||
return (await methodChannel.invokeMethod<bool>('stopCallService'))!;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<bool> setMicGain(double level) async {
|
||||
return (await methodChannel.invokeMethod<bool>(
|
||||
'setMicGain',
|
||||
<String, dynamic>{'level': level},
|
||||
))!;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<double> getMicGain() async {
|
||||
return (await methodChannel.invokeMethod<double>('getMicGain'))!;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue