コード例 #1
0
 public IAsyncAction OnLocalControlSizeAsync(VideoControlSize size)
 {
     return(Context.WithContextAction(cx =>
     {
         cx.LocalVideoControlSize = size.Size;
         cx.LocalVideoRenderer.SetRenderControlSize(size.Size);
     }).AsAsyncAction());
 }
コード例 #2
0
 public void OnLocalControlSize(VideoControlSize size)
 {
     Task.Run(() =>
     {
         Context.WithState(st =>
         {
             return(Task.Run(() =>
             {
                 Context.LocalVideoControlSize = size.Size;
                 Context.LocalVideoRenderer.SetDisplaySize(size.Size);
             }));
         }).Wait();
     });
 }
コード例 #3
0
 public IAsyncAction OnRemoteControlSizeAsync(VideoControlSize size)
 {
     return(InvokeHubChannelAsync <ICallChannel>(size).AsTask().AsAsyncAction());
 }
コード例 #4
0
 public void OnLocalControlSize(VideoControlSize size)
 {
     InvokeHubChannel <IVoipChannel>(size);
 }