if getusermedia is not available, it starts in play mode, otherwise it starts in record mode