Skip thumbnail fetch if autoplay is ON #6084

Merged
infinite-persistence merged 1 commit from ip/no.thumbnail.for.autoplay into master 2021-05-18 07:48:24 +02:00
infinite-persistence commented 2021-05-18 06:09:10 +02:00 (Migrated from github.com)

It's useful to show the thumbnail as the player's backdrop when Video Autoplay is OFF, but it's a wasted fetch when it's ON because the videojs component will be blocking it.

Although it's the same image as the ClaimPreview, this one will be in full size, so a fetch will always happen.

Aside: videojs handles the backdrop for the audio and embed case, so this change won't affect those items.

  <VideoJs
    poster={isAudio || (embedded && !autoplayIfEmbedded) ? thumbnail : ''}
  />

Future: for "mobile + autoplay=OFF", we should consider using the optimized thumbnail. 6074 should help.

It's useful to show the thumbnail as the player's backdrop when Video Autoplay is OFF, but it's a wasted fetch when it's ON because the videojs component will be blocking it. Although it's the same image as the ClaimPreview, this one will be in full size, so a fetch will always happen. Aside: videojs handles the backdrop for the audio and embed case, so this change won't affect those items. ``` <VideoJs poster={isAudio || (embedded && !autoplayIfEmbedded) ? thumbnail : ''} /> ``` Future: for "mobile + autoplay=OFF", we should consider using the optimized thumbnail. 6074 should help.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#6084
No description provided.