Why the component id is set to candidates list size which is random value for both endpoints ? According to https://tools.ietf.org/html/rfc5245 the component is definitely fixed value (1 for RTP, 2 - fro RTCP). Such bug leads to the following warning and inability to establish connection between clients that use different libnice versions.
(process:XXXXX): libnice-WARNING **: Could not find component X in stream 1
one liner change fixes the things
int ret = nice_agent_set_remote_candidates(ice->agent, ice->stream_id, 1, list);
Why the component id is set to candidates list size which is random value for both endpoints ? According to https://tools.ietf.org/html/rfc5245 the component is definitely fixed value (1 for RTP, 2 - fro RTCP). Such bug leads to the following warning and inability to establish connection between clients that use different libnice versions.
one liner change fixes the things