I’m utilizing the MyVideoSDKAppSample for zoom video calling and display sharing, the video calling and display sharing is working advantageous, the issue is occuring when i’m attempting to annotate on the view. The annotations are simply not displaying up. I’ve tried to initialize the ZoomVideoSDKAnnotationHelper object utilizing createAnnotationHelper methodology on the ZoomSDKVideoShareHelper object and i’ve set the toolType and toolWidth on the ZoomVideoSDKAnnotationHelper object however when i log the properties it at all times exhibits each properties as 0 and the annotations do not present up on the view when i attempt to annotate.
that is the code that i’m utilizing to indicate annotations
if let shareHelper = ZoomVideoSDK.shareInstance()?.getShareHelper() {
// Name startSharewith: to start sharing the loading label.
let returnValue = shareHelper.startShare(with: self.canvasView)
if returnValue == .Errors_Success {
// Your view is now being shared.
print("Sharing succeeded")
// self.shareView.isHidden = false
print("shareHelper.isAnnotationFeatureSupport() = (shareHelper.isAnnotationFeatureSupport())")
//this logs : shareHelper.isAnnotationFeatureSupport() = true
let error1 = shareHelper.disableViewerAnnotation(false)
print("shareHelper.enableViewerAnnotation == (error1 == .Errors_Success)" )
//this logs: shareHelper.enableViewerAnnotation == true
print("shareHelper.isViewerAnnotationDisabled() = (shareHelper.isViewerAnnotationDisabled())")
//this logs: shareHelper.isViewerAnnotationDisabled() = false
if let annoHelper = self.annoHelper {
shareHelper.destroy(annoHelper)
}
self.annoHelper = nil
self.annoHelper = shareHelper.createAnnotationHelper(nil)
self.annoHelper?.setToolColor(.systemRed)
self.annoHelper?.setToolType(.pen)
self.annoHelper?.setToolWidth(10)
//this if let executes , means the annotation is began
if let err = self.annoHelper?.startAnnotation(), err == .Errors_Success {
print("annotation began")
}
print("annohelper is :(self.annoHelper!)")
print(self.annoHelper?.getToolColor())
print(self.annoHelper?.getToolWidth())
print(self.annoHelper?.getToolType().rawValue)
//these above 4 traces offers these logs :
annohelper is :<ZoomVideoSDKAnnotationHelper: 0x281415f40>
Non-obligatory(UIExtendedSRGBColorSpace 0 0 0 1)
Non-obligatory(0)
Non-obligatory(0)
} else {
print("Sharing failed")
}
}