public async Task AddIceCandidate(IceCandidateArgs args) { Console.WriteLine("AddIceCandidate: " + args.CandidateDto.Candidate); await jsRuntime.InvokeVoidAsync("WebRtcHandlerManager.addIceCandidate", handlerId, args.ConnectionId, args.CandidateDto.Candidate, args.CandidateDto.SdpMid, args.CandidateDto.SdpMLineIndex, args.CandidateDto.UsernameFragment); }
public void AddIceCandidate(IceCandidateArgs args) { Console.WriteLine("Add ice candidate"); if (args.ConnectionId != ConnectionId) { throw new Exception(); } _peerConnection.addIceCandidate(new RTCIceCandidateInit { candidate = args.CandidateDto.Candidate, sdpMid = args.CandidateDto.SdpMid, sdpMLineIndex = (ushort)args.CandidateDto.SdpMLineIndex, usernameFragment = args.CandidateDto.UsernameFragment }); }
private async Task AddIceCandidate(IceCandidateArgs args) { await InvokeOnClients(webRtcClient => webRtcClient.AddIceCandidate(args)); IceCandidateReceived?.Invoke(this, args); }
public Task SendIceCandidate(IceCandidateArgs args) => hubConnection.InvokeAsync(nameof(SendIceCandidate), args);
public Task SendIceCandidate(IceCandidateArgs args) { return(CallOnCurrentClient(c => c.OnIceCandidateReceived(args))); }
public Task AddIceCandidate(IceCandidateArgs args) { _peer.AddIceCandidate(args); return(Task.CompletedTask); }
public Task AddIceCandidate(IceCandidateArgs args) { webRtcClient.ReceiveCandidate(args.ConnectionId, new IceCandidate(args.CandidateDto.SdpMid, args.CandidateDto.SdpMLineIndex, args.CandidateDto.Candidate)); return(Task.CompletedTask); }