Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
        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);
        }