hello @thankful-rain-7893, I'm rather curious, are you using the component-js library? I'm asking because a lot of those states are already handled for you. Ref: https://github.com/livekit/components-js
d
dry-elephant-14928
04/12/2023, 7:33 PM
track.detach is not supposed to release camera.. that detaches the track from UI, but if it's a local track, it would continue to be published.
you'd want to mute or unpublish the LocalVideoTrack if you are looking to stop it