We use C# wrapper over Windows SDK (5.2.41727.0928) in our WinForm Application. We render videos using Customized UI Service.
We are getting AccessViolationException from the video element for participants that disconnected from the meeting due to unexpected issues (i.e. network error) when calling videoRenderElement.SetPos
. Such participants look like they are in the meeting, they are on the participants’ list, but they are actually disconnected.
This happens only when the normal video for such users excess 850px in height.
We create container (ICustomizedVideoContainerDotNetWrap) by calling
CZoomSDKeDotNetWrap.Instance.GetCustomizedUIMgrWrap().CreateVideoContainer.
Then create video:
var videoRenderElement = container.CreateVideoElement(VideoRenderElementType.VideoRenderElement_NORMAL);
Set the desired position
videoRenderElement.SetPos(rectPosNormal);
Subscribed to a user
videoRenderElement.Subscribe(_userId);
videoRenderElement.Show();
The crash happens (AccessViolationException) when we call with height more than 850, if height less everything is ok.
rectPosNormal.Height = 851;
videoRenderElement.SetPos(rectPosNormal);