And in MediaApiProvider_1_4.cs to correct:
public void SetCurrentSoundDevices(pjsip4net.Core.Utils.Tuple<int, int> deviceIds) { //Helper.GuardPositiveInt(deviceIds.Part1); //Helper.GuardPositiveInt(deviceIds.Part2); Helper.GuardError(PJSUA_DLL.Media.pjsua_set_snd_dev(deviceIds.Part1, deviceIds.Part2)); }
This as a proposal...
It's work for me and useful in a conference
Hi! In my app I want to disable only capture device. But it's imposible :( I suggest: in DefaultMediaManager.cs to correct: `public void SetDevices() { _curCapture = _registry.MediaConfig.CaptureDeviceId != -1 ? SoundDevices.Where(s => s.Id == _registry.MediaConfig.CaptureDeviceId).Take(1).SingleOrDefault() : null; _curPlayback = _registry.MediaConfig.PlaybackDeviceId != -1 ? SoundDevices.Where(s => s.Id == _registry.MediaConfig.PlaybackDeviceId).Take(1).SingleOrDefault() : null;
And in MediaApiProvider_1_4.cs to correct:
public void SetCurrentSoundDevices(pjsip4net.Core.Utils.Tuple<int, int> deviceIds) { //Helper.GuardPositiveInt(deviceIds.Part1); //Helper.GuardPositiveInt(deviceIds.Part2); Helper.GuardError(PJSUA_DLL.Media.pjsua_set_snd_dev(deviceIds.Part1, deviceIds.Part2)); }
This as a proposal... It's work for me and useful in a conference