Using event oniceconnectionstatechange to detect ice gathering end. Old method (null candidate) has not been removed since they are compatible.