lbry-desktop/ui/effects
infinite-persistence df2a717e8d Change poster-fetch implementation
## Ticket
1526: strange thumbnail size requested on mobile layout (pc only?)

## General Problem
It was trying to fetch based on the exact size of the video container, which would satisfy Core Vitals (in an overkill way), but would bring several issues:
- server-side caching would not work since everyone's window size is different in a responsive layout design.
- the additional 200ms wait for container size to settle down is not good (hardcoded wait time).
- the code did not account for device-pixel-ratio, so it's quite a futile effort.

Aside:  In the past, we used to take the same image url as the tiles, so the video poster would appear immediately from due to browser cache, but the quality is bad because the tile requested a much smaller size.

The embed wrapper was not going through the CDN either as a null `containerRef` was passed in.

## Change
Removed the container-size check and just request for 1280x720. Reasons for this size:
- On average, that would be the ballpark of the final calculated value anyway for the average screen (+DPR consideration).
- That seems to be the current suggested thumbnail size in most recommendations.
- Our YT Sync is grabbing a much smaller size anyway.
2022-06-16 15:18:15 -04:00
..
use-claimList-infinite-scroll.js ClaimList: Factor out infinite-scroll and batch-resolve handling into an effect. 2022-05-16 07:57:24 -04:00
use-combined-refs.js fixes button hover 2019-11-19 16:28:59 -05:00
use-connection-status.js Fix "you are offline" nag being stuck 2021-12-22 12:41:05 +08:00
use-debounce.js Add channel list filter 2022-02-01 10:20:00 -05:00
use-drag-drop.js Paste/drop images directly to markdown editor 2022-04-01 12:36:49 -04:00
use-fetch-live.js Remove polling, still happen on channel pages (#1558) 2022-06-09 14:43:45 -04:00
use-fetch-view-count.js Membership subscriptions (#812) 2022-03-09 13:05:37 -05:00
use-fetched.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
use-get-ads.js fetch ads provider for all homepage videos (but still only show ads for unauth users) 2021-04-26 16:38:33 -04:00
use-get-last-visible-slot.js Generalize useGetLastVisibleSlot 2022-04-18 19:06:02 +08:00
use-get-poster.js Change poster-fetch implementation 2022-06-16 15:18:15 -04:00
use-get-thumbnail.js useGetThumbnail: fetch streaming_url instead of generating it. 2022-05-13 18:19:20 +08:00
use-get-user-memberships.js cleanup 2022-03-22 16:07:05 -04:00
use-hover.js fix: better hover use-effect 2020-04-23 13:10:41 -04:00
use-interval.js Switch unnecessary let to const 2022-03-02 20:20:27 -08:00
use-is-mounted.js prevent state updates after component unmounted 2020-05-13 10:18:36 -04:00
use-lazy-loading.js Fallback image for <FileThumbnail> 2021-08-17 19:46:54 -07:00
use-lighthouse.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
use-on-resize.js fix useScreensize 2022-02-07 10:18:50 -05:00
use-persisted-state.js MAKE ODYSEE EVEN MORE BEAUTIFUL (#539) 2022-02-11 13:50:55 -05:00
use-play-next.js Improve livestream claimLink embeds 2022-03-16 16:36:50 -04:00
use-previous.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
use-resolve-pins.js Swap pinnedUrls vs. pinnedClaimIds precedence 2022-04-01 11:35:29 -04:00
use-screensize.js Remove isTouch from use-screensize.js -- it's not an effect 2022-04-14 10:29:01 -04:00
use-should-show-ads.js Fix stale-closure in ad-detection code 2022-05-30 19:03:20 +08:00
use-stream-file.js prevent state updates after component unmounted 2020-05-13 10:18:36 -04:00
use-stream.js flow fixes 2020-12-16 10:52:22 -05:00
use-throttle.js Refactor channelMention suggestions into new textareaSuggestions component 2021-12-09 15:35:40 -05:00
use-tween.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00