homebridge-display icon indicating copy to clipboard operation
homebridge-display copied to clipboard

Apple Music display and control widget

Open EricAndrechek opened this issue 4 years ago • 3 comments

Widget to control Apple Music and show playback info

EricAndrechek avatar Sep 03 '20 13:09 EricAndrechek

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.

EricAndrechek avatar Dec 08 '20 00:12 EricAndrechek

@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).

MReprogle1 avatar Jul 18 '22 19:07 MReprogle1

@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!

EricAndrechek avatar Jul 23 '22 13:07 EricAndrechek