Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotating phone while video loading stops loading video #8152

Open
5 tasks done
emjas92 opened this issue Apr 5, 2022 · 5 comments
Open
5 tasks done

Rotating phone while video loading stops loading video #8152

emjas92 opened this issue Apr 5, 2022 · 5 comments
Labels
bug Issue is related to a bug player Issues related to any player (main, popup and background)

Comments

@emjas92
Copy link

emjas92 commented Apr 5, 2022

Checklist

  • I am able to reproduce the bug with the latest version.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected version

0.22.1

Steps to reproduce the bug

  1. Ensure auto-rotate is enabled
  2. Start playing a video in portrait mode
  3. Minimise video by swiping down
  4. Select another video
  5. While the video is loading, rotate the phone to landscape

Expected behavior

Newly selected video loads and plays.

Actual behavior

The previous video remains shown and the selected video is forgotten.

It seems like the new video is not 'saved' to the view before the view gets reloaded in landscape mode.

Screenshots/Screen recordings

MP4_20220405_231752.mp4
MP4_20220405_232241.mp4

Logs

No response

Affected Android/Custom ROM version

LineageOS 17.1

Affected device model

Nokia 6.1

Additional information

Sometimes the new video is loaded in landscape mode if the current one was paused

@emjas92 emjas92 added the bug Issue is related to a bug label Apr 5, 2022
@opusforlife2 opusforlife2 added the player Issues related to any player (main, popup and background) label Apr 8, 2022
@GGAutomaton
Copy link
Contributor

I would like to work on this issue.

@GGAutomaton
Copy link
Contributor

It seems that somebody considered this before.

// They are not equal when user watches something in popup while browsing in fragment and
// then changes screen orientation. In that case the fragment will set itself as
// a service listener and will receive initial call to onMetadataUpdate()
if (!queue.equals(playQueue)) {
return;
}

But this does not work since queue is always equal to playQueue after being updated by onQueueUpdate().

notifyQueueUpdateToListeners();
notifyMetadataUpdateToListeners();

Simply swapping them does not take effect.

I'm afraid that I could not fix it. The update logic is quite complex and I don't know if there is a good way to fix it.
Sorry for that.

@opusforlife2
Copy link
Collaborator

No worries. 👍

@wildwestrom
Copy link

wildwestrom commented Dec 5, 2022

Glad there's already an issue.

"The update logic is quite complex..."

That's a problem. I've never done android apps before so it would take me a long time to figure out how everything works.

@seniorm0ment
Copy link

Made a note here about a similar issue. Hope it gets fixed soon, it is a very frustrating bug that makes it difficult to just use the app and has been around for months.
#9643 (comment)

@SameenAhnaf SameenAhnaf mentioned this issue Apr 26, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug player Issues related to any player (main, popup and background)
Projects
None yet
Development

No branches or pull requests

5 participants