Skip to content

Instantly share code, notes, and snippets.

@cardoso
Created May 25, 2020 01:54
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 cardoso/a88457b8bd1ead02f69fe76d5e88b5da to your computer and use it in GitHub Desktop.
Save cardoso/a88457b8bd1ead02f69fe76d5e88b5da to your computer and use it in GitHub Desktop.
import UIKit
import VoxeetSDK
import StreamChat
class WatchViewController: UIViewController {
var channelName: String = "default"
let voxeet = VoxeetSDK.shared
let userId = generateUserId()
let videoView = VTVideoView()
let chatViewController = ChatViewController()
override var prefersStatusBarHidden: Bool { true }
override func viewDidLoad() {
super.viewDidLoad()
setupChat()
setupStream()
setupViews()
setupConstraints()
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
self.navigationController?.navigationBar.isHidden = true
}
}
deinit {
voxeet.conference.leave()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment