Media player control on Windows
Closed, ResolvedPublic

Description

On Linux we make use of MPRIS for media player control.
MPRIS is not available on Windows.

A very simple implementation would be to emulate the Play/Pause/Next/Previous multimedia keys that some keyboards have.

jambon added a subscriber: jambon.Nov 6 2018, 11:58 PM

Unfortunately there is no standard way to control media players on Windows. There is a standard API for media players(ISystemMediaTransportControls) but there's no way to query it since it's per app. I think simulating VK_MEDIA key presses maybe our only option.

https://docs.microsoft.com/en-us/windows/uwp/audio-video-camera/system-media-transport-controls
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/mediatransport/media-transport-controls-portal

albertvaka updated the task description. (Show Details)Nov 19 2018, 10:37 AM
albertvaka updated the task description. (Show Details)

Is this what we want? https://docs.microsoft.com/en-us/uwp/api/windows.media.systemmediatransportcontrols

Otherwise, we can go with fake VK_MEDIA keys input for now

nicolasfella closed this task as Resolved.Mar 24 2019, 8:21 PM
nicolasfella claimed this task.