029c957b22
The 'inactive' event is fired whenever the stream gets inactive (ie it cannot be used anymore), and there are scenarios where that is unexpected behavior and must be handled accordingly. The main example of that is when gUM permissions are revoked by the user via the browser's permission management panel. Since MediaStream/Track inactive events aren't being handled in such scenarios, what actually happens is that the camera just freezes without further indication why. This commit handles those scenarios in both video-preview and video-provider by: - 1) correctly stopping the camera (provider) - 2) surfacing a toast (provider) or error indication (preview) |
||
---|---|---|
.. | ||
api | ||
startup | ||
ui | ||
utils |