tl;dr install cast_control to play/pause. Casting is unsupported.
I use a Chromecast to turn my dumb TV into a smart TV that plays Netflix and YouTube.
To use a Chromecast, I need to do two things:
- Cast videos to the Chromecast. I haven't figured out a way to do this via Linux Mobile, so for now I cast videos from my desktop computer.
- Play/pause the Chromecast. I can do this from my PinePhone on my couch. 🛋🍕 This post explains how.
Phosh supports Media Player Remote Interfacting Specification (MPRIS), so all I needed was a daemon that implemented MPRIS for Chromecast.
Fortunately, cast_control already does this, and upon following its instructions, it worked! Simple!
Thanks to the developer Alex!