feat: upgrade linphone-sdk to 5.4.84 and add syncCurrentState
This commit is contained in:
parent
f29d9d42e5
commit
06a57d5c21
8 changed files with 36 additions and 3 deletions
|
|
@ -180,6 +180,11 @@ class LiblinphoneFlutterPlugin : FlutterPlugin, ActivityAware, MethodCallHandler
|
|||
result.success(true)
|
||||
}
|
||||
|
||||
"syncCurrentState" -> {
|
||||
linphoneBridge.syncCurrentState()
|
||||
result.success(true)
|
||||
}
|
||||
|
||||
else -> {
|
||||
result.notImplemented()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -335,6 +335,11 @@ class LinphoneBridge(
|
|||
return currentCall != null
|
||||
}
|
||||
|
||||
fun syncCurrentState() {
|
||||
onRegistrationStateChanged(registrationState.ordinal)
|
||||
onCallStateChanged(callState.ordinal)
|
||||
}
|
||||
|
||||
enum class CallType {
|
||||
Audio,
|
||||
Video,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue