You cannot record with your camera while charging.
As, when you start recording, the camera will stop charging even though it is plugged.