You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! when I call startPreview on the onCreate method of an activity or a fragment, the surface becomes black (but my webcam turns on the led indicating it's on)
it only works when i call startPreview on a click of a button or something that will happen on a later time..
How can I fix that?
The text was updated successfully, but these errors were encountered:
@rafaelcorreiapoli I had the same problem. The issue is your code calling startPreview before the surface is ready. Try adding callback to your surface and call startPreview in the onSurfaceChanged method.
Hello! when I call startPreview on the onCreate method of an activity or a fragment, the surface becomes black (but my webcam turns on the led indicating it's on)
it only works when i call startPreview on a click of a button or something that will happen on a later time..
How can I fix that?
The text was updated successfully, but these errors were encountered: