wordpress-mobile / wordpress-mobile/WordPress-Android

Media Picker: Load video thumbnails for large videos

Open
#15,443 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Enhancement Media
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Thumbnails for large videos cannot be previewed in the media picker. This is because the app uses Glide to load thumbnails which starts loading the whole video and allocates memory in order to keep it. This leads to OOM when the size is greater than the available memory. The app adds a check for video size (< 10MB) to avoid this OOM.

See PR #14085 for more details.

The goal of this task is to find out a way to load video thumbnails for large videos.

Steps to reproduce the behavior
  1. Go to a site with some big videos uploaded
  2. Go to My Site/Media
  3. Notice the big videos don't show a thumbnail, instead you can see a grey background (in the light mode)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing PR #14085 and reproducing the issue in the WordPress Android media picker with a video larger than 10 MB. Trace how Glide loads video thumbnails and identify an approach that avoids the out-of-memory behavior while still showing previews for large videos. Done means large videos display thumbnails without exhausting available memory.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
mobile-dev
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.