lbry-desktop/ui
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
..
component Change poster-fetch implementation 2022-06-16 15:18:15 -04:00
constants Tip: show modal instead of toast when timeout 2022-06-01 08:40:39 -04:00
contexts Category: Hide "Repost" from ContentType filter, except for WildWest 2022-04-25 08:49:46 -04:00
effects Change poster-fetch implementation 2022-06-16 15:18:15 -04:00
modal Help hints + channel removal 2022-06-06 16:53:36 -04:00
page Change poster-fetch implementation 2022-06-16 15:18:15 -04:00
redux Bugfix live status state (#1689) 2022-06-14 09:33:56 -04:00
scss Allow capture of name during adding of card (#1657) 2022-06-14 09:21:47 -04:00
util Revert "DRY: fix duplicate code for Recommended key generation" 2022-06-01 09:55:56 -04:00
analytics.js Fix localStorage crash 2022-05-26 08:27:35 -04:00
app.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
comments.js Remove custom comments server 2022-02-03 10:24:58 -05:00
i18n.js Add env to auto report new strings in console 2022-01-05 00:26:31 -08:00
index.jsx 1318: Persist recsys data for send after tab close 2022-05-24 13:52:50 -04:00
lbry.js Tip: show modal instead of toast when timeout 2022-06-01 08:40:39 -04:00
logWarningConsoleMessage.js new lbc icon 2020-09-29 17:12:32 -04:00
native.js working 2020-12-16 10:52:22 -05:00
reducers.js Support resume-able upload via tus (#186) 2021-11-10 13:16:16 -05:00
rewards.js Change logic for daily reward claiming to weekly 2021-12-23 02:40:58 -05:00
store.js 1318: Persist recsys data for send after tab close 2022-05-24 13:52:50 -04:00