Skip to content

feat: add isNextEnabled and isPreviousEnabled to MediaSession#278

Merged
lars-berger merged 2 commits into
glzr-io:mainfrom
OliW07:feat/MediaSession-playback-controls
Mar 31, 2026
Merged

feat: add isNextEnabled and isPreviousEnabled to MediaSession#278
lars-berger merged 2 commits into
glzr-io:mainfrom
OliW07:feat/MediaSession-playback-controls

Conversation

@OliW07
Copy link
Copy Markdown
Contributor

@OliW07 OliW07 commented Mar 30, 2026

Summary

Motivation

Not all playback sessions support skip next/previous. Users need this information to conditionally render skip buttons in their UI.

Changes

  • packages/desktop/src/providers/media/media_provider.rs: Added fields to MediaSession struct and updated update_playback_info() to populate them
  • packages/client-api/src/providers/media/media-provider-types.ts: Added TypeScript type definitions for the new fields

Testing

Tested with Spotify & Youtube playing - fields correctly reflect whether next/previous controls are available.

@github-project-automation github-project-automation Bot moved this to 📬 Needs triage in zebar Mar 30, 2026
@lars-berger
Copy link
Copy Markdown
Member

@OliW07 super nice! thank you 🙏

macOS build failure is unrelated, so that's no prob

@lars-berger lars-berger merged commit 6aa335f into glzr-io:main Mar 31, 2026
5 of 6 checks passed
@github-project-automation github-project-automation Bot moved this from 📬 Needs triage to ✅ Done in zebar Mar 31, 2026
@OliW07 OliW07 deleted the feat/MediaSession-playback-controls branch March 31, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add isNextEnabled and isPreviousEnabled to MediaSession

2 participants