mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 04:28:10 +00:00
When muting video, return if mute state changed.
This commit is contained in:
parent
592ce55c2d
commit
4ac9d2148b
1 changed files with 7 additions and 2 deletions
|
|
@ -145,14 +145,19 @@ public class AndroidCameraRecordManager {
|
|||
});
|
||||
}
|
||||
|
||||
public void setMuted(boolean muteState) {
|
||||
if (muteState == muted) return;
|
||||
/**
|
||||
* @param muteState
|
||||
* @return true if mute state changed
|
||||
*/
|
||||
public boolean setMuted(boolean muteState) {
|
||||
if (muteState == muted) return false;
|
||||
muted = muteState;
|
||||
if (muted) {
|
||||
stopVideoRecording();
|
||||
} else {
|
||||
tryToStartVideoRecording();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public boolean toggleMute() {
|
||||
setMuted(!muted);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue