NativeScript / mlkit

Apache License 2.0
24 stars 9 forks source link

Pause parameter does not correctly initialize MLKitView, still bug #12 #16

Closed cjohn001 closed 2 years ago

cjohn001 commented 2 years ago

I would expect that if I bind a boolean variable to the MLKitView pause parameter, which is set to true, like done in my example here

https://github.com/cjohn001/mlkit-test/blob/2d05bd4ce3e1853ba8c54b69ac5edb053f4c32d9/src/app/item/items.component.ts#L18

that the MlKitView after it is loaded does not automatically start the video stream. Currently, the pause directly activates/deactivates the video stream and the state is not stored. I assume, the parameters are initially set before the stream is started, therefore it would be required to save the state in the MlKitView. Same problem exists for torchOn. For torchOn I provide an extra issue.