lbry-desktop/ui/component/viewers/videoViewer/internal
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
..
effects Reuse videojs instance between video reload, return mobile UI plugin for iOS (#1512) 2022-06-10 12:18:58 -04:00
plugins Recsys: improve data stashing frequency 2022-06-24 16:54:55 +08:00
ads.js MAKE ODYSEE EVEN MORE BEAUTIFUL (#539) 2022-02-11 13:50:55 -05:00
chapters.jsx Reuse videojs instance between video reload, return mobile UI plugin for iOS (#1512) 2022-06-10 12:18:58 -04:00
chromecast.js Fix chromecast title handling (#1685) 2022-06-14 00:34:35 -04:00
lbry-playback-rate.js Playback-rate: fix popup behavior (#1650) 2022-06-13 15:55:05 +02:00
lbry-volume-bar.js LbryVolumeBarClass: add documentation 2022-06-07 11:09:03 +08:00
overlays.js Add percentage video duration keybinds› 2022-03-29 22:39:01 -04:00
play-next.js Reuse videojs instance between video reload, return mobile UI plugin for iOS (#1512) 2022-06-10 12:18:58 -04:00
play-previous.js Reuse videojs instance between video reload, return mobile UI plugin for iOS (#1512) 2022-06-10 12:18:58 -04:00
videojs-events.jsx Reuse videojs instance between video reload, return mobile UI plugin for iOS (#1512) 2022-06-10 12:18:58 -04:00
videojs-functions.jsx Reuse videojs instance between video reload, return mobile UI plugin for iOS (#1512) 2022-06-10 12:18:58 -04:00
videojs-shortcuts.jsx Variable naming and doc cleanup 2022-06-07 11:19:55 +08:00
videojs.jsx Handle browsers that don't support IntersectionObserver (#1739) 2022-06-23 08:10:27 -04:00