WebRTCCall: refactor _getMedia to be more readable