|
@@ -195,7 +195,7 @@ class SeminarViewController: UIViewController {
|
|
|
keyboardTopAnchorConstraint.isActive = true
|
|
|
keyboardLayoutGuide.bottomAnchor.constraint(equalTo: view.layoutMarginsGuide.bottomAnchor).isActive = true
|
|
|
|
|
|
- imageView.anchor(top: view.topAnchor, left: view.leftAnchor, bottom: view.bottomAnchor, right: view.rightAnchor)
|
|
|
+ tvCameraPreviewB.anchor(top: view.topAnchor, left: view.leftAnchor, bottom: view.bottomAnchor, right: view.rightAnchor)
|
|
|
statusView.backgroundColor = .white.withAlphaComponent(0.2)
|
|
|
statusView.layer.cornerRadius = 8.0
|
|
|
statusView.layer.masksToBounds = true
|
|
@@ -402,14 +402,14 @@ class SeminarViewController: UIViewController {
|
|
|
guard let me = User.getDataCanNil(pin: UserDefaults.standard.string(forKey: "me")) else {
|
|
|
return
|
|
|
}
|
|
|
- _ = Nexilis.write(message: CoreMessage_TMessageBank.getSeminarRaiseHand(p_pin: me, l_pin: data, status: "1"))
|
|
|
+ _ = Nexilis.write(message: CoreMessage_TMessageBank.getSeminarRaiseHand(p_pin: me.pin, l_pin: data, status: "1"))
|
|
|
}
|
|
|
|
|
|
private func cancelRaiseHand() {
|
|
|
guard let me = User.getDataCanNil(pin: UserDefaults.standard.string(forKey: "me")) else {
|
|
|
return
|
|
|
}
|
|
|
- _ = Nexilis.write(message: CoreMessage_TMessageBank.getSeminarRaiseHand(p_pin: me, l_pin: data, status: "0"))
|
|
|
+ _ = Nexilis.write(message: CoreMessage_TMessageBank.getSeminarRaiseHand(p_pin: me.pin, l_pin: data, status: "0"))
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -517,7 +517,7 @@ extension SeminarViewController: SeminarDelegate {
|
|
|
func onStartSeminar(state: Int, message: String) {
|
|
|
if state == 0, message.contains("Initiating") {
|
|
|
DispatchQueue.main.async {
|
|
|
- self.imageView.transform = CGAffineTransform.init(scaleX: 1.6, y: 1.6)
|
|
|
+ self.tvCameraPreviewB.transform = CGAffineTransform.init(scaleX: 1.6, y: 1.6)
|
|
|
}
|
|
|
} else if state == 12 {
|
|
|
sendLive()
|
|
@@ -533,11 +533,11 @@ extension SeminarViewController: SeminarDelegate {
|
|
|
let platform = Int(m[3])
|
|
|
if platform == 1 { // Android
|
|
|
DispatchQueue.main.async {
|
|
|
- self.imageView.transform = CGAffineTransform.init(scaleX: 1.9, y: 1.9).rotated(by: camera == 1 ? (CGFloat.pi * 3)/2 : (CGFloat.pi)/2)
|
|
|
+ self.tvCameraPreviewB.transform = CGAffineTransform.init(scaleX: 1.9, y: 1.9).rotated(by: camera == 1 ? (CGFloat.pi * 3)/2 : (CGFloat.pi)/2)
|
|
|
}
|
|
|
} else {
|
|
|
DispatchQueue.main.async {
|
|
|
- self.imageView.transform = CGAffineTransform.init(scaleX: 1.9, y: 1.9).rotated(by: camera == 1 ? (CGFloat.pi * 5)/2 : (CGFloat.pi)/2)
|
|
|
+ self.tvCameraPreviewB.transform = CGAffineTransform.init(scaleX: 1.9, y: 1.9).rotated(by: camera == 1 ? (CGFloat.pi * 5)/2 : (CGFloat.pi)/2)
|
|
|
}
|
|
|
}
|
|
|
sendJoin()
|
|
@@ -549,11 +549,11 @@ extension SeminarViewController: SeminarDelegate {
|
|
|
let platform = Int(m[3])
|
|
|
if platform == 1 { // Android
|
|
|
DispatchQueue.main.async {
|
|
|
- self.imageView.transform = CGAffineTransform.init(scaleX: 1.9, y: 1.9).rotated(by: camera == 1 ? (CGFloat.pi * 3)/2 : (CGFloat.pi)/2)
|
|
|
+ self.tvCameraPreviewB.transform = CGAffineTransform.init(scaleX: 1.9, y: 1.9).rotated(by: camera == 1 ? (CGFloat.pi * 3)/2 : (CGFloat.pi)/2)
|
|
|
}
|
|
|
} else {
|
|
|
DispatchQueue.main.async {
|
|
|
- self.imageView.transform = CGAffineTransform.init(scaleX: 1.9, y: 1.9).rotated(by: camera == 1 ? (CGFloat.pi * 5)/2 : (CGFloat.pi)/2)
|
|
|
+ self.tvCameraPreviewB.transform = CGAffineTransform.init(scaleX: 1.9, y: 1.9).rotated(by: camera == 1 ? (CGFloat.pi * 5)/2 : (CGFloat.pi)/2)
|
|
|
}
|
|
|
}
|
|
|
} else if state == 88 {
|