public ManagedEVSdk.Structs.EVDeviceCli GetDevice(ManagedEVSdk.Structs.EV_DEVICE_TYPE_CLI type) { _log.InfoFormat("GetDevice: {0}", type); EVDeviceCli device = this.EVSdkWrapper.EVEngineGetDevice(type); _log.Info("GetDevice done"); return(device); }
public string GetCurrentSpeaker() { EVDeviceCli speaker = EVSdkManager.Instance.GetDevice(EV_DEVICE_TYPE_CLI.EV_DEVICE_AUDIO_PLAYBACK); return(null != speaker?Utils.Utf8Byte2DefaultStr(speaker.name) : ""); }
public string GetCurrentCamera() { EVDeviceCli camera = EVSdkManager.Instance.GetDevice(EV_DEVICE_TYPE_CLI.EV_DEVICE_VIDEO_CAPTURE); return(null != camera?Utils.Utf8Byte2DefaultStr(camera.name) : ""); }
public string GetCurrentMicrophone() { EVDeviceCli mic = EVSdkManager.Instance.GetDevice(EV_DEVICE_TYPE_CLI.EV_DEVICE_AUDIO_CAPTURE); return(null != mic?Utils.Utf8Byte2DefaultStr(mic.name) : ""); }