Description
I am trying to build Custom Meeting UI for zoom meeting. It is integrated into a flutter app which makes use of Zoom Meeting SDK through a plugin. Plugin provides an implementation of a custom UI.
Everything works fine except that the MobileRTCActiveVideoView show only the thumbnail when video of the participant is turned off and remains black if video is switched on.
To Reproduce(If applicable)
protocol CustomMeetingUIViewControllerDelegate: NSObject {
func userWasAdmittedFromTheWaitingRoom()
}
class CustomMeetingUIViewController: UIViewController {
weak var delegate: CustomMeetingUIViewControllerDelegate?
override func viewDidLoad() {
if let localUserID = MobileRTC.shared().getMeetingService()?.myselfUserID() {
var ideoView = MobileRTCVideoView(frame: self.view.frame)
var activeVideoView=MobileRTCActiveVideoView(frame: self.view.frame)
activeVideoView.setVideoAspect(MobileRTCVideoAspect_Original)
activeVideoView.showAttendeeVideo(withUserID: localUserID)
ideoView.addSubview(activeVideoView)
view.addSubview(ideoView)
}
view.backgroundColor = .white
}
}
extension SwiftFlutterZoomSdkPlugin: CustomMeetingUIViewControllerDelegate {
func userWasAdmittedFromTheWaitingRoom() {
}
}
extension SwiftFlutterZoomSdkPlugin: MobileRTCCustomizedUIMeetingDelegate {
public func onInitMeetingView() {
let meetingService = MobileRTC.shared().getMeetingService()
let customMeetingUIVC = CustomMeetingUIViewController()
meetingService?.delegate = customMeetingUIVC
if var topController = UIApplication.shared.keyWindow?.rootViewController {
while let presentedViewController = topController.presentedViewController {
topController = presentedViewController
}
topController.present(customMeetingUIVC, animated: true)
self.customMeetingUIViewController = customMeetingUIVC
}
}
public func onDestroyMeetingView() {
print("destroyed")
}
}
Screenshots
Smartphone (please complete the following information):
- Device: [iPhone 7]
- OS: [e.g. iOS 15.4]
Additional context
I can provide complete code if required.