Automattic / Automattic/jetpack

VideoPress: take advantage of the edit-when-uploading to store the video sizes

Open
#26,071 0 comments 0 reactions 0 assignees View on GitHub
[Package] VideoPress [Pri] Low [Status] Stale
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

![Image](https://user-images.githubusercontent.com/77539/188724418-495379e5-03f4-4ae3-8456-e80fd846cbbb.png)

Maybe we can get the video size initially, even before to get uploaded. It would be nice to store the size in the block attribute to reduce the jumps when rendering the block.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the VideoPress block's edit-when-uploading flow and how its block attributes are used while rendering. Determine where the video size becomes available before upload completes and define the rendered behavior that should avoid layout jumps. Done means the size is stored in the block attribute early enough to reduce those jumps.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.