{"action":"created","issue":{"url":"https://api.github.com/repos/twilio/video-quickstart-js/issues/48","repository_url":"https://api.github.com/repos/twilio/video-quickstart-js","labels_url":"https://api.github.com/repos/twilio/video-quickstart-js/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/twilio/video-quickstart-js/issues/48/comments","events_url":"https://api.github.com/repos/twilio/video-quickstart-js/issues/48/events","html_url":"https://github.com/twilio/video-quickstart-js/issues/48","id":331709978,"node_id":"MDU6SXNzdWUzMzE3MDk5Nzg=","number":48,"title":"WebCam remains active after track.disable()","user":{"login":"GMatias93","id":11906352,"node_id":"MDQ6VXNlcjExOTA2MzUy","avatar_url":"https://avatars0.githubusercontent.com/u/11906352?v=4","gravatar_id":"","url":"https://api.github.com/users/GMatias93","html_url":"https://github.com/GMatias93","followers_url":"https://api.github.com/users/GMatias93/followers","following_url":"https://api.github.com/users/GMatias93/following{/other_user}","gists_url":"https://api.github.com/users/GMatias93/gists{/gist_id}","starred_url":"https://api.github.com/users/GMatias93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GMatias93/subscriptions","organizations_url":"https://api.github.com/users/GMatias93/orgs","repos_url":"https://api.github.com/users/GMatias93/repos","events_url":"https://api.github.com/users/GMatias93/events{/privacy}","received_events_url":"https://api.github.com/users/GMatias93/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-12T18:50:48Z","updated_at":"2018-08-31T04:26:07Z","closed_at":"2018-06-26T15:10:23Z","author_association":"NONE","body":"I slightly modified the media preview code a bit to pause/unpause tracks after they have been created. The screen is going black as expected, but the camera light remains on.\r\n\r\n```javascript\r\n// Preview LocalParticipant's Tracks.\r\ndocument.getElementById('button-preview').onclick = function() {\r\n  var localTracksPromise = previewTracks\r\n    ? previewTracks.forEach(function(track) { track.enable(!track.isEnabled) })  //Toggle if exists\r\n    : Video.createLocalTracks().then(function(tracks) {\r\n    window.previewTracks = previewTracks = tracks;\r\n    var previewContainer = document.getElementById('local-media');\r\n    if (!previewContainer.querySelector('video')) {\r\n      attachTracks(tracks, previewContainer);\r\n    }\r\n  }, function(error) {\r\n    console.error('Unable to access local media', error);\r\n    log('Unable to access Camera and Microphone');\r\n  });\r\n};\r\n```\r\n\r\nThe desired behavior is for the user to toggle their videoTrack as they please (which is why `LocalVideoTrack.stop()` is not ideal), but because the user still sees the green light next to their webcam they understandably believe they are still streaming video. Is there another way I can force the webcam off while my videoTracks are disabled? Or will I have to resort to stopping tracks on `disable` and replacing it with a new one on `enable` (which I would then have to stitch together to make a single playback)?\r\n\r\nThank You!"},"comment":{"url":"https://api.github.com/repos/twilio/video-quickstart-js/issues/comments/417548947","html_url":"https://github.com/twilio/video-quickstart-js/issues/48#issuecomment-417548947","issue_url":"https://api.github.com/repos/twilio/video-quickstart-js/issues/48","id":417548947,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzU0ODk0Nw==","user":{"login":"hmm29","id":6777880,"node_id":"MDQ6VXNlcjY3Nzc4ODA=","avatar_url":"https://avatars3.githubusercontent.com/u/6777880?v=4","gravatar_id":"","url":"https://api.github.com/users/hmm29","html_url":"https://github.com/hmm29","followers_url":"https://api.github.com/users/hmm29/followers","following_url":"https://api.github.com/users/hmm29/following{/other_user}","gists_url":"https://api.github.com/users/hmm29/gists{/gist_id}","starred_url":"https://api.github.com/users/hmm29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmm29/subscriptions","organizations_url":"https://api.github.com/users/hmm29/orgs","repos_url":"https://api.github.com/users/hmm29/repos","events_url":"https://api.github.com/users/hmm29/events{/privacy}","received_events_url":"https://api.github.com/users/hmm29/received_events","type":"User","site_admin":false},"created_at":"2018-08-31T04:26:07Z","updated_at":"2018-08-31T04:26:07Z","author_association":"NONE","body":"Thank you @manjeshbhargav!!"}}
{"actor":{"display_login":"hmm29"}}