emilrakh
(Emil)
August 19, 2022, 2:20pm
1
Description
Hi, there. I’m trying to get a video from the user’s camera before he joined the session. To do this, I am trying to:
guard let userVideoCanvas = ZoomVideoSDK().getSession()?.getMySelf()?.getVideoCanvas() else { return }
let videoAspect = ZoomVideoSDKVideoAspect.panAndScan
userVideoCanvas.subscribe(with: previewVideoView, andAspectMode: videoAspect)
But I can’t do anything until I get into the session.
Is there a way to get the user’s video before connecting to the session?
Which iOS Video SDK version?
Smartphone (please complete the following information):
Additional context
As far as I understand on android, it is possible to get the user video before connecting to session.
What I did is to create a custom AVCaptureVideoDataOutputSampleBufferDelegate and use that.
It’s a lot of work and would be really nice to have support to .
Other video SDKs support that.
emilrakh
(Emil)
August 23, 2022, 7:12am
3
Thanks for the answer. I was hoping that zoom has implemented such functionality and I will be able to avoid a custom solution)
1 Like
@emilrakh I totally agree - I would also prefer to avoid having a custom implementation just because of this very simple feature.
1 Like
@emilrakh @rokgregoric
We have add those interfaces in version 1.3.1 already.
New interfaces in ZoomVideoSDKVideoHelper.h
- (ZoomVideoSDKError)startVideoPreview:(id<ZoomVideoSDKRawDataPipeDelegate>_Nullable)delegate;
- (ZoomVideoSDKError)stopVideoPreview:(id<ZoomVideoSDKRawDataPipeDelegate> _Nullable)delegate;
- (ZoomVideoSDKError)startVideoCanvasPreview:(UIView * _Nullable)view;
- (ZoomVideoSDKError)stopVideoCanvasPreview:(UIView * _Nullable)view;
Please enjoy it
1 Like
@jackie.chen nice - I tried it and it works, BUT it’s missing the VideoAspect options … I use PanAndScan
so my video jumps from seeing black lines → fully expanded images after connecting
system
(system)
Closed
October 10, 2022, 12:31pm
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.