Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(QrcodeStream): iOS PWA background stream kill
Apparently, when QrcodeStream is used in an iOS PWA and goes into the background, the stream on the video element is stopped. When the user returns, the stream is not restarted automatically. To fix this we try keep track whether the page/app is in the foreground and stop/start the stream when this state changes. Incidentally, this commit makes the demo page is now PWA installable to make this testable. Closes #298
- Loading branch information