Use device camera as live camera feed

It would be really useful to be able to use the camera on the tablet itself as a remotely connectable IP camera without having to run a separate app in the background.
Performance would obviously be dependent on device, but having some basic options for resolution/fps etc may help this for lower spec devices?