FeelUOwn icon indicating copy to clipboard operation
FeelUOwn copied to clipboard

接入系统的媒体播放控制

Open reaink opened this issue 2 years ago • 2 comments

image 如网易云音乐播放器/浏览器 播放媒体时均可在系统控制处见暂停,上/下一曲,也可以用键盘快捷键来切歌暂停

reaink avatar May 11 '22 05:05 reaink

@reaink 支持

BruceZhang1993 avatar May 11 '22 07:05 BruceZhang1993

Two demos have been implemented. One is written in pyobjc and the other is written in swift. https://gist.github.com/cosven/22c519d7d82a5c205824d0258dc531a5 https://gist.github.com/cosven/71684e2e08ec07073d418e16cd2dba47

feeluown can't use the pyobjc code directly. One problem is that macOS nowplaying should run with it's own event loop, and it seems the event loop must be run in main thread https://github.com/ronaldoussoren/pyobjc/issues/471.


Another solution is running the pyobjc code in a seperate process. It communicates with feeluown process through RPC/pubsub, just like fust does.

cosven avatar May 12 '22 02:05 cosven

已经在 #674 中支持。

cosven avatar Apr 30 '23 03:04 cosven