Skip to content

Instantly share code, notes, and snippets.

@zontan zontan/AgoraVideoViewController.swift Secret

Last active Jun 24, 2020
Embed
What would you like to do?
var muted = false {
didSet {
if muted {
muteButton.setTitle("Unmute", for: .normal)
} else {
muteButton.setTitle("Mute", for: .normal)
}
}
}
@IBAction func didToggleMute(_ sender: Any) {
if muted {
getAgoraEngine().muteLocalAudioStream(false)
} else {
getAgoraEngine().muteLocalAudioStream(true)
}
muted = !muted
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.