RTCPeerConnection state change handler got working