When muting video, return if mute state changed.
This commit is contained in:
parent
c9e4008c7f
commit
bc134cfec9
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…
Reference in a new issue