Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        private void OnFrameFormatUpdate(FrameFormat obj)
        {
            if (!IsInCallMode)
            {
                return;
            }

            if(obj.IsLocal)
            {
                LocalSwapChainPanelHandle = obj.SwapChainHandle;
                var s = new Windows.Foundation.Size();
                if (ApplicationView.GetForCurrentView().Orientation == ApplicationViewOrientation.Landscape)
                {
                    s.Width = (float)obj.Width;
                    s.Height = (float)obj.Height;
                }
                else
                {
                    s.Width = (float)obj.Height;
                    s.Height = (float)obj.Width;
                }
                LocalNativeVideoSize = s;
            }
            else
            {
                RemoteSwapChainPanelHandle = obj.SwapChainHandle;
                var s = new Windows.Foundation.Size();
                s.Width = (float)obj.Width;
                s.Height = (float)obj.Height;
                RemoteNativeVideoSize = s;
            }
        }
Ejemplo n.º 3
0
 public void OnUpdateFrameFormat(FrameFormat frameFormat)
 {
 }
 public void OnUpdateFrameFormat(FrameFormat frameFormat)
 {
     RunOnUiThread(() => OnFrameFormatUpdate?.Invoke(frameFormat));
 }
Ejemplo n.º 5
0
 public void OnUpdateFrameFormat(FrameFormat frameFormat)
 {
     ForegroundClient.OnUpdateFrameFormat(frameFormat);
 }
Ejemplo n.º 6
0
 public void OnUpdateFrameFormat(FrameFormat frameFormat)
 {
     if (_foregroundChannel == null)
     {
         _foregroundChannel = _container.Resolve<IForegroundChannel>();
     }
     _foregroundChannel.OnUpdateFrameFormat(frameFormat);
 }