public override DeviceInfo[] EnumerateVideoDevices() { var param = new { }; return(AgoraRtcNative.CallIrisRtcVideoDeviceManagerApi(_irisRtcDeviceManager, ApiTypeVideoDeviceManager.kVDMEnumerateVideoDevices, JsonMapper.ToJson(param), out _result) != 0 ? new DeviceInfo[0] : AgoraJson.JsonToStructArray <DeviceInfo>(_result.Result)); }
public override DeviceInfo GetRecordingDeviceInfo() { var param = new { }; return(AgoraRtcNative.CallIrisRtcAudioDeviceManagerApi(_irisRtcDeviceManager, ApiTypeAudioDeviceManager.kADMGetRecordingDeviceInfo, JsonMapper.ToJson(param), out _result) != 0 ? new DeviceInfo() : AgoraJson.JsonToStruct <DeviceInfo>(_result.Result)); }
public override int GetCurrentRecordingDeviceInfo(ref string deviceName, ref string deviceId) { var param = new { }; string result; var ret = _agoraRtcAudioRecordingDeviceManager.CallIrisRtcAudioDeviceManagerApi( ApiTypeAudioDeviceManager.kADMGetRecordingDeviceInfo, JsonMapper.ToJson(param), out result); if (result.Length <= 0) { return(ret); } deviceName = (string)AgoraJson.GetData <string>(result, "deviceName"); deviceId = (string)AgoraJson.GetData <string>(result, "deviceId"); return(ret); }