-
Notifications
You must be signed in to change notification settings - Fork 334
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 PWA installable to make this fix testable. Closes #298
- Loading branch information
Showing
10 changed files
with
2,482 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,6 +142,7 @@ out | |
# Nuxt.js build / generate output | ||
.nuxt | ||
dist | ||
dev-dist | ||
|
||
# Gatsby files | ||
.cache/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,7 @@ button { | |
top: 10px; | ||
} | ||
button img { | ||
with: 50px; | ||
width: 50px; | ||
height: 50px; | ||
} | ||
.error { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,7 @@ button { | |
top: 10px; | ||
} | ||
button img { | ||
with: 50px; | ||
width: 50px; | ||
height: 50px; | ||
} | ||
.error { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.