Beagle V2 camera for SM 250 and 350

Hi everyone reading this and interested or have this camera, as there are many cameras this one works with the snapmaker as i can control it via wifi and monitor it with app or ip. My only problem is that when i create the gcode with luban i have to send it to camera application for it to star SM do prints and record and make time laps which is cool but here is my problem and dilemma. When gcode is send to camera to make videos an error example filament runs out, it dont stop machine it just keeps going, if i send g code to SM camera the camera dont record at all.
Camera is connected to module next to the touch screen adapter. If camera can read and send g codes and move bed XYZ, heat bed, fan, heat monitoring like in touch screen y cant either machine communicate together.

Camera: Sent gcode from luban and work such as with touchscreen (stop error,out of filament, power outage…)

Touchscreen: Read information from camera/ to enable video recording time laps from g code sent to camera. For usb to touchscreen information sharing and work (stop error,out of filament, power outage…)

Your request is not clearly written.

The runout and power loss features only work if you print from touchscreen.
This is why it doesn’t work if you print from your camera or octoprint.

If you are able and the camera is programmable you could maybe change the code of the SM github.

Thanks for the reply, and directing me to the github. I just dont know how the camera can communicate with the touchscreen like both working together for both doing there thing

Unfortunately there is no way for the camera to communicate to the touchscreen.