private void OnFrameFormatUpdate(FrameFormat obj)
{
if (CallState == CallState.Idle)
{
return;
}
#if WIN10
if(obj.ForegroundProcessId != ChatterBoxClient.Universal.BackgroundRenderer.Renderer.GetProcessId())
{
// Ignore this update because it's for an old foreground process
return;
}
#endif
if (obj.IsLocal)
{
#if WIN10
// Only Windows 10 client uses SwapChainPanel for rendering the video
LocalSwapChainPanelHandle = obj.SwapChainHandle;
#endif
LocalNativeVideoSize = new Size(obj.Width, obj.Height);
}
else
{
#if WIN10
// Only Windows 10 client uses SwapChainPanel for rendering the video
RemoteSwapChainPanelHandle = obj.SwapChainHandle;
#endif
RemoteNativeVideoSize = new Size(obj.Width, obj.Height);
}
}