我使用Lync 2013 SDK制作受限制的客户端 . 当我在server2008 R2上安装它时,videopart不起作用 . 当与客户联系时,我可以看到视频已发送,当“解压”lync时,我可以看到正常的Lync客户端显示视频..

所以问题出在api的renderwindow中 .

有什么建议?

/// <summary>
    /// Shows the specified video window in the specified panel.
    /// </summary>
    private static void ShowVideo(Panel videoPanel, VideoWindow videoWindow)
    {
        //Win32 constants:                  WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
        const long lEnableWindowStyles = 0x40000000L | 0x02000000L | 0x04000000L;
        //Win32 constants:                   WS_POPUP| WS_CAPTION | WS_SIZEBOX
        const long lDisableWindowStyles = 0x80000000 | 0x00C00000 | 0x00040000L;
        const int OATRUE = -1;

        try
        {
            //sets the properties required for the native video window to draw itself
            videoWindow.Owner = videoPanel.Handle.ToInt32();
            videoWindow.SetWindowPosition(0, 0, videoPanel.Width, videoPanel.Height);

            //gets the current window style to modify it
            long currentStyle = videoWindow.WindowStyle;

            //disables borders, sizebox, close button
            currentStyle = currentStyle & ~lDisableWindowStyles;

            //enables styles for a child window
            currentStyle = currentStyle | lEnableWindowStyles;

            //updates the current window style
            videoWindow.WindowStyle = (int)currentStyle;

            //updates the visibility
            videoWindow.Visible = OATRUE;
        }
        catch (Exception exception)
        {
            Console.WriteLine(exception);
        }
    }