mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 16:09:20 +00:00
UIPauseButton.m: disable pause button if ICE is in progress
This commit is contained in:
parent
4477faf01c
commit
28c6101de1
1 changed files with 2 additions and 1 deletions
|
|
@ -152,7 +152,8 @@
|
|||
if (c != nil) {
|
||||
LinphoneCallState state = linphone_call_get_state(c);
|
||||
ret = (state == LinphoneCallPaused || state == LinphoneCallPausing);
|
||||
self.enabled = (state == LinphoneCallPaused || state == LinphoneCallPausing ||
|
||||
self.enabled = !linphone_call_media_in_progress(c) &&
|
||||
(state == LinphoneCallPaused || state == LinphoneCallPausing ||
|
||||
state == LinphoneCallStreamsRunning);
|
||||
} else {
|
||||
self.enabled = FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue