我使用 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