Reconcile audio and video enabling with call state.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent fb7a9e39ab
commit e36c3aaed7

@ -911,7 +911,9 @@ protocol CallServiceObserver: class {
return
}
peerConnectionClient.setAudioEnabled(enabled: !isMuted)
if call.state == .connected {
peerConnectionClient.setAudioEnabled(enabled: !isMuted)
}
}
/**
@ -966,7 +968,9 @@ protocol CallServiceObserver: class {
return
}
peerConnectionClient.setLocalVideoEnabled(enabled: shouldHaveLocalVideoTrack())
if call.state == .connected {
peerConnectionClient.setLocalVideoEnabled(enabled: shouldHaveLocalVideoTrack())
}
}
func handleCallKitStartVideo() {

Loading…
Cancel
Save