(ic *webrtc.ICECandidate, target livekit.SignalTarget)
| 843 | } |
| 844 | |
| 845 | func (c *RTCClient) SendIceCandidate(ic *webrtc.ICECandidate, target livekit.SignalTarget) error { |
| 846 | prevIC := c.icQueue[target].Swap(ic) |
| 847 | if prevIC == nil { |
| 848 | return nil |
| 849 | } |
| 850 | |
| 851 | return c.SendRequest(&livekit.SignalRequest{ |
| 852 | Message: &livekit.SignalRequest_Trickle{ |
| 853 | Trickle: signalling.ToProtoTrickle(prevIC.ToJSON(), target, ic == nil), |
| 854 | }, |
| 855 | }) |
| 856 | } |
| 857 | |
| 858 | func (c *RTCClient) SetAttributes(attrs map[string]string) error { |
| 859 | return c.SendRequest(&livekit.SignalRequest{ |
no test coverage detected