Giter Site home page Giter Site logo

Comments (5)

zachomedia avatar zachomedia commented on May 23, 2024

@buddyrich33 Thanks for the feedback. Unfortunately, there aren't any APIs to manipulate the current queue other than to append to it.

As for the double clicking adding the entire playlist/album, that's something I did in the app to be consistent with Apple's music players. I don't mind adding an option for it though in settings.

from apple-music-webplayer.

buddyrich33 avatar buddyrich33 commented on May 23, 2024

Thats unfortunate about the lack of queue manipulation missing from the API. An option to override the play functionality would be nice, however.

Only 3 other things I would like to see. First is a more generic Apple Music catalog browse (not a Library browse which you have) mode. Duplicate the browse tab functionality of the Apple Music app -> especially by Genres or Artist. Its sorta there if I do a search first but I don't always know what I want to play but I might have a genre in mind and don't mind exploring. Doing a search only finds a song or album or artist with that genre in their name, though it will match some genere-specific playlists under playlists tab (some of which don't have the genre name in the playlist title or description, don't know how its matching them...)

Another feature is a selectable "goto Album/Artist" via a hyperlinked album/artist name from the now playing if possible.

And last is Love/Dislike functionality for Songs and Albums if supported by API. Supposedly using it helps Apple recommend stuff to you so I use it for that reason.

from apple-music-webplayer.

zachomedia avatar zachomedia commented on May 23, 2024

@buddyrich33 You can now uncheck the Queue all songs in the current view when double clicking on a song on the settings page to only play the song you double click on and not queue them all.

Thanks for the additional requests:

First is a more generic Apple Music catalog browse (not a Library browse which you have) mode. Duplicate the browse tab functionality of the Apple Music app -> especially by Genres or Artist

A more generic catalog browse is something that's been on my radar for a while (time has been a limitation, unfortunately).

Another feature is a selectable "goto Album/Artist" via a hyperlinked album/artist name from the now playing if possible.

Agreed would be useful. There might be some challenges with this as I've had issues with ID linking not always pointing the same version.

And last is Love/Dislike functionality for Songs and Albums if supported by API. Supposedly using it helps Apple recommend stuff to you so I use it for that reason.

I would like this too, but unfortunately it doesn't look like it's part of the Apple Music API.

from apple-music-webplayer.

jaehess avatar jaehess commented on May 23, 2024

@zachomedia There are a few "lower level" API's that might be of use here.

By default, MusicKit JS will automatically play through a queue as long as the user is authenticated and has authorized the application. You can override this behavior by setting the following property on the player:

MusicKit.getInstance().player.continuous = false

For queue manipulation, you can remove an item from the queue at a specific index:

MusicKit.getInstance().player.queue.remove(index)

While the playNext() method on a MusicKit instance will add content (album, playlist, song) after the current position in the queue - you can optionally pass in a flag have it replace the remaining queue items:

MusicKit.getInstance().playNext(descriptor, true)

Hope this helps.

from apple-music-webplayer.

zachomedia avatar zachomedia commented on May 23, 2024

@jaehess Thanks, this should help. I'll take a look at implementing this.

from apple-music-webplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.