How to dispose camera when you switch to other screen #1282
Unanswered
Ayushpanditmoto
asked this question in
Q&A
Replies: 1 comment
-
add this code in void dispose function |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
closeCameraStream() async { try { final MediaStream? stream = localRenderer.srcObject; stream!.getTracks().forEach((track) => track.stop()); localRenderer.srcObject = null; } catch (e) { debugPrint(e.toString()); } }
Beta Was this translation helpful? Give feedback.
All reactions