saki4510t / UVCCamera

library and sample to access to UVC web camera on non-rooted Android device
2.99k stars 1.2k forks source link

unplug usb interface manually without calling stopPreview #437

Open manphis opened 5 years ago

manphis commented 5 years ago

The procedure of my unplug the usb is as follows:

  1. unplug usb interface manually.
  2. after receiving the callback 'onDisconnect()' , I invoke mUVCCamera.close();
  3. The process will hang at uvc_stream_close() and uvc_stream_stop()

Is there a proper way to end the uvc stream when the usb interface is unplugged manually?

Thanks so much.

xuannt88 commented 1 year ago

Is there any solution for this?