livekit / track-processors-js

Apache License 2.0
29 stars 13 forks source link

GPU error on older devices #39

Open AurimasG12 opened 2 months ago

AurimasG12 commented 2 months ago

As a developer I want to identify, which devices can use BackgroundBlur or VirtualBackground, but at this moment, as a user, I can use blur, but it fails.

Device: Samsung Galaxy S8 Android - 7. I'm using this device via BrowserStack, but also we have had reports with other Android devices.

Logs: blurLogs.log

lukasIO commented 1 month ago

Yeah, this would be great! Currently we only try to detect support by checking for the presence of OffscreenCanvas in the browser, which is not ideal. It would be best if Google Mediapipe would expose an isSupported() method that checks for browser support. As far as I know this currently doesn't exist for mediapipe. You can override the GPU use by setting segmenterOptions.delegate = 'CPU' on the processor options. But this doesn't really help out of the box to figure out which delegate is supported for which device.