mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-23 07:58:30 +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;
|
muted = muteState;
|
||||||
if (muted) {
|
if (muted) {
|
||||||
stopVideoRecording();
|
stopVideoRecording();
|
||||||
} else {
|
} else {
|
||||||
tryToStartVideoRecording();
|
tryToStartVideoRecording();
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
public boolean toggleMute() {
|
public boolean toggleMute() {
|
||||||
setMuted(!muted);
|
setMuted(!muted);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue