m5stack / TimerCam-arduino

TimerCam Arduino Library
MIT License
45 stars 25 forks source link

web_cam camera not working when camera is uplugged #25

Open infct3d opened 2 months ago

infct3d commented 2 months ago

Describe the bug

when i use web_cam the video will disconnect when the camera is unplugged

To reproduce

i added a bat_init() to try and see if that would allow the video to play when the camera is unplugged but it disconnects after 30 seconds

Expected behavior

i expect the camera to rely on its battery and keep streaming

Screenshots

No response

Environment

Additional context

No response

Issue checklist

Tinyu-Zhao commented 1 month ago

So why is it so strange? This example originally displays the contents of the camera on the web page. The camera has been unplugged, indicating that a fault has occurred. Shouldn't the device stop running?