public void CallEchoService() { var callOptions = new StartCallOptions(); var camera = _deviceManager.CameraList.First(c => c.CameraFacing == CameraFacing.Front); callOptions.AudioOptions = new AudioOptions(); //callOptions.AudioOptions.Muted = true; var localVideoStream = new LocalVideoStream(camera, MainActivity.Instance); callOptions.VideoOptions = new VideoOptions(localVideoStream); var receivers = new CommunicationIdentifier[] { new CommunicationUserIdentifier("8:echo123") }; _call = _callAgent.Call(MainActivity.Instance, receivers, callOptions); }
public void CallEchoService() { var callOptions = new StartCallOptions(); var camera = _deviceManager.Cameras.First(c => c.CameraFacing == CameraFacing.Front); callOptions.SetAudioOptions(new AudioOptions()); //callOptions.AudioOptions.Muted = true; var localVideoStream = new LocalVideoStream(camera, MainActivity.Instance); callOptions.SetVideoOptions(new VideoOptions(new LocalVideoStream[] { localVideoStream })); var receivers = new CommunicationIdentifier[] { new CommunicationUserIdentifier("8:echo123") }; // TODO: //_callAgent.StartCall(); //var locator = new GroupCallLocator() //_call = _callAgent. Join(MainActivity.Instance, receivers, callOptions); }
private async void CallButton_ClickAsync(object sender, RoutedEventArgs e) { CommunicationTokenCredential token_credential = new CommunicationTokenCredential("<USER_ACCESS_TOKEN>"); call_client_ = new CallClient(); CallAgentOptions callAgentOptions = new CallAgentOptions() { DisplayName = "<YOUR_DISPLAY_NAME>" }; call_agent_ = await call_client_.CreateCallAgent(token_credential, callAgentOptions); StartCallOptions startCallOptions = new StartCallOptions(); ICommunicationIdentifier[] callees = new ICommunicationIdentifier[1] { new CommunicationUserIdentifier(CalleeTextBox.Text) }; call_ = await call_agent_.StartCallAsync(callees, startCallOptions); }