Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@zontan
Created July 6, 2020 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zontan/909f4fe3529846f5112fb0d38f9471d6 to your computer and use it in GitHub Desktop.
Save zontan/909f4fe3529846f5112fb0d38f9471d6 to your computer and use it in GitHub Desktop.
var muted = false {
didSet {
if muted {
muteButton.setTitle("Unmute", for: .normal)
} else {
muteButton.setTitle("Mute", for: .normal)
}
}
}
@IBAction func didToggleMute(_ sender: Any) {
muted = !muted
getAgoraEngine().muteLocalAudioStream(muted)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment