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

[Feature Request] Add isNextEnabled and isPreviousEnabled to MediaSession #188

Open
za722-ic opened this issue Jan 4, 2025 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed type: feature New feature or request

Comments

@za722-ic
Copy link

za722-ic commented Jan 4, 2025

Describe the problem/motivation

We currently have the ability to skip to the next track or previous track using the media provider's next and previous functions. However, not all playback sessions have a next/previous option available. Having that information in the MediaSession would be useful as then someone could e.g. disable the skip next button in their UI if isNextEnabled is false.

image

Describe the solution you'd like

The GSMTC class has a GetPlaybackInfo() function, which returns an instance of GlobalSystemMediaTransportControlsSessionPlaybackInfo, which has a Controls property. In that Controls property, we have isNextEnabled and isPreviousEnabled. Having these values easily accessible in Zebar's MediaSession would be great!

Alternatives considered

No alternatives considered.

@za722-ic za722-ic added the type: feature New feature or request label Jan 4, 2025
@github-project-automation github-project-automation bot moved this to 📬 Needs triage in zebar Jan 4, 2025
@lars-berger lars-berger added help wanted Extra attention is needed good first issue Good for newcomers labels Feb 10, 2025
@lars-berger lars-berger moved this from 📬 Needs triage to 📋 Available in zebar Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed type: feature New feature or request
Projects
Status: 📋 Available
Development

No branches or pull requests

2 participants