WebCam remains active after track unpublished and stopped

Bod
Bod
edited March 15 in Video, Live & WebRTC

Hello,

I am using Twilio Video version 2.x.

However the webcam of the laptop remains on after unpublishing and stopping the tracks with the following angular typescript code:

public closeMeeting(aRoom: Room): void {	    
  this.aRoom.localParticipant.videoTracks.forEach((publication) => {
  publication.unpublish();
  publication.track.stop();
});
  this.aRoom.disconnect();
  this.aRoom = null;
}


Thanks you for your help.

Bod

Comments

If this is an emergency, please contact Twilio Support. This is not an official Support channel. https://support.twilio.com/
Have an urgent question?
Please contact Twilio Support. This is not an official Support channel.
Contact Support