Open mickel8 opened 4 years ago
One way to do that is to manually check if candidate is of type host, accumulate it and then return to the pipeline for sending to the peer.
How can we tell we accumulated all the candidates so they can be sent? I'm also not sure if it can reduce the connection time. Maybe there's a reason why libnice returns them one by one?
At this moment local host candidates are returned one by one. Because in most cases they will not be selected for communication it is better to send them together to the peer to save time.
It seems that
libnice
doesn't expose specific function for gathering localhost
candidates. One way to do that is to manually check if candidate is of typehost
, accumulate it and then return to the pipeline for sending to the peer.