2 ms·
While you have chromecast_mpris running, you can use an MPRIS client to issue the OpenUri method[1]. Here's an example: $ export URL="http://ccmixter.org/c
by this_machine 6y ago
While you have chromecast_mpris running, you can use an MPRIS client to issue the OpenUri method[1]. Here's an example:
$ export URL="http://ccmixter.org/content/gmz/gmz_-_Parametaphoriquement.mp3"
$ playerctl -p My_Chromecast open "$URL"
This will cast a song to the Chromecast named "My_Chromecast". I forgot that OpenUri was implemented in the project because I typically cast from other devices and programs, but I'll include it in the README.
> Thoughts on what this provides that's better?
People tend to use catt or castnow to cast from the command-line. I wrote about using VLC to cast to the Chromecast[2], but I wouldn't recommend it unless you're watching something that you need VLC for.
[1] https://specifications.freedesktop.org/mpris-spec/2.2/Player_Interface.html#Method:OpenUri https://specifications.freedesktop.org/mpris-spec/2.2/Player...
[2] https://alexdelorenzo.dev/linux/2020/03/14/pipes https://alexdelorenzo.dev/linux/2020/03/14/pipes