keredson / gnomecast

Chromecast local files from Linux - supports MKV, subtitles, 5.1 sound and 4K!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MPRIS support for system media controller

dmoltisanti opened this issue · comments

Hi! First of all, thank you very much for gnomecast, I find it so much better than VLC at casting videos!

It would be really cool if gnomecast supported MPRIS so that other applications (like KDE Connect) can control the playback.

This would especially be cool for the aforementioned KDE connect, since with the Android app you can pause and control any MPRIS-compatible player via your phone, which is fantastic when the pc is far from the couch you sit on :)

I'm not entirely sure MPRIS is what is needed to expose the playback controls to the system, but it seems that it is the case. I also found this python library that perhaps could help.

PS: I'm aware that you can pause/resume anything playing on the Chromecast via the Google home app, however while it worked at first, after a few minutes of streaming the home app doesn't let me pause anymore. The video plays fine and the home app shows something is playing but pause won't work.

Thanks!

that sounds like an excellent idea!

Thanks, that is a nice extension. However, I tried with Gnomecast and it doesn't work.

It seems like that extension intercepts MPRIS players and enables playback controls of these, much like KDE Connect does.

Because Gnomecast doesn't expose its playback to MPRIS then again you can't control it with this extension either :) (please correct me if I'm wrong!)

This library could probably help: https://pypi.org/project/mpris-server/