Skip to content

Added Apple Music Support - #560

Open
MultiDrew97 wants to merge 15 commits into
dlrudie:masterfrom
MultiDrew97:master
Open

Added Apple Music Support#560
MultiDrew97 wants to merge 15 commits into
dlrudie:masterfrom
MultiDrew97:master

Conversation

@MultiDrew97

Copy link
Copy Markdown

This doesn't exactly use any Apple Music APIs or anything at the moment, but does reliably get track information using the windows Media Transport control APIs that are used for things like the overlay for windows itself. I just saw the project and knew how small Apple Music reach was and being one of the 2 in the world that codes and has Apple Music, figure I'd help out.

This was tested on my Windows 11 desktop using Apple Music installed from Microsoft Store. It reliably (as reliably as 1-machined) pulls the track information and uses the supplied functions to output the information as expected from the program, and was tested with other plugins that rely on your main branch. I only slightly modified the Metadata writing in the update text function so that nothing breaks for anything else, but to also allow for updating the Metadata only without having to update everything together if not needed. It wasn't something that was needed; and it can be completely removed if wanted and I can update my one function that does call it; but thought it would be nice for any other plugins that may to allow for playtime info being added in as well without having to update all the text together.

Totally had a blast contributing for the first time and hope I did alright for your repo!

…ie#551 for integration. Now have to figure out how to get play info from AppleMusic api in Windows
…e for text updates and extra add on features for potential future changes or features
added docstrings for maintainers later if they wish to look at them

updated WaitForAction function to rely on Task instead of AsyncOperation for the better function flow
…data function instead of directly updating the file itself now

Made a new function in TextHandler called UpdateMetadata so that the metadata file can be updated without requiring to update the song info directly. This opens up adding other things like playtime for extra display capabilities.
Added Apple Music support information to README.
…s when no session is active

added cancellation token support for the asyn operations so that if the user switches modules, the tokens can also send a canellation out to stop those operations

updated to use custom enum for commands instead of relying on Globals.MediaCommand since it seems the rest of the project doesn't use it either in the manner I was at least
…m my AutoIncrement tool that I didn't notice messed with these. They AssemblyVerison was reverted to original value before starting and AssemblyFileVersion was left for was it was when finished

Updated Nuget for Microsoft.Windows.SDK.Contracts reference
@MultiDrew97
MultiDrew97 marked this pull request as ready for review July 29, 2026 18:48
@MultiDrew97 MultiDrew97 changed the title Apple Music Support Added Apple Music Support Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant