feat: add playback gain methods to all platforms
This commit is contained in:
parent
7608d79d64
commit
5a547958d5
7 changed files with 75 additions and 0 deletions
|
|
@ -130,4 +130,17 @@ class MethodChannelLiblinphoneFlutter extends LiblinphoneFlutterPlatform {
|
|||
Future<double> getMicGain() async {
|
||||
return (await methodChannel.invokeMethod<double>('getMicGain'))!;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<bool> setPlaybackGain(double level) async {
|
||||
return (await methodChannel.invokeMethod<bool>(
|
||||
'setPlaybackGain',
|
||||
<String, dynamic>{'level': level},
|
||||
))!;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<double> getPlaybackGain() async {
|
||||
return (await methodChannel.invokeMethod<double>('getPlaybackGain'))!;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue