Commit 5fa80ed
committed
Ensure live preview is not cached
On some devices, the video preview freezes when the video is hidden and
then shown again (e.g, show preview during countdown; hide preview to
show taken picture; show preview during countdown of the next picture).
This is because the last frame can be cached by the browser when the
preview is hidden, and this cached frame is displayed when the preview
is shown again.
To disable caching, a unique parameter is added to the URL of the
stream of the stream.
Signed-off-by: Nils Bosbach <n.bosbach@gmx.de>1 parent 8a0fb78 commit 5fa80ed
File tree
6 files changed
+25
-14
lines changed- assets
- js
- sass/components
- docs/faq
- lib
- template/components
6 files changed
+25
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
3 | 20 | | |
4 | 21 | | |
5 | 22 | | |
| |||
163 | 180 | | |
164 | 181 | | |
165 | 182 | | |
| 183 | + | |
166 | 184 | | |
167 | | - | |
168 | 185 | | |
169 | 186 | | |
170 | 187 | | |
| |||
175 | 192 | | |
176 | 193 | | |
177 | 194 | | |
| 195 | + | |
178 | 196 | | |
179 | | - | |
180 | 197 | | |
181 | 198 | | |
182 | 199 | | |
| |||
201 | 218 | | |
202 | 219 | | |
203 | 220 | | |
204 | | - | |
205 | 221 | | |
| 222 | + | |
206 | 223 | | |
207 | 224 | | |
208 | 225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | | - | |
| 471 | + | |
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
483 | | - | |
| 483 | + | |
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1365 | 1365 | | |
1366 | 1366 | | |
1367 | 1367 | | |
1368 | | - | |
| 1368 | + | |
1369 | 1369 | | |
1370 | 1370 | | |
1371 | 1371 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments