Is there any sign of an update to MusicKit JS? The 1.x version still seems to be the only one available despite updates to the iOS and MacOS SDKs. The 1.x version has been fairly unreliable for me and I've paused updates to Apple Music support in my app in hopes that a better version is coming soon.
Accepted Reply
Thank you for the question, @farleyja
MusicKit JS v3 is available now, but is labeled as ‘beta’. You can find details about this version at https://developer.apple.com/musickit/web/
We are actively working on finalizing this framework for developers. If there are any questions or feedback, please file a ticket at https://feedbackassistant.apple.com for us to consider. We appreciate input from our developers!
-
Thanks - I was aware of the beta v3 details out there on Storybook, but the details there seemed very preliminary, and they are not on parity with what is available in v1 SDK (e.g., there are no details on accessing the user's library, or accessing relationships across Apple Music entities, etc etc). Additionally, many of the examples still reference v1 API endpoints, which may mean that they will not be supported in MusicKit JS v3 SDK directly, or that they will but those details are still in development, etc.
If this v3 represents a change in paradigm, with MusicKit JS providing web components and music/video playback only, and all other functionality to be provided through APIs instead of SDK, then I can plan for that and the needed changes to my app. But that's not entirely clear here, so I'm not really willing to start refactoring to this model.
Can you provide more background on these details? And obviously some sense of anticipated timing of the v3 release would be helpful as well, but I know that's not likely.
Replies
Thank you for the question, @farleyja
MusicKit JS v3 is available now, but is labeled as ‘beta’. You can find details about this version at https://developer.apple.com/musickit/web/
We are actively working on finalizing this framework for developers. If there are any questions or feedback, please file a ticket at https://feedbackassistant.apple.com for us to consider. We appreciate input from our developers!
-
Thanks - I was aware of the beta v3 details out there on Storybook, but the details there seemed very preliminary, and they are not on parity with what is available in v1 SDK (e.g., there are no details on accessing the user's library, or accessing relationships across Apple Music entities, etc etc). Additionally, many of the examples still reference v1 API endpoints, which may mean that they will not be supported in MusicKit JS v3 SDK directly, or that they will but those details are still in development, etc.
If this v3 represents a change in paradigm, with MusicKit JS providing web components and music/video playback only, and all other functionality to be provided through APIs instead of SDK, then I can plan for that and the needed changes to my app. But that's not entirely clear here, so I'm not really willing to start refactoring to this model.
Can you provide more background on these details? And obviously some sense of anticipated timing of the v3 release would be helpful as well, but I know that's not likely.
Following up on my own post - it looks like the readme docs for beta V3 referenced above now clarify that the API wrappers have been removed from the MusicKit JS SDK. I hadn't reviewed them in some time and I must have missed the update. I've done some testing with V3 and the player seems much much more reliable in this version. In fact, a healthy amount of bandaid logic we needed for V1 may be able to get retired, which would be very welcome.
Looking forward to the eventual release of this, including documentation updates...
Thank you for your feedback, @farleyja
We have recently release major updates to our MusicKit on the Web v3 documentation. V3 does indeed represent a change in paradigm, moving away from individual methods mapping to specific Apple Music API endpoints and instead providing a single 'passthrough' API method that handles the appropriate headers and consistent formatting of query parameters, etc., but supporting all endpoints from Apple Music API.
For more information on the differences between v1 and v3, view the Migrating to MusicKit on the Web v3 documentation.
If there are other topics or use cases you think would be valuable to have documented for MusicKit on the Web, we welcome feedback via tickets in the Feedback Assistant
Thanks, we'll review the updated docs.