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

[BUG] Wrong song/video playing when exiting and re-opening the app #234

Open
mattiamazzari opened this issue Jun 24, 2024 · 4 comments
Open

Comments

@mattiamazzari
Copy link

mattiamazzari commented Jun 24, 2024

When switching to a different YouTube track/video, after a while it starts playing the previous track which replaces totally the current one, this happens specifically when we try moving forwards the current one, we exit from the app without closing it and we go back to the app. At this point the current track cannot be recovered anymore, so from now on by moving forward or backwards in different parts of the song it still affects the previous song and not the one which should be actually playing.

Expected Behavior

The current shown track should be playing.

Current Behavior

While actually showing the right track (the new one) in the UI when I go back to the app, when moving forward in the timeline the previous track starts playing (even though the UI shows the latest one).

Steps to Reproduce

  1. Play a YouTube track as audio only
  2. Select another video / track
  3. Exit from the app (background playback activated)
  4. Go back to the app and move forward in the timeline. You should be able to listen the previous track while in the UI it shows that the latest is actually playing.

Screenshots

Logs

logs_2.5.6_240522118 (2).txt
logs_clean_2.5.6_240522118 (2).txt

Possible Solution

@mattiamazzari mattiamazzari changed the title [BUG] Wrong song/video playing [BUG] Wrong song/video playing when exiting/entering the app Jun 24, 2024
@mattiamazzari mattiamazzari changed the title [BUG] Wrong song/video playing when exiting/entering the app [BUG] Wrong song/video playing when exiting and re-opening the app Jun 24, 2024
@MSOB7YY
Copy link
Member

MSOB7YY commented Jun 24, 2024

thanks for the awesome detailed report, i tried reproducing but everything just worked fine. im using this version btw https://github.com/namidaco/namida-snapshots/releases/tag/2.7.8-beta%2B240624182 , i did some refactoring and rewrite for some playback parts since v2.5.6 so it might be possible that it got fixed. is this issue always reproducable for you? if thats the case can u then try the v2.7.8 and check if it still has the issue

@mattiamazzari
Copy link
Author

mattiamazzari commented Jun 24, 2024

With this beta version (v2.7.8) the problem seems to be fixed, but I am experiencing more lagging in loading the videos even though my Internet connection is good (both with 4G and with WiFi), although the app does not have limitations in the permissions. However, I consider the issue closed as the bug seems to be fixed. Thanks for the help 👍🏻

@MSOB7YY
Copy link
Member

MSOB7YY commented Jun 24, 2024

@mattiamazzari glad its fixed, as for the lag, it seems to be from video side only. im curretly rewriting the video caching to use the same implementation as the audio. thanks for trying it and reporting too ^^

@MSOB7YY MSOB7YY reopened this Jul 5, 2024
@MSOB7YY
Copy link
Member

MSOB7YY commented Jul 5, 2024

I was able to reproduce it, the issue was due to a fallback to old audio source when the video playback have issue, should investigate or just reimplement the whole thing along with #252

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants