[Feature Request] Add isNextEnabled and isPreviousEnabled to MediaSession #188
Labels
good first issue
Good for newcomers
help wanted
Extra attention is needed
type: feature
New feature or request
Describe the problem/motivation
We currently have the ability to skip to the next track or previous track using the media provider's
next
andprevious
functions. However, not all playback sessions have a next/previous option available. Having that information in theMediaSession
would be useful as then someone could e.g. disable the skip next button in their UI ifisNextEnabled
is false.Describe the solution you'd like
The GSMTC class has a
GetPlaybackInfo()
function, which returns an instance ofGlobalSystemMediaTransportControlsSessionPlaybackInfo
, which has aControls
property. In thatControls
property, we haveisNextEnabled
andisPreviousEnabled
. Having these values easily accessible in Zebar'sMediaSession
would be great!Alternatives considered
No alternatives considered.
The text was updated successfully, but these errors were encountered: