lbry-desktop/ui/component/viewers
infinite-persistence 7ea73c3f1b
Recsys: improve data stashing frequency
## Issue
The 15s saving interval (hijacking the position-saving code) is too far apart, causing rescys data to be lost when tab is closed/refreshed.

## Change
While I think it is fine to save to redux every second, it is still best to avoid that since a state change will always cause the map-to-props to evaluate.

Chose 5s as the interval and moved away from the position-saving code (the recsys videojs plugin is a better choice to handle this).

Also save it on `t=1` so that at least we know it played prior to the tab refreshing/closing.

## Considered
- Didn't want to do `beforeunload` again since it is unreliable and a pain to test in mobile.
2022-06-24 16:54:55 +08:00
..
appViewer Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
threeViewer Fix and enable 3D viewer: #4035 2020-04-27 14:27:04 -04:00
videoViewer Recsys: improve data stashing frequency 2022-06-24 16:54:55 +08:00
codeViewer.jsx Remove alert 2020-02-07 09:21:28 -05:00
comicBookViewer.jsx fix comic-book content-type detection 2020-05-13 10:18:36 -04:00
documentViewer.jsx Improve CLS on Posts 2021-07-22 10:38:01 +08:00
docxViewer.jsx semi-broken 2020-04-29 11:00:42 -04:00
htmlViewer.jsx semi-broken 2020-04-29 11:00:42 -04:00
imageViewer.jsx Open ZoomableImage viewer when clicking on the image 2021-02-19 14:05:51 -05:00
pdfViewer.jsx semi-broken 2020-04-29 11:00:42 -04:00