AckerApple / ack-angular-webcam

MIT License
37 stars 19 forks source link

Camera seems to freeze when changing tabs with Angular Material #34

Closed arizona2014 closed 6 years ago

arizona2014 commented 6 years ago

So i've installed the package without a problem, made it functioning, but due to project specifications I use the camera in one Angular Material Tab.

At first the camera works, but once I change the tabs, it freezes and cannot make it work until I refresh the whole page. Isnt a more elegant way to refresh/reinitialize the camera once the selectedIndex of the tab is the one with the camera ?

thanks

arizona2014 commented 6 years ago

Seems an this.webcam.afterInitCycles(); solves the problem