feat: add playback gain methods to all platforms

This commit is contained in:
Andrew 2026-04-24 13:25:28 +07:00
parent 7608d79d64
commit 5a547958d5
7 changed files with 75 additions and 0 deletions

View file

@ -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'))!;
}
}