Vidyo.IO共享屏幕并监视错误

时间:2018-02-09 17:37:20

标签: c# wpf vidyo

我使用vidyo.IO使用以下代码进行通信

    ConnectorPKG.Initialize(); 
var  _connector = new Connector(Handle, Connector.ConnectorViewStyle.ConnectorviewstyleDefault, 8, "all@VidyoClient", "VidyoClient.log", 0);
// This should be called on each window resizing.
_connector.ShowViewAt(Handle, 0, 0, Weidth, Height);
// Registering to events we want to handle.
_connector.RegisterLocalCameraEventListener(new LocalCameraListener(this));
_connector.RegisterLocalWindowShareEventListener(new LocalWindowShareListener(this));
_connector.RegisterLocalMicrophoneEventListener(new LocalMicropfoneListener(this));
_connector.RegisterLocalSpeakerEventListener(new LocalSpeakerListener(this));
_connector.RegisterParticipantEventListener(new ParticipantListener(this));
_connector.RegisterLocalMonitorEventListener(new LocalMonitorListener(this));
_connector.RegisterMessageEventListener(new ChatListener(this));
 _connector.DisableDebug();

然后在加入一个房间后,我使用这样的代码共享窗口

var winToShare = LocalWindows.FirstOrDefault( );
                if (winToShare != null)
                { 
                    winToShare.IsSelected = true;
                    //SetSelectedLocalWindow(winToShare);
                    SharingInProgress = _connector.SelectLocalWindowShare(winToShare.Object);                      
                }

和监视器相同,现在我总是收到此错误

can't share overconstrained frame interval 

1 个答案:

答案 0 :(得分:0)

您正在开发什么平台?看起来您可能正在使用Xamarin构建移动应用程序,如果是这样,您将无法进行窗口/应用程序共享。该功能仅适用于桌面和Web客户端。