コード例 #1
0
        public void ChangeCaptureFormat(int width, int height, int framerate)
        {
            _executor.Execute(() =>
            {
                if (!IsVideoCallEnabled || _isError || _videoCapturer == null)
                {
                    _logger.Error(TAG, $"Failed to change capture format. Video: {IsVideoCallEnabled}. Error : {_isError}");
                    return;
                }

                _logger.Debug(TAG, $"ChangeCaptureFormat: {width}x{height}@{framerate}");
                _videoSource.AdaptOutputFormat(width, height, framerate);
            });
        }