Skip to content

Instantly share code, notes, and snippets.

@zontan
Created October 30, 2020 21:39
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/9367bf0b768073be455159b0be6b8ad2 to your computer and use it in GitHub Desktop.
Save zontan/9367bf0b768073be455159b0be6b8ad2 to your computer and use it in GitHub Desktop.
func rtcEngine(_ engine: AgoraRtcEngineKit, didJoinedOfUid uid: UInt, elapsed: Int) {
setupRemoteVideoView(uid: uid)
}
internal func rtcEngine(_ engine: AgoraRtcEngineKit, didOfflineOfUid uid:UInt, reason:AgoraUserOfflineReason) {
self.remoteView?.removeFromSuperview()
self.remoteView = nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment