wordpress-mobile / wordpress-mobile/WordPress-Android
Media Gallery Has No Video Thumbnails
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 3.2k
- Forks
- 1.4k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 69
Description
Expected behavior
The Media Gallery displays video thumbnails.
Actual behavior
The Media Gallery displays gray placeholders for all videos. Clicking on a video brings up the detail screen and displays a "Media Thumbnail could not be loaded" message. The network inspector shows a bunch of 403 unauthorized errors trying to fetch the thumbnails.
If I use the media picker from the editor, I do see many of the video thumbnails (not all of them, but I think that's due to the video size as discussed in https://github.com/wordpress-mobile/WordPress-Android/issues/15443).
Also, the previews loaded as expected on WPiOS 19.1.0.20220124.
Steps to reproduce the behavior
- Log into an account with videos in the media library.
- Tab the Media Button
- Tap the Videos tab
- Observe no thumbnails are shown
- Tap on one of the videos
- Note that the detail screen does not show the video's thumbnail and there is a toast saying "Media Thumbnail could not be loaded"
https://user-images.githubusercontent.com/4656348/151605610-d43ff5f3-8d78-4224-917c-17485ed6e7fe.mp4
Tested on Pixel 6 Pro and Pixel 3, Android 12, WPAndroid alpha-339 (1159)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Media Gallery flow on Android with an account containing videos, then inspect the thumbnail requests that return 403 errors. Trace the Media Gallery and video detail thumbnail-loading path; the work is done when video thumbnails appear in the Videos tab and detail screen without the loading-error toast.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100