wordpress-mobile / wordpress-mobile/WordPress-Android

Reader: VideoPress videos are reset when rotating the device

Open
#18,821 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Expected behavior

When playing a VideoPress video in the Reader, it should preserve its playing status independently of rotating the device.

Actual behavior

When rotating the device, VideoPress videos played from the Reader are reset including the ones being currently played. This gets worse when playing the video fullscreen, as it dismisses when rotating. This means that the user needs to play it from the start and go fullscreen again.

Steps to reproduce the behavior
  1. Open a post that contains a VideoPress video in the Reader.
  2. Tap on the video to play it.
  3. Rotate the device.
  4. Observe the video is reset.

https://github.com/wordpress-mobile/WordPress-Android/assets/14905380/c65b1856-8105-4ef8-84b3-ef6786b7dc1b

Tested on Samsung Galaxy S20 FE 5G, Android 13, JPAndroid / WPAndroid 22.8-rc-3

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

No source file or test is named. First reproduce the reset by opening a Reader post with a VideoPress video, playing it, and rotating the device; then search the Reader and VideoPress Android implementation for the rotation-related lifecycle path. Done means playback state, position, and fullscreen status are preserved across rotation.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.