Closed scognito closed 1 month ago
Hi @scognito,
Thanks for reporting this issue. I will take a look and see if I can update it to address this issue.
You can add the line I added. I didn't make a PR just because there is still the crash on CameraMacosPlugin.swift. It should be trivial to fix though
I've added the stream cancelling function and changed the function signature to support error handling. It should be released in the next update. Thank you!
When I call
await stopImageStream
and thenisStreamingImageData
, I get always true. After digging a bit I found that the functionstopImageStream
does not setevents
to null.I modified the code to this:
It works, but sometimes the app crashes on
CameraMacosPlugin.swift
with this error:_cameramacos/CameraMacosPlugin.swift:117: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value+
I don't have time to fix this though