[英]How to turn off connected mac book web cam and cam led light in safari browser?
I am trying to turn off the connected MacBook webcam and cam-led lighting safari browser.我正在尝试关闭连接的 MacBook 网络摄像头和 cam-led Lighting Safari 浏览器。
Here is my code这是我的代码
myStream[0].getVideoTracks().forEach(track => track.stop())
It works on Chrome but doesn't in Safari.它适用于 Chrome,但不适用于 Safari。
How do you turn off the green light of the webcam?如何关闭网络摄像头的绿灯? I looked at this part:
我看了这部分:
https://developer.mozilla.org/ko/docs/Web/API/MediaStreamTrack/stop https://developer.mozilla.org/ko/docs/Web/API/MediaStreamTrack/stop
If we keep aside the ethical side of this question, I believe the green light of the webcam is hardware controlled and not software controlled on latest MacBook.如果我们把这个问题的道德方面放在一边,我相信网络摄像头的绿灯是硬件控制的,而不是最新 MacBook 上的软件控制。 Some additional information here https://apple.stackexchange.com/questions/313504/does-a-modern-macbooks-green-camera-light-always-turn-on-when-the-camera-is-a/396129
这里有一些额外的信息https://apple.stackexchange.com/questions/313504/does-a-modern-macbooks-green-camera-light-always-turn-on-when-the-camera-is-a/396129
We can't turn off mac webcam greenlight manually if the webcam isn't turned off anymore according to apple's new policy.如果根据苹果的新政策不再关闭网络摄像头,我们将无法手动关闭 mac 网络摄像头绿灯。 It will turn off if the webcam is not in use
如果未使用网络摄像头,它将关闭
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.