19
Views
1
Comments
[Native Camera Reactive] Not closing the video stream in a sidebar
native-camera-reactive
Reactive icon
Forge asset by Manuel Rodrigues
Application Type
Reactive

For my use case i needed to use the webcam in a web block inside the sidebar widget and when closing the sidebar the camera continues open. The component works fine when capturing a image and then closing the sidebar. 

So the changes that i need to do was to create a OnDestroy event in the web block WebcamFrame to close the camera. 

Other option was to send back the camera object to my sidebar using a event and close the stream when closing the sidebar. I let the event still in the component so that i can use the camera object to check if is active in the sidebar.

2023-01-07 12-51-11
Manuel Rodrigues

Fixed in the latest component version (July 24th 2023)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.