EricAndrechek / homebridge-display

Homebridge-Display, a Homebridge plugin that allows you to control and view Spotify, see the weather forecast and current conditions, see news articles, control some Homebridge devices, and much, much more!
MIT License
126 stars 5 forks source link

Apple Music display and control widget #28

Open EricAndrechek opened 4 years ago

EricAndrechek commented 4 years ago

Widget to control Apple Music and show playback info

EricAndrechek commented 3 years ago

Unfortunately, it doesn't look like Apple Music provides an API to control music playback from other devices. I plan to integrate some of the AppleScript code from homebridge-music as a workaround for this problem for anyone with a Mac.

MReprogle1 commented 2 years ago

@EricAndrechek Just wondering if there was any kind of update on this after Apple slightly opened things up with an API for Music called MusicKit. I don't know enough about these things but it does seem promising based on what they are saying. https://developer.apple.com/videos/play/wwdc2022/10148/

It'd also be awesome if there was Airplay support. I think they used to have an API for it, and it'd be awesome to just "cast" stuff to the homebridge-display, especially if someone wanted to use this as a means to turn "dumb" speakers into airplay enabled speakers by connecting this display to an audio receiver (just spitballing at this point, but that'd be super cool if there was a way to do this).

EricAndrechek commented 2 years ago

@MReprogle1 Thanks for sending the link! It looks like this new API from Apple lets you play music on web pages and other devices using your account, and let's you proegrammitcly search for songs and artists, but I don't think it lets you actually control playback if the music is playing on a different device still.

One thing this could allow us to do is you could play music on your Homebridge-display device directly and then control it from your phone via another webpage, but that gets to be messy and complicated.

I am not really sure how opening it up to be an airplay client would work, especially because this functions as a webpage on the device and so I don't have access to all the special features an app may have, but I'll look into what may be possible.

Thanks for the feedback and suggestions!