public void SetAudioDevice(MediaDevice device) { Task.Run(async () => { await Context.WithContextAction(ctx => { ctx.SetAudioDevice(device); }); }).Wait(); }
public CaptureCapabilities GetVideoCaptureCapabilities(MediaDevice device) { return Task.Run<CaptureCapabilities>(() => { return Context.WithContextFunc(ctx => { return ctx.GetVideoCaptureCapabilities(device); }); }).Result; }
public IAsyncOperation<CaptureCapabilities> GetVideoCaptureCapabilitiesAsync(MediaDevice device) { return Context.WithContextFuncAsync(ctx => { return ctx.GetVideoCaptureCapabilitiesAsync(device); }).AsAsyncOperation(); }
public void SetAudioPlayoutDevice(MediaDevice device) { _voipContext.SetAudioPlayoutDevice(device); }
public void SetVideoDevice(MediaDevice device) { _voipContext.SetVideoDevice(device); }
public IAsyncOperation<CaptureCapabilities> GetVideoCaptureCapabilitiesAsync(MediaDevice device) { return _voipContext.GetVideoCaptureCapabilitiesAsync(device).AsAsyncOperation(); }
public CaptureCapabilities GetVideoCaptureCapabilities(MediaDevice device) { return _voipContext.GetVideoCaptureCapabilities(device); }
private async Task<CaptureCapabilities> GetVideoCaptureCapabilities(MediaDevice device) { return await _mediaSettings.GetVideoCaptureCapabilitiesAsync(SelectedCamera); }