Пример #1
0
        private async Task GetViewSize()
        {
            GetvideoParamResult videoParamResult;

            do
            {
                videoParamResult = await _sdkService.GetVideoStreamsParam();

                Console.WriteLine($"count:{videoParamResult.m_count}");
                foreach (var videoParam in videoParamResult.m_VideoParams)
                {
                    Console.WriteLine($"width:{videoParam.m_nVideoWidth}, height:{videoParam.m_nVideoHeight}");
                }

                Thread.Sleep(2000);
            } while (videoParamResult.m_count != _viewLayoutService.ViewFrameList.Count);
        }