Skip to content

Instantly share code, notes, and snippets.

@zontan
Last active September 23, 2019 23:01
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/0d11bce8ddf074c80f1884741d13ce2e to your computer and use it in GitHub Desktop.
Save zontan/0d11bce8ddf074c80f1884741d13ce2e to your computer and use it in GitHub Desktop.
var channelName = "default"
func joinChannel() {
localVideoView.isHidden = false
getAgoraEngine().joinChannel(byToken: tempToken, channelId: channelName, info: nil, uid: userID) { [weak self] (sid, uid, elapsed) in
self?.userID = uid
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment