I did that successfully shown in groov view and controlled pan with the Vivotek camera.
Most of their models are OK. I mostly use DS 2CD1321, a ball camera, a very cheap one.