Disable local video but the camera led is still on.

598 views
Skip to first unread message

Kshama

unread,
Apr 20, 2020, 9:00:23 AM4/20/20
to meetecho-janus
Hi,

I want to disable video in the local video. So I am sending a request
{"request":"configure", "video":false}

But you can still see the led light of camera on. I want to disable the access from camera completely and then enable whenever |I want.
How can I do that?

Thanks,
Kshama

Mirko Brankovic

unread,
Apr 20, 2020, 9:23:40 AM4/20/20
to meetecho-janus
Yes, that request will stop forwarding of video to other subscribers, but it won't stop the sending from sending video as publisher.

Even if you do a local mute on client side of videoTrack camera lid will still be lid, if you want light to go off, you have 2 options:
 1. Destroy local peer connection completely
 2. put some duck tape over the light 

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/meetecho-janus/c8a1c482-339b-47f7-95bb-042df508bce2%40googlegroups.com.


--
Regards,
Mirko

Kshama

unread,
Apr 20, 2020, 9:35:22 AM4/20/20
to meetecho-janus
Hi ,
Thanks for the fast reply.
But I want to continue with my audio and only disable video.

Any suggestions?

Thanks,
Kshama

Mirko Brankovic

unread,
Apr 20, 2020, 11:02:17 AM4/20/20
to meetecho-janus
you have to call mediaStreamTrack.stop()
but on all video tracks your client has, in order to lose light on camera lid. that includes your local stream/preview,...

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.


--
Regards,
Mirko

Kshama

unread,
Apr 22, 2020, 5:45:35 AM4/22/20
to meetecho-janus
Thanks for taking the time to reply.
Thanks,
Kshama

On Monday, April 20, 2020 at 7:02:17 PM UTC+4, Mirko Brankovic wrote:
you have to call mediaStreamTrack.stop()
but on all video tracks your client has, in order to lose light on camera lid. that includes your local stream/preview,...

On Mon, Apr 20, 2020 at 3:35 PM Kshama <ksham...@gmail.com> wrote:
Hi ,
Thanks for the fast reply.
But I want to continue with my audio and only disable video.

Any suggestions?

Thanks,
Kshama

On Monday, April 20, 2020 at 5:00:23 PM UTC+4, Kshama wrote:
Hi,

I want to disable video in the local video. So I am sending a request
{"request":"configure", "video":false}

But you can still see the led light of camera on. I want to disable the access from camera completely and then enable whenever |I want.
How can I do that?

Thanks,
Kshama

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetech...@googlegroups.com.


--
Regards,
Mirko

wasif ali

unread,
Oct 21, 2020, 7:27:19 AM10/21/20
to meetecho-janus
mediaStreamTrack.stop()  has been depricated .   plugin.send{"request":"configure", "video":false}

will only block remote stream not local i want to sync local as well .

Alessandro Toppi

unread,
Oct 21, 2020, 8:21:40 AM10/21/20
to meetecho-janus
mediaStreamTrack.stop()  has been depricated 

Last time I checked it was not.
Are you sure?

Lorenzo Miniero

unread,
Oct 21, 2020, 9:05:53 AM10/21/20
to meetecho-janus
I guess he meant MediaStream.stop()

L.
Reply all
Reply to author
Forward
0 new messages