unfortunately, remoteVideo.src != "" triggers early on firefox. Which means that both checking this and deattaching the remotestream gets alot more complicated than this...