Skip to content

Instantly share code, notes, and snippets.

@zontan zontan/AgoraVideoViewController.swift Secret

Last active Sep 23, 2019
Embed
What would you like to do?
func joinChannel() {
localVideoView.isHidden = false
if let name = userName {
getAgoraEngine().joinChannel(byUserAccount: name, token: tempToken, channelId: channelName) { [weak self] (sid, uid, elapsed) in
self?.userID = uid
}
} else {
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
You can’t perform that action at this time.