public IAsyncAction OnLocalControlSizeAsync(VideoControlSize size) { return(Context.WithContextAction(cx => { cx.LocalVideoControlSize = size.Size; cx.LocalVideoRenderer.SetRenderControlSize(size.Size); }).AsAsyncAction()); }
public void OnLocalControlSize(VideoControlSize size) { Task.Run(() => { Context.WithState(st => { return(Task.Run(() => { Context.LocalVideoControlSize = size.Size; Context.LocalVideoRenderer.SetDisplaySize(size.Size); })); }).Wait(); }); }
public IAsyncAction OnRemoteControlSizeAsync(VideoControlSize size) { return(InvokeHubChannelAsync <ICallChannel>(size).AsTask().AsAsyncAction()); }
public void OnLocalControlSize(VideoControlSize size) { InvokeHubChannel <IVoipChannel>(size); }