GetStream / stream-video-js

GetStream JavaScript Video SDK
https://getstream.io/video/sdk/
Other
57 stars 19 forks source link

Camera light stays on after disabling camera (@stream-io/video-react-sdk) #1346

Closed dawitgem closed 4 days ago

dawitgem commented 1 month ago

Which package/packages do you use?

Describe the bug I'm having an issue where the camera light remains on even after disabling the camera using the @stream-io/video-react-sdk functions.

To Reproduce Steps to reproduce the behavior:

Implement functionality to disable the camera stream. Observe that the camera light remains on despite the stream being disabled.

1.Integrate @stream-io/video-react-sdk into a web application.

  1. Implement functionality to disable the camera stream.
  2. Observe that the camera light remains on despite the stream being disabled.

Expected behavior The camera light should turn off when the camera stream is disabled using the SDK functions.

Version

Env:

React / JS client

Node JS client

-20.11.0

oliverlaz commented 1 month ago

hi @dawitgem, thanks for reaching out. Could you provide us a Codesandbox (or a repo that reproduces this issue)? https://codesandbox.io/embed/stream-video-quickstart-y0wo3m is a good start.

oliverlaz commented 4 days ago

hi @dawitgem,

Please check the following example:

When the call instance is properly cleaned, the allocated camera and mic handles are also automatically destroyed.