mpv-player / mpv

šŸŽ„ Command line video player
https://mpv.io
Other
28.29k stars 2.9k forks source link

Windows: add native support for SystemMediaTransportControls #14007

Closed dyphire closed 2 months ago

dyphire commented 6 months ago

Expected behavior of the wanted feature

Ref: https://learn.microsoft.com/en-us/uwp/api/windows.media.systemmediatransportcontrols

mpv has already implemented similar native media control support on the MacOS platform, and it is hoped that SMTC's native support can also be obtained on Windows. Adding support for SMTC can obtain the system media control function of Bluetooth devices, mainly Bluetooth earphones. ref https://github.com/mpv-player/mpv/issues/10606

Currently, there has a MPVMediaControl script that implements third-party support. But there are obvious limitations to this: this script implements SMTC function through mpv's IPC pipeline, causing conflicts with other scripts and software that utilize mpv's IPC pipeline function; At the same time, the binary files it relies on will be resident in the background, which can also cause some problems. This makes mpv's native support for SMTC functionality particularly important, as it can avoid these limitations in scripts.

Alternative behavior of the wanted feature

n/a

Andarwinux commented 6 months ago

ref; https://code.videolan.org/videolan/vlc/-/merge_requests/3010

The current MinGW cross CI does not meet the minimum requirements for cppwinrt.