ZennoLab Assemblies Documentation
GetWebRTCDevices Method
Example 
ZennoLab.CommandCenter Namespace > Instance Class : GetWebRTCDevices Method
Returns a collection of current visible devices.
Syntax
public IEnumerable<WebRtcDeviceItem> GetWebRTCDevices()

Return Value

Type: System.Collections.IEnumerable

Collection of plugins.

Example
The following example uses the GetWebRTCDevices method.
// get devices
var devices = instance.GetWebRTCDevices();
// name of first device
string name = "";
if (devices != null)
{
    var devicesList = devices.ToList();
    if(devicesList.Count > 0)
    {
        name = devicesList[0].Name;
    }
}
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

Instance Class
Instance Members