TeamNewPipe / NewPipe

A libre lightweight streaming front-end for Android.
https://newpipe.net
GNU General Public License v3.0
31.39k stars 3.06k forks source link

Tapping on timestamp causes popup player to start from beginning #11302

Open wb9688 opened 3 months ago

wb9688 commented 3 months ago

Checklist

Affected version

0.27.1

Steps to reproduce the bug

  1. Open a video
  2. Go to comments
  3. View replies of a comment
  4. Tap a timestamp in a reply

Expected behavior

The video starts in the popup player from that timestamp.

Actual behavior

The video starts in the popup player from the beginning.

Screenshots/Screen recordings

No response

Logs

No response

Affected Android/Custom ROM version

Android 13

Affected device model

moto g52

Additional information

No response

wb9688 commented 3 months ago

This is not specific to clicking on it in a reply, so I updated the title.

Thompson3142 commented 4 days ago

Does that also happen once you have started the video? I can only reproduce this if either:

  1. I have autoplay disabled and click on a timestamp before starting the video
  2. I have played the video - opened a timestamp - closed it without resuming the video - open a timestamp again (can be the same)

If that is the case i probably know the issue: The playQueue in Player is null if a timestamp "starts" the player since initPlayback was never called. If handleIntent is called on a "fresh" (initPlayback was never called) Player object it can't handle timestamps since in the big if (in line 393) the playQueue is needed to create a pop-up with timestamp.