changed stream to localMediaStream