-
-
Save cardoso/a88457b8bd1ead02f69fe76d5e88b5da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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