No client SDK for Skype for Business 2016

徘徊边缘 提交于 2019-12-01 17:16:45

Lync Client SDK 2013 should support Skype for Business 2016. There is no new client SDK announced as yet.

You can use the ILyncClient "inner object" (from Microsoft.Office.Uc) to work around this issue

eg:

    static bool SetClientAudioDevice(LyncClient client, string name)
    {
        var innerClient = (ILyncClient)client.InnerObject;
        var deviceManager = innerClient.DeviceManager;

        Console.WriteLine("Current audio device: [{0}]", client.DeviceManager.ActiveAudioDevice.Name);
        Console.WriteLine("Lync Client Audio Devices List:");
        var ok = false;
        foreach (var device in deviceManager.AudioDevices.OfType<Microsoft.Office.Uc.AudioDevice>())
        {
            Console.WriteLine("    AudioDevice: [{0}], Active[{1}], ID[{2}], IsCertified[{3}], Priority[{4}], Type[{5}]", device.Name, device.IsActive, device.Id, device.IsCertified, device.Priority, device.Type);

            if (device.Name.IndexOf(name, StringComparison.InvariantCultureIgnoreCase) >= 0)
            {
                Console.WriteLine("        Setting active device!");
                deviceManager.ActiveAudioDevice = device;
                ok = true;
            }
        }
        return ok;
    }

Like Ankit mentioned, the 2013 SDK works with Skype for Business 2016, too.

To get around the install limitation ("Microsoft Lync 2013 not found"), use Jon Gallant's advice: http://blog.jongallant.com/2016/08/solution-lync-2013-not-found/

That is, unzip lyncsdk.exe and manually install the appropriate MSI (x86 or x64).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!