Skip to content

Conversation

@PikachuEXE
Copy link
Collaborator

@PikachuEXE PikachuEXE commented Oct 7, 2025

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

Extracted from #8047 (except the update of Playing Next Video Interval part
If this is merged before #8094, that PR requires a minor fix, if reversed, this PR should be updated
Closes #2340

Description

Count down message (e.g. Playing next video in N seconds) currently implement as series of toasts shown 700ms (per 1s)
This PR just make the toast show for N seconds and update message every second (hardcoded to be 1s as no use case requires otherwise)

Screenshots

Lazy, test yourself :)

Testing

  • Use magic to spawn a playlist with >= 2 videos
  • Play non-last one, enable autoplay if necessary, skip to near the end
  • Watch countdown works and clicking on it still cancels

Desktop

  • OS:
  • OS Version:
  • FreeTube version:

Additional context

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) October 7, 2025 01:00
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 7, 2025
@efb4f5ff-1298-471a-8973-3d47447115dc
Copy link
Member

efb4f5ff-1298-471a-8973-3d47447115dc commented Oct 7, 2025

hmm maybe i'm interpreting this wrong but doesnt this kind of addresses #2340? It doesnt fade anymore so i think that can be closed

@PikachuEXE
Copy link
Collaborator Author

Updated description for #2340

Copy link
Member

@absidue absidue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the jsdoc for the showToast function in src/renderer/helpers/utils.js to match the type changes here.

interval: 0,
id: idCounter++
}
time = time || 3000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
time = time || 3000
time ||= 3000

@PikachuEXE
Copy link
Collaborator Author

Updated

@absidue
Copy link
Member

absidue commented Oct 8, 2025

Sorry I missed it justing my first review, could you please also update the onBeforeUnmount hook in the FtToast component to clear any active intervals. After that it should be good to go.

@PikachuEXE
Copy link
Collaborator Author

I introduced cleanup to avoid repeating the cleanup logic

@FreeTubeBot FreeTubeBot merged commit fce7c3b into FreeTubeApp:development Oct 10, 2025
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 10, 2025
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Oct 11, 2025
* development:
  Update next video countdown toast to be refreshed per second instead of using workaround (FreeTubeApp#8103)
  Remove unused supportsYtdlProtocol from the external player map file (FreeTubeApp#8107)
  Translated using Weblate (Dutch)
  Translated using Weblate (Spanish)
  Translated using Weblate (Spanish)
  Translated using Weblate (Spanish)
  Translated using Weblate (Hebrew)
  Hide Proxy password (FreeTubeApp#8102)

# Conflicts:
#	src/renderer/components/FtToast/FtToast.vue
@efb4f5ff-1298-471a-8973-3d47447115dc

@PikachuEXE There is a bug in the autoplay logic. Autoplay toast counts down while next video is already loading if countdown is set to 0 in the Player settings.

VirtualBoxVM_b3JKT7jfnQ.mp4

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

Successfully merging this pull request may close these issues.

[Feature Request]: Change the default time for “next video”-notification to 1 second, excluding fading in and fading out

5 participants