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
|
|
@ -227,6 +227,23 @@ public class LiblinphoneFlutterPlugin: NSObject, FlutterPlugin {
|
|||
case "stopCallService":
|
||||
result(true)
|
||||
|
||||
case "setMicGain":
|
||||
guard let args = call.arguments as? [String: Any],
|
||||
let level = args["level"] as? String else {
|
||||
result(FlutterError(
|
||||
code: "INVALID_ARGUMENTS",
|
||||
message: "Missing required arguments",
|
||||
details: nil
|
||||
))
|
||||
return
|
||||
}
|
||||
|
||||
linphoneBridge.setMicGain(level: level)
|
||||
result(success)
|
||||
|
||||
case "getMicGain":
|
||||
result(linphoneBridge.getMicGain())
|
||||
|
||||
default:
|
||||
result(FlutterMethodNotImplemented)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue