ChatterBox.Client.Win8dot1.Voip.VideoRenderHelper.SetupRenderer C# (CSharp) Method

SetupRenderer() public method

public SetupRenderer ( uint foregroundProcessId, IMediaSource source, Windows videoControlSize ) : void
foregroundProcessId uint
source IMediaSource
videoControlSize Windows
return void
        public void SetupRenderer(uint foregroundProcessId, IMediaSource source,
            Windows.Foundation.Size videoControlSize)
        {
            if (_mediaElement != null)
            {
                Action fn = (() =>
                {
                    _mediaElement.SetMediaStreamSource(source);
                });
                var asyncOp = _dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, new DispatchedHandler(fn));
                _isSetup = true;
            }
        }