Skip to content

[Bug] Failure to play and other bugs when resuming after paused for a long time #2116

@nomino3390

Description

@nomino3390

Checklist

  • I make sure that the issue is NOT a duplicate of pinned issues
  • I make sure I am using the LATEST version - check here
  • I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed
  • I have attached the error report in the issue

Describe the bug

After having pipepipe paused for a long time, such as an hour or more, and pressing the play button to resume the current playlist on the lock screen widget or in the app, pipepipe either tries and fails to resume the same video or incorrectly restarts the playlist. Often, it will try to play each video starting at the beginning of the playlist and moving down. This is visible because they are highlighted that way in the "current playlist" view. It either stops advancing and one video will finally play, or it will advance forever and none will play.

Then manually giving pipepipe a new playlist by pressing "play" or "background" on a bookmarked playlist works. You may have to tap “X” on the current playlist before doing that though. Because manually restarting the playlist works, this is undeniably a bug in pipepipe and not YouTube, because pipepipe is clearly capable of running code to resume the current video in the current playlist properly, it's just been programmed not to. It knows what the correct current video and current playlist are because you can still see it in the lock screen widget and in the pipepipe app.

When it bugs out this way and it happens to actually resume a random video, it also turns background play off if it was running before. Pressing the play button should never change the background play setting, that's not what a play button does.

To summarize:

  1. Have a playlist of YouTube videos playing in background

  2. Pause

  3. Wait at least 30 minutes or using other resource intensive apps might trigger this too

  4. Press play button

  5. pipepipe doesn't play the current video, sometimes won't play any at all

No error report is given by pipepipe.
Pipepipe 4.8.1
Android 14
Battery optimization for pipepipe is set to off (unrestricted)

When an audio app has audio paused in the lock screen widget, it is to remain there and playable until manually removed or the phone is reset. Regardless of battery optimization setting. If the user keeps it in the widget, that means they are actively choosing for it to be active and it doesn't make any sense for it to time out or for battery optimization to break it. Any other behavior is a bug.

Frequency

Always (100% of the time)

Device

No response

Steps to reproduce the bug

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions