Handle getUserMedia between chrome and firefox