Commit 36fbefa
committed
Don’t autoplay video on devices with low battery
This is slightly ineffective as the Battery API returns a Promise
_after_ the video has already started auto-playing. But it’s a neat
example for example’s sake.1 parent 95aacfa commit 36fbefa
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
328 | 332 | | |
329 | 333 | | |
330 | 334 | | |
| |||
0 commit comments