Comments (7)
@crutchcorn sounds great. I'm diving in already and it looks like there are some significant changes to how v3 connects to the Apple Music API, with little to no documentation... nothing I can't figure out with a bunch of console.log
s but it's definitely not as straightforward as I thought π
I'm working on a branch with a bunch of casting, like you suggested, and will send you the branch as soon as I get it all working. Thanks!
from ipod-classic-js.
This is great to know! Was very much looking forward to it at WWDC. I'll look into adding v3 support, though the one thing that will most likely prevent me from upgrading would be lack of TypeScript support, which I had to find a 3rd party package for (and isn't very consistent). I'm assuming many of the types have changed which might cause some issues, but it's worth a shot anyway π
from ipod-classic-js.
Might be a fun to add Music Video support too now that it is supported in V3 (and was supported on iPod Classic).
from ipod-classic-js.
I could write an updated @types/apple-music-api
update @tvillarete. Would that help unblock this?
from ipod-classic-js.
That would definitely unblock it! Other than types, the migration is pretty painless as far as I can tell βΒ just a couple of calls to tweak here and there
from ipod-classic-js.
@tvillarete I'll see what I can do in terms of strict/accurate TS typings within the next few days. Something you could actually do to help me test this (if you have time, if not, no worries) is by building the v3 migration with any
types (basically, just side step TS temporarily). If we can get a version that has its functionality working (say, in a separate branch), then when I have the typings ready we can do a simple drop-in to verify that the typings are at least correct enough for the app's usage. We then don't have to wait for the npm
package to publish in order to test our TS typings (since we can install them locally in the project until then)
Like I said though, if not no worries
from ipod-classic-js.
@crutchcorn Just a heads up, I've filed a PR to upgrade to V3 and marked everywhere that will need to have the types updated. Since this update fixes so many bugs and adds a lot of features, I'm gonna go ahead and merge this PR in after doing some testing and we can address the types later.
I actually talked with an Apple dev recently regarding upgrading to V3 which answered quite a few questions of mine. From the conversation:
- We may see official TypeScript support from Apple in the near future. It's probably not worth it to create a 3rd party package.
- MusicKit JS was actually built using TS, but they just haven't published types (surprising, given the lack of documentation)
- V3 Documentation is likely to improve, but it's nowhere near what would be necessary to generate TypeScript types. I gave them a few suggestions on what I'd like to see
from ipod-classic-js.
Related Issues (20)
- iPod
- artist sorting
- No longer Apple Music option? HOT 2
- Token expired HOT 2
- Spotify log-in not working HOT 1
- Volume HOT 1
- Game
- when i open the website, nothing pops up HOT 1
- Deezer HOT 1
- Unable to sign in using Apple Music HOT 3
- Change description from "emulator" to "simulator"?
- Adding and storing local music files through LocalForage? HOT 4
- Spotify HOT 3
- Use as Web Player Controller HOT 1
- nothing shows when index.html is open and i got this error while yarn start.......what does it mean?? HOT 3
- [New UI] Allow forcing of full-screen UI on desktop user agents HOT 1
- I Canβt Login AppleMusic HOT 1
- Changing Spotify Accounts
- about play music continuously
- Spotify login not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipod-classic-js.