lbry-desktop/ui/component/viewers/videoViewer/internal
infinite-persistence 7cbb7a54aa
Handle browsers that don't support IntersectionObserver (#1739)
* Remove ad-handling in videojs.jsx

Primary impetus is to remove unnecessary IntersectionObserver usage, but it should be removed anyway because:
- no longer relevant today with Adnimation's script.
- we also globally hide floating ads now, so no more invisible divs.
- the code is wrongly placed -- it's not the responsibility of the Videojs component.

* use-lazy-loaded: skip if IntersectionObserver is not supported

## Issue
Page not loading in older Safari (e.g. ipad air 2)

## Approach
Instead of using a polyfill (which comes with implementation caveats), just not apply the lazy-loading for those old browsers. Not lazy-loading is better than not loading at all, plus this is way easier to test (even by just reading the code) than testing out the polyfill implementation's caveats.

The cons is we would need the polyfill if we use it in other places in the future.

## Code Changes
Factor out the src-setting code, and use it directly when IntersectionObserver is not found.
2022-06-23 08:10:27 -04:00
..
effects Reuse videojs instance between video reload, return mobile UI plugin for iOS (#1512) 2022-06-10 12:18:58 -04:00
plugins dont show quality selector with default quality on non transcoded (#1670) 2022-06-10 14:48:48 -04: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