# Camera does not turn off when publishVideo(false) is called

**URL:** <https://openvidu.discourse.group/t/camera-does-not-turn-off-when-publishvideo-false-is-called/1296>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [June 25, 2020, 1:31pm UTC](https://openvidu.discourse.group/t/camera-does-not-turn-off-when-publishvideo-false-is-called/1296 "2020-06-25T13:31:40Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![Rajesh\_V](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/rajesh_v/32/1490_2.png) [@Rajesh\_V](https://openvidu.discourse.group/u/Rajesh_V)\
**Post date:** [May 8, 2021, 9:06am UTC](https://openvidu.discourse.group/t/camera-does-not-turn-off-when-publishvideo-false-is-called/1296/16 "2021-05-08T09:06:47Z")

</div>

Hello,

Do we have any update on this. I am also facing a similar problem but unable to solve this.  
I don’t want to turn on the Video, while creating the publisher. Below is the Property I am passing in OV.initPublisher method  
{“frameRate”:30,“insertMode”:“APPEND”,“mirror”:false,“publishAudio”:true,“publishVideo”:false,“resolution”:“640x480”}  
By Specifying publishVideo as false, the webcam is not sending the feed, I can see black image in the Video, but still the camera light gets turned on, I am unable to turn it off.

Note: This Issue is appearing only in chrome, whereas in firefox the camera light gets turned off.

I tried using below code to stop the Video Track. But if we stop the VideoTrack, it inturn affects the Audio and the subscriber is unable to hear the Audio.

setTimeout(() =\> {  
let videoTrack;

```
try {

	if (publisher&& publisher.stream && publisher.stream.mediaStream
		&& publisher.stream.mediaStream.getVideoTracks()) {
			videoTrack = publisher.stream.mediaStream.getVideoTracks()[0];
	}
} catch(error) {
	console.log(error);
}
try {
	
	if (videoTrack) {
		videoTrack.stop();  
	}
}catch(error) {
	console.log(error);
}

```

}, 3000);  
Any help would be appreciated

---

_[View the full topic](https://openvidu.discourse.group/t/camera-does-not-turn-off-when-publishvideo-false-is-called/1296)._
