Most of these cars have a 12V battery to run all the usual 12V components like lights, wipers, entertainment system etc. Note that the 12V battery is not usually connected to the main battery system when the car is not in use so you can flatten it, just like you can with a fossil fuel vehicle. It also would depend on how much power the dash cam draws.