music-web-player icon indicating copy to clipboard operation
music-web-player copied to clipboard

Added looping in a track.

Open g14a opened this issue 6 years ago • 4 comments

Added looping to a track next to play next and play previous using a mat-icon. Functionality is tested. But checking again is advised.

g14a avatar Dec 13 '18 11:12 g14a

If you take a look at track-controls.component.html, lines 95-101 are a commented out repeat button that accomplishes the same thing you did. While it repeated fine when playing albums and playlists, it would break if you manipulated your queue. Didn't have a chance to look deeper into what caused this yet.

naveedgol avatar Dec 13 '18 15:12 naveedgol

Oh, I missed the commented part. Thank you. Could you elaborate the manipulation of the queue part though?

g14a avatar Dec 13 '18 15:12 g14a

Play an album with multiple songs, turn repeat on, set a random song to play next. Observe the queue act strange when the album ends and repeats.

naveedgol avatar Dec 13 '18 15:12 naveedgol

Huh! I noticed how the repeat feature and the queue interact in the official Apple Music app. It was somewhat similar there too. There it asks a confirmation whether we want to add the current particular song to the queue. Well, if I come up with a better solution I'll let you know for sure.Thanks. :+1:

g14a avatar Dec 13 '18 18:12 g14a