I got supported size {"formats":[{"index":1,"type":4,"default":1,"size":["640x480","352x288","320x240","176x144","160x120"]}]}
but it throws exception
java.lang.IllegalArgumentException: Failed to set preview size
2023-10-18 00:55:06.094 28846-28909 System.err dev.alejandrorosas.apptemplate W at com.serenegiant.usb.UVCCamera.setPreviewSize(UVCCamera.java:328)
2023-10-18 00:55:06.095 28846-28909 System.err dev.alejandrorosas.apptemplate W at com.serenegiant.usb.UVCCamera.setPreviewSize(UVCCamera.java:299)
2023-10-18 00:55:06.095 28846-28909 System.err dev.alejandrorosas.apptemplate W at dev.alejandrorosas.streamlib.StreamService$onDeviceConnectListener$1.onConnect(StreamService.kt:177)
2023-10-18 00:55:06.095 28846-28909 System.err dev.alejandrorosas.apptemplate W at com.serenegiant.usb.USBMonitor$4.run(USBMonitor.java:605)
I got supported size {"formats":[{"index":1,"type":4,"default":1,"size":["640x480","352x288","320x240","176x144","160x120"]}]} but it throws exception java.lang.IllegalArgumentException: Failed to set preview size 2023-10-18 00:55:06.094 28846-28909 System.err dev.alejandrorosas.apptemplate W at com.serenegiant.usb.UVCCamera.setPreviewSize(UVCCamera.java:328) 2023-10-18 00:55:06.095 28846-28909 System.err dev.alejandrorosas.apptemplate W at com.serenegiant.usb.UVCCamera.setPreviewSize(UVCCamera.java:299) 2023-10-18 00:55:06.095 28846-28909 System.err dev.alejandrorosas.apptemplate W at dev.alejandrorosas.streamlib.StreamService$onDeviceConnectListener$1.onConnect(StreamService.kt:177) 2023-10-18 00:55:06.095 28846-28909 System.err dev.alejandrorosas.apptemplate W at com.serenegiant.usb.USBMonitor$4.run(USBMonitor.java:605)