added a function to getUserMedia which allows to send more parameters to as3