Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
TokBox/Vonage视频API-windows窗体同步接收的流_Windows_Winforms_Opentok - Fatal编程技术网

TokBox/Vonage视频API-windows窗体同步接收的流

TokBox/Vonage视频API-windows窗体同步接收的流,windows,winforms,opentok,Windows,Winforms,Opentok,在windows窗体应用程序中,我无法将接收到的流与加载的流同步。 我使用委托获取收到的订阅者,并将他们放入列表中。下面是我使用的委托,就像示例中一样: private void Session_StreamReceived(object sender, Session.StreamEventArgs e) { Console.WriteLine("Session stream received"); // add the stream to the lis

在windows窗体应用程序中,我无法将接收到的流与加载的流同步。 我使用委托获取收到的订阅者,并将他们放入列表中。下面是我使用的委托,就像示例中一样:

private void Session_StreamReceived(object sender, Session.StreamEventArgs e)
{
    Console.WriteLine("Session stream received");
     // add the stream to the list of available streams, to connect them later...  
}
问题是,当我只有一个连接的用户时,没有问题,但是当我有多个连接的用户时,接收到的流与我在列表中加载的流不同步。(我将流添加到委托中的列表中)

windows sdk是如何工作的?用另一根线,对吗?如何将我拥有的可用用户列表与接收到的流同步

非常感谢
最好的

嗨!,你能提供更多的细节吗?这些流仅在同一会话中有效,如果连接到其他会话,则无法使用它们。一旦任何人加入会话并发布视频,StreamReceived将只调用一次。当它离开会话时,调用
streamdrop
。您应该能够通过监听这两个事件来维护订阅者列表。