A typical dash cam can be mounted inside its vehicle's windshield, usually behind the rear view mirror in order to leave the windshield itself clear and make sure the camera doesn't obstruct a driver's view.
If installed anywhere else on a windshield, a trucker might run into legal trouble when visiting some states.