Open Iheartweb opened 6 years ago
I had simlar issue. Before i set active to false just run stop track:
if (this.stream != null) {
this.stream.getTracks().forEach(function (track) {
track.stop();
});
}
this.active= false;
Same issue with microphone access.
@spiderix workaround solves it for me!
Description
app-media-stream fails to stop camera access when 'active' property set to false.
Expected outcome
When app-media-stream.active is set to false, all media tracks should be stopped and Chrome should no longer indicate that website is accessing camera.
Actual outcome
Chrome indicates that website is accessing camera (recording red dot in tab in desktop or notification on mobile) until tab is killed or page is refreshed.
Steps to reproduce
Browsers Affected
Only tested on latest stable Chrome.