/* * VIDEO */ public static WebcamDeviceList GetVideoDevices() { WebcamFfmpegGetDevices w; if (UtilAll.GetOSEnum() == UtilAll.OperatingSystems.LINUX) { w = new WebcamFfmpegGetDevicesLinux(); } else if (UtilAll.GetOSEnum() == UtilAll.OperatingSystems.WINDOWS) { w = new WebcamFfmpegGetDevicesWindows(); } else { w = new WebcamFfmpegGetDevicesMac(); } WebcamDeviceList wd_list = w.GetDevices(); return(wd_list); }
protected void initialize() { LogB.Information(" called initialize "); wd_list = new WebcamDeviceList(); }
/// <summary> /// Emits the list of all available webcam devices. /// </summary> /// <param name="audioDeviceList"></param> public static void EmitWebcamDevices(WebcamDeviceList webcamDeviceList) { EmitSerializedOutput(AvailableCommand.GetWebcamDevices, webcamDeviceList); }