Posts

Post not yet marked as solved
1 Replies
617 Views
In my web app (shelf.fm), i allow users to play their various albums by pressing a custom play button, resulting in a call to window.MusicKit.getInstance().player.play(); However, When i use my own app, i see that playback consistently freezes midsong, several songs into any given album. This freeze is accompanied by an event being issued from the apple music api, to wit: playbackStateDidChange: {oldState:1,state:8} In this case, 1 means playing and 8 means waiting. And it remains frozen, no matter how many times I pause, stop or press play again. Help! I can't ship it like this.
Posted
by marstall.
Last updated
.
Post not yet marked as solved
0 Replies
712 Views
My UI is 100% album covers but I'm being rejected because my screenshots "contain copyrighted material", ie the album covers that appear in the app, and hence the screenshots. What's the best way around this? Can I created blurred screenshots? Substitute random blocks of color for the album covers? That would solve the copyright issue but I'm worried that would get me rejected because they are not true screenshots. Does anyone have any ideas??? Thanks!
Posted
by marstall.
Last updated
.
Post not yet marked as solved
0 Replies
541 Views
Hi,has anyone had any luck transforming their musickitjs web app into a desktop app? Like with Electron or NW.js?I've been fiddling around with it but I can't make it happen. The sticking point is the Apple Auth page. It doesn't seem to like being anywhere but in a browser ...Thanks for any help anyone can provide.chris
Posted
by marstall.
Last updated
.
Post not yet marked as solved
0 Replies
533 Views
In Desktop Safari and Desktop Chrome, I am seeing the following frequently:1. Start playing music via window.MusicKit.getInstance().player.play()2. listen joyfully for awhile, a few minutes maybe.3. playback stops in the middle of the song and doesn't resume.4. hit my pause button (which calls window.MusicKit.getInstance().player.pause() and then my play button (which calls window.MusicKit.getInstance().player.play()).5. nothing happens. I must hit the stop button and then the start button to listen to the record again - but that starts over from the beginning.This is dismaying and has been happening consistently, maybe 10-25% of the time (wild guess, but an appreciable percentage) when I am using my app. AM I DOING SOMETHING WRONG? Is anybody else seeing this? I'm guessing it's not happening on apple music web but of course they have the v2 api.Thank youchris
Posted
by marstall.
Last updated
.
Post not yet marked as solved
0 Replies
506 Views
All, does anyone have a strategy for (anonymously) identifying the user logged into apple music on your site (without a separate account or prompt)?This would be convenient in many ways - but the particular thing I'm worried about right now is the problem of multiple users on the same computer:- user A logs in, I download his library and put it in local storage so that it can be there right away when he returns to the site.- later, user B logs into the same computer and same browser (say at a public internet café computer). He logs in to *his* account, but for at least some period of time I have no way of knowing that the local storage cache is no longer relevant to this user and in fact belongs to an entirely different user, so I should User B the Albums of User A (though not User A's identity). Obviously not a great experience to say this least.Ideally I would like a GUID representing the user that I could use to key the local storage items I'm using. Is there a way to get one??Thank you
Posted
by marstall.
Last updated
.
Post not yet marked as solved
0 Replies
683 Views
with apple music web launched yesterday, i thought i would see if they allow any deleting of resources.the good news: they do. you can delete albums, though it does it in a weird way, by deleting all the songs from the album one after another by sending a DELETE command to /v1/library/<songid>. this doesn't work very well as half the time that endpoint 404's for all the requests and even if it doesn't, the album doesn't disappear. beta software i guess. but none of that matters because of ...the bad news: apple music web uses a special secret api hosted at amp-api.music.apple.com, which your userTokens won't work against (tried it in Paw).In summary, ¯\_(ツ)_/¯
Posted
by marstall.
Last updated
.
Post not yet marked as solved
0 Replies
492 Views
lots of questions, lots of blockers, very few answers from Apple staff. Should I bail, check out Spotify API?
Posted
by marstall.
Last updated
.
Post not yet marked as solved
0 Replies
438 Views
It would be nice if an endpoint like /v1/me/library/albums/<id> included cover color data in the attributes/artwork element, as the /v1/catalog/en/us/albums endpoint does. thank you.
Posted
by marstall.
Last updated
.
Post not yet marked as solved
0 Replies
551 Views
trying to build a progress indicator for playback. I'm calling music.play() - and then listening for 'playbackProgressDidChange' events but not getting any ... here's my code:export function setupEventListening(music) { console.log("setting up event listeners ...") music.addEventListener('mediaItemDidChange',(e)=>console.log("mediaItemDidChange called")) music.addEventListener('playbackProgressDidChange',(e)=>console.log("playbackProgressDidChange called")) }after calling music.play() I do get a 'mediaItemDidChange called' message in the console. But as the song progresses, i never see a "playbackProgressDidChange called" message ...Any help would be greatly appreciated. Thank you.chris
Posted
by marstall.
Last updated
.