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;
|
||||
if (muted) {
|
||||
stopVideoRecording();
|
||||
} else {
|
||||
tryToStartVideoRecording();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public boolean toggleMute() {
|
||||
setMuted(!muted);
|
||||
|
|
Loading…
Reference in a new issue